October 8, 201313 yr I have a basic inline menu which displays different in Chrome and Firefox. - In Chrome, the menu displays at the top of a defined div - In Firefox, the menu displays much lower down. Can anyone help me make this display consistently. My html is:- <div id="menu-wrap" class="eightcol last"> <div class="menu"> <ul id="menu"> <li class="about"><a href="http://www.charlyanderson.co.uk/home" class="pink" rel="slideto">About Me</a></li> <li class="services"><a href="http://www.charlyanderson.co.uk/website-services" class="green" rel="slideto">Services</a></li> <li class="portfolio"><a href="http://www.charlyanderson.co.uk/portfolio" class="blue" rel="slideto">Portfolio</a></li> <li class="blog"><a href="http://www.charlyanderson.co.uk/blog" class="pink" rel="slideto">Blog</a></li> <li class="contact"><a href="http://www.charlyanderson.co.uk/contact" class="green" rel="slideto">Contact</a></li> </ul> </div> </div><!--/Menu-Wrap--> My Css Is:- #menu-wrap{height:50px; padding-top:15px;} .menu{color:#FFF; float:right;} .menu ul li{float:left; text-transform:uppercase; font-family: Helvetica; font-size:12px; margin:0 0 0 28px; padding:0 0 10px} .menu ul li.active{color:#6a1e58;} .menu ul li.active a{color:#ed1e79;} .menu ul li a{color:#acacac;} .menu ul li a:hover.pink{color:#ed1e79;} .menu ul li a:hover.green{color:#8cc63f;} .menu ul li a:hover.blue{color:#00a99d;} .menu ul li a:hover{padding:0 0 10px;} Can anyone help? Edited October 8, 201313 yr by Charly
October 8, 201313 yr In localhost they render exactly the same for me, you may need to provide your entire code for this section of your site (I'm guessing the top section), including any elements this nav bar is located near. Also - study up on the purposes of classes and IDs, you seem to have mixed and matched.
October 9, 201313 yr Same for me. Your codes dispay the same in Firefox and IE9. Perhaps some other part of your code or styles is affecting Firefox. throzen said "Also - study up on the purposes of classes and IDs, you seem to have mixed and matched." I don't think they cause a problem in your case because you don't have any styles for #menu (perhaps you intended to). It's a good idea not to use the same name for id and class as you may get confused.
Create an account or sign in to comment