div#banner
{
background-image: url(topborder.jpg);
background-repeat: repeat-y;
}
div#banner h1
{
margin: 0;
padding: .3em 0 .3em .5em;
font-size: 2.2em;
font-weight: normal;
}
The image does not show up in the banner. Any ideas??
| SitePoint Sponsor |
div#banner
{
background-image: url(topborder.jpg);
background-repeat: repeat-y;
}
div#banner h1
{
margin: 0;
padding: .3em 0 .3em .5em;
font-size: 2.2em;
font-weight: normal;
}
The image does not show up in the banner. Any ideas??

Is the image located in the same directory as the CSS code is?
Visit The Blog | Follow On Twitter
301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
Can be hosted on and utilize your own domain
YepIs the image located in the same directory as the CSS code is?




are you doing this locally or on a live server?
There could be issues with the permissions on the image.
What are the dimensions of the banner? Is the background image just not showing up or is it not showing up because the banner div isn't large enough?
your brain reacts in the same way whether you are
looking at something or thinking about it...
locallyare you doing this locally or on a live server?
Below is the complete the comple code for my style.css
body
{
margin: 0;
padding: 0;
font-size: 95%;
font-family: georgia, times, "times new roman", serif;
color: #000;
background-color: #fff;
}
a:link { color: #036; }
a:visited { color: #066; }
a:hover, a:active
{
color: #fff;
background-color: #036;
}
div#banner
{
background-image: url(topborder.jpg);
background-repeat: repeat-y;
}
div#banner h1
{
margin: 0;
padding: .3em 0 .3em .5em;
font-size: 2.2em;
font-weight: normal;
}
div#container
{
background-image: url(nav_col_base.jpg);
background-repeat: repeat-y;
}
div#container2
{
background-image: url(more_col_base.jpg);
background-repeat: repeat-y;
background-position: right;
}
div#navigation
{
float: left;
width: 150px;
padding-top: 2em;
}
div#navigation ul
{
list-style-type: none;
padding: 0;
margin: 0;
}
div#navigation ul li { margin-top: 4px; }
#navigation ul li a
{
display: block;
width: 135px;
padding: 3px 5px 3px 10px;
text-decoration: none;
color: #000;
background-image: url(nav_base.jpg);
background-repeat: repeat-y;
}
#navigation ul li a:hover
{
color: #fff;
background-color: #ccc;
background-image: url(nav_base2.jpg);
background-repeat: repeat-y;
}
div#more
{
float: right;
width: 160px;
margin: 0;
padding: 2em 10px 0 0;
color: #fff;
}
div#more h3
{
margin-top: 0;
color: #fff;
padding: .2em;
background-image: url(more_base.jpg);
background-position: right;
background-repeat: repeat-y;
}
div#content
{
margin-left: 190px;
margin-right: 200px;
}
div#content h2
{
font-size: 2em;
color: #036;
margin: 0;
padding-top: 1em;
font-weight: normal;
}
div#content { line-height: 150%; }
#cleardiv
{
clear: both;
height: 1em;
}
div#footer
{
clear: both;
padding: .5em 1em;
border-top: 1px solid #999;
text-align: right;
}
div#footer ul
{
padding: 0;
margin: 0;
list-style-type: none;
}
div#footer li
{
display: inline;
margin-right: 1em;
}
topborder.jpg is 500x83
Bookmarks