January 22, 201214 yr Hey, i was wondering if anyone could spot the issue in my CSS file, the menu bar is supposed to show an image (menubar.png & menubarhover.png) I've had this issue for a while and cannot seem to source the cause of the issue. (Sorry don't want to waste another post) Do you guys know where i am going wrong with the site positioning as I'd rather find out now and not have to redesign it all at a later date. (Click me!) The site looks ok on my monitor (19" at 1400x900) but on square monitor the positioning is off. Thanks for the help in advance, Ollie style.css index.html
January 23, 201214 yr Hi! Just looking @ your CSS briefly with view source and looks like you want these guys to show up in your main-nav? And looking at firebug, they aren't even showing up (which I have a feeling is because you may be targeting things incorrectly or elements are cascading...) Haven't tried it-but looking at the your css/html for the nav which seems to be made up of lots of <ul></ul> with 1 <li></li> per nav link (except the dropdown)could be easier to work with if you tried something like... <ul class="main-nav"> <li><a href="index.html">HOME</a></li> <li><a href="page1.html">PAGE1</a> <!--start drop down--> <ul class="dropdown"> <li><a href="#">DROPDOWN1</a></li> <li><a href="#">DROPDOWN2</a></li> </ul> <!--end drop down--> </li> <li><a href="page2.html">PAGE2</a></li> <li><a href="page3.html">PAGE3</a></li> </ul> ...to target things/the entire ul much more easily I reckon, as ul(s) are generally used with more than 1 item as I understand it! But firebug also says: 'failed to load image' so perhaps try this as well in your css: #navMenu ul li a { background-image:url(../images/menubar.png); //ETC }
Create an account or sign in to comment