![]() |
![]() OCAU News - Wiki - QuickLinks - Pix - Sponsors |
|
|||||||
| Notices |
|
Sign up for a free OCAU account and this ad will go away! Search our forums with Google: |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Member
Join Date: Mar 2002
Location: Brisbane Southside
Posts: 1,131
|
Hi All...
Spending far too long fixing a simple display issue... If anyone knows the solution please feel free to post. Details below: Top Menu in Chrome / Firefox: http://i.imgur.com/4IO7z.png Breakage in IE7... Fine in IE8 however.. http://i.imgur.com/Ta1oI.png Does anyone have a fix for me. The Code displaying that particular section is listed below: HTML Code:
<div id="navwrapper"> <ul class="menu"> <li id="current" class="active item1"><a href="#"><span>Home</span></a></li> <li class="active item2"><a href="#"><span>Company Info</span></a></li> <li class="active item3"><a href="#"><span>Products</span></a></li> <li class="active item4"><a href="#"><span>MSDS & Safety</span></a></li> <li class="active item5"><a href="#"><span>Contact Us</span></a></li> </ul> </div> Code:
#navwrapper {
width: 1000px;
height: 75px;
background: URL('../images/menubg.gif');
}
#navwrapper ul {
list-style-type: none;
color: #ffffff;
position: relative;
top: 35px;
}
#navwrapper ul li a {
list-style-type: none;
float: left;
display: block;
padding: 10px 25px;
font-size: 16px;
color: #ffffff;
text-shadow: 2px 2px #686868;
font-family: sans-serif;
font-weight: bold;
text-decoration: none;
}
|
|
|
|
| Join OCAU to remove this ad! |
|
|
#2 |
|
R.I.P
Join Date: Apr 2007
Posts: 1,041
|
Post your item1 item2 ... item5 classes
Also there's a big fuckin typo on your main image. "No matter what business YOU'RE in" |
|
|
|
|
|
#3 |
|
Member
Join Date: Mar 2002
Location: Brisbane Southside
Posts: 1,131
|
Oh awesome... Lol thats gold, thanks for picking that one up..
With regards to the styles on the class item#..... it is a feature from the CMS allowing individual styling of those items - There are no styles assigned at present to those items |
|
|
|
|
|
#4 |
|
Member
Join Date: Jan 2004
Posts: 215
|
Code:
#navwrapper ul li a {
list-style-type: none;
float: left;
Technically the IE7 browser is rendering it right as you have floated the a tag and not the li tag, and li being a list item should start on a new line by default, some browsers will compensate for CSS problems but others can be picky. Instead of floating the a tag like you are doing above, try floating the li tag like below Code:
#navwrapper ul li {
list-style-type: none;
float: left;
}
#navwrapper ul li a {
display: block;
padding: 10px 25px;
font-size: 16px;
color: #ffffff;
text-shadow: 2px 2px #686868;
font-family: sans-serif;
font-weight: bold;
text-decoration: none;
}
Last edited by hoiquai; 28th July 2010 at 1:16 PM. |
|
|
|
![]() |
| Bookmarks |
|
Sign up for a free OCAU account and this ad will go away! |
| Thread Tools | |
|
|