PDA

View Full Version : New banner does not show in Firefox


jon.oman
Mar-31-2008, 03:51 PM
I put in a banner on my home page. It works fine in IE7, but does not show up in Firefox 2. What did I do wrong? I tried to search for an answer, but I did not find one.

CSS:

#my_banner {
display: none;
width: 750px;
height: 150px;
margin: 0 auto;
background: url(http://jon-oman.smugmug.com/photos/273044579_KYCUR-O.jpg) no-repeat;
}
.homepage #my_banner {
display: block;
}


Header:

<div id="my_banner"> </div>

Thanks, Jon

Allen
Mar-31-2008, 03:56 PM
I put in a banner on my home page. It works fine in IE7, but does not show up in Firefox 2. What did I do wrong? I tried to search for an answer, but I did not find one.

CSS:

#my_banner {
display: none;
width: 750px;
height: 150px;
margin: 0 auto;
background: url(http://jon-oman.smugmug.com/photos/273044579_KYCUR-O.jpg) no-repeat;
}
.homepage #my_banner {
display: block;
}

Header:

<div id="my_banner"> </div>
Thanks, Jon
Add comment tags around this in your CSS and it shows.


/* //Put this in your CSS Stylesheet (doesn't allow clicking, enlarging, etc): */

jon.oman
Mar-31-2008, 05:06 PM
Add comment tags around this in your CSS and it shows.


/* //Put this in your CSS Stylesheet (doesn't allow clicking, enlarging, etc): */

Thank you Allen! That worked. I had a feeling it was something simple, but I could not see the forest for the trees.

Jon