/    Sign up×
Community /Pin to ProfileBookmark

Simple CSS background image help

So I’m trying to put in a bg image using godaddy website tonight and its just not working for me.. I only want it to be in the main paragraph area.. I know html quite well but just a little css..

here is my site: [url]http://srcnews.info/[/url]

here is my coding so far.. All I’ve really added to the template is under body.. Not sure if it supposed to be under body or .sf_outer_wrapper.. Or maybe I need more of a url for my image? I have it uploaded into my images:

/*********************************************************


**********************************************************

Folder: Theme315_Generic1
Name: Generic 1
Cat: Generic


**********************************************************

*********************************************************/
/*
————————————
GENERAL
————————————*/
body {
background-image:url(images/bamboo1.jpg);
background-repeat:no-repeat;
background-position:center;
background-color:#ffffff;
margin: auto;
}

.sf_outer_wrapper {
width: 1014px;
margin: 50px auto;
}

.sf_wrapper {
width: 1014px;
position: relative;
}

a {
color: #000;
}
a:hover {
color: #333;
}
a:visited {
color: #000;
}

.sf_extra10 {
display: none;
}

/* ————————————
HEADER
———————————— *
/
.sf_header_wrapper {
margin-top: 0px;
height: 133px;
}

.sf_main_header p, .sf_sub_header p { margin: 0; padding: 0; }
.sf_main_header {
padding-top: 25px;
text-align: left;
line-height: 0.9;
margin-left: 18px;
height: 40px;
overflow: hidden;
font-family: Arial, Helvetica, FreeSans, sans-serif;
font-size: 24px;
font-weight: bold;
}

.sf_sub_header {
text-align: left;
padding: 4px 0 30px 50px;
width: 450px;
height: 30px;
overflow: hidden;
font-family: Arial, Helvetica, FreeSans, sans-serif;
font-size: 12px;
font-style: normal;
font-weight: normal;
font-variant: normal;
}
/* ————————————
NAVIGATION
———————————— *
/
.sf_navigation_top { display: none; }

.sf_navigation {
clear: both;
height: auto;
width: 1014px;
}

.sf_navigation ul {
margin: 0 0;
height: auto !important; height: 1%;
padding-left: 0;
}

.sf_navigation ul:after {
content: “.”;
display: block;
visibility: hidden;
height: 0;
font-size: 1px;
clear: both;
}

.sf_navigation ul {
list-style-type: none;
}

.sf_navigation ul li {
float: left;
width: auto !important;
width: 5px;
white-space: nowrap;
}

.sf_navigation ul li a {
height: 40px;
margin: 0 0 0 1px;
text-decoration: none;
display: block;
line-height: 28px;
padding: 0 10px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
font-weight: normal;
font-variant: normal;
}

.sf_navigation ul li a:hover {
text-decoration: none;
color: #fff;
display: block;
}
.sf_subnavigation, .sf_subnavigation2 {
display:none;
}
/*————————————
Dropdown
————————————*
/
#Nav1 iframe {
position: absolute;
/* account for the border */
left: -0.25em;
top: -0.25em;
z-index: 0;
filter: progidXImageTransform.Microsoft.Alpha(style=0,opacity=0);
margin-left: 3px;
}
#Nav1,
#Nav1 ul { /* all lists */
list-style:none;
width:100%;
}

#Nav1 a {
display:block;
}

#Nav1 li { /* all list items */
float:left;
}

#Nav1 li ul { /* second-level lists */
position:absolute;
left:-999em;
width:130px;
margin:-4px 0 0 0;
border:solid 1px #929292;
background:#ffffff;
padding:3px 3px 0 3px;
z-index:1000;
}
#Nav1 li ul li{
margin:0;
padding:0;
background:none;
}
#Nav1 li ul li a{
background:#e8e8e8;
height:auto;
margin:0 0 3px 0;
width:120px;
padding:5px;
line-height:normal;
white-space:normal;
border:none;
}
#Nav1 li ul li a:hover{
background:#999999;
}
#Nav1 li:hover ul,
#Nav1 li.sfhover ul { /* lists nested under hovered list items */
left:auto;
}

#Nav1 li:hover, #Nav1 li.hover {
position: static;
}

/*————————————
CONTENT
————————————*
/
.sf_pagetitle {
clear: both;
padding: 10px 0 0 20px;
text-align: left;
height: auto !important;
min-height: 30px;
font-family: Arial, Helvetica, FreeSans, sans-serif;
font-size: 24px;
font-style: normal;
font-weight: normal;
font-variant: normal;
}

.sf_pagetitle h1 {
font-size:24px;
font-weight:normal;
margin:0;
}

.sf_content {
height: 300px;
padding: 20px 20px 0 20px;
margin: 0px;
font-size: 12px;
font-family: Verdana, Arial, Helvetica, sans-serif;
height: auto !important;
height: 200px;
min-height: 200px;
}

.sf_content:after {
content: “.”;
display: block;
visibility: hidden;
height: 0;
font-size: 1px;
clear: both;
}

/*————————————
FOOTER
————————————*
/
.sf_footer {
font-size: 13px;
padding: 25px 0 10px 20px;
text-align: center;
font-family: Verdana, Arial, Helvetica, sans-serif;
background-color:#F6F6F6;
}

/*————————————
BANNER
————————————*
/
div.sf_banner {
margin-bottom: 35px;
padding-top: 50px;
text-align: center;
font-size: 13px;
}

div.sf_banner div#bannerLink {
padding-top: 10px;
}
/**
* Sticking flyout menu bug
*

* @bugfix
*
@affected ie7
* @css-for ie7
*
@valid yes
*/
#Nav1 li:hover, #Nav1 li.hover {
position: static;
}

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@spotted_zebraAug 18.2010 — .sf_content {

height: 300px;

padding: 20px 20px 0 20px;

margin: 0px;

font-size: 12px;

font-family: Verdana, Arial, Helvetica, sans-serif;

height: auto !important;

height: 200px;

min-height: 200px;

background-image: url('/link/to/image.gif')

}

notice the addition of the last line of code "background-image: url('/link/to/image.gif')". try that and see what happens we may have to tweak the code a little bit more but that will get us started.
×

Success!

Help @neozerox spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...