jjmusicpro Posted June 7, 2008 Share Posted June 7, 2008 i did this in my css #nav { background:url(../design/nav-bottom.gif);} however in IE it wont display the background image, but in Firefix it will, any ideas? Link to comment https://forums.phpfreaks.com/topic/109167-backgrou-of-div/ Share on other sites More sharing options...
Lefteris Posted June 7, 2008 Share Posted June 7, 2008 Check and see if it is a cache problem. Maybe your old css is cached in firefox. Just do a clear all private data from the Tools Menu and check if it is displayed. Link to comment https://forums.phpfreaks.com/topic/109167-backgrou-of-div/#findComment-559966 Share on other sites More sharing options...
jjmusicpro Posted June 7, 2008 Author Share Posted June 7, 2008 nah didnt work... IE still shows old background. Link to comment https://forums.phpfreaks.com/topic/109167-backgrou-of-div/#findComment-559970 Share on other sites More sharing options...
jjmusicpro Posted June 7, 2008 Author Share Posted June 7, 2008 ? anyone Link to comment https://forums.phpfreaks.com/topic/109167-backgrou-of-div/#findComment-560050 Share on other sites More sharing options...
jjmusicpro Posted June 8, 2008 Author Share Posted June 8, 2008 anyone? Link to comment https://forums.phpfreaks.com/topic/109167-backgrou-of-div/#findComment-560128 Share on other sites More sharing options...
dbrimlow Posted June 8, 2008 Share Posted June 8, 2008 Does #nav have any content in it? If it has no height attribute, and no content to create height, then the div will not auto size to a background element. Link to comment https://forums.phpfreaks.com/topic/109167-backgrou-of-div/#findComment-560173 Share on other sites More sharing options...
haku Posted June 8, 2008 Share Posted June 8, 2008 Give some code and/or post a link. Preferably a link. Link to comment https://forums.phpfreaks.com/topic/109167-backgrou-of-div/#findComment-560178 Share on other sites More sharing options...
jjmusicpro Posted June 8, 2008 Author Share Posted June 8, 2008 loopmakerpro dot com in IE it wont show gradient of nav bar but in firefox it does here is my css #nav {padding:0 20px; background-image:url(../design/nav-bottom.gif); overflow:hidden;} #nav ul {margin:0; padding:0; list-style:none;} #nav ul li {display:inline; margin:0; padding:0;} #nav ul li a {display:block; float:left; padding:10px 14px 10px 15px;} #nav ul li#nav-active a {border:0; font-weight:bold;} #nav ul li a:hover {text-decoration:none;} then the code on my page is <div id="nav"> <ul> <li id="nav-active"><a href="index.php">Home</a></li> <li><a href="news.php">News/Updates</a></li> <li><a href="aboutus.php">About Us </a></li> <li><a href="members.php">Members Area</a></li> <li><a href="products.php">Our Products </a></li> <li><a href="jointoday.php">Join Today </a></li> <li><a href="freeloops.php">Free Loops </a></li> <li><a href="contact.php">Contact</a></li> </ul> </div> Link to comment https://forums.phpfreaks.com/topic/109167-backgrou-of-div/#findComment-560185 Share on other sites More sharing options...
jjmusicpro Posted June 8, 2008 Author Share Posted June 8, 2008 Does #nav have any content in it? If it has no height attribute, and no content to create height, then the div will not auto size to a background element. 100% CORRECT it worked THANK YOU! Link to comment https://forums.phpfreaks.com/topic/109167-backgrou-of-div/#findComment-560201 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.