Overclockers Australia Forums

OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Software Topics > Programming & Software Development

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 26th July 2010, 8:33 PM   #1
g0bbles Thread Starter
Member
 
g0bbles's Avatar
 
Join Date: Mar 2002
Location: Brisbane Southside
Posts: 1,131
Default CSS - Frustrating IE7 li's

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 &amp; Safety</span></a></li>
<li class="active item5"><a href="#"><span>Contact Us</span></a></li>
</ul>
</div>
CSS

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;
}
g0bbles is offline   Reply With Quote

Join OCAU to remove this ad!
Old 26th July 2010, 8:42 PM   #2
TheChemist
R.I.P
 
TheChemist's Avatar
 
Join Date: Apr 2007
Posts: 1,041
Default

Post your item1 item2 ... item5 classes

Also there's a big fuckin typo on your main image.

"No matter what business YOU'RE in"
TheChemist is offline   Reply With Quote
Old 26th July 2010, 8:49 PM   #3
g0bbles Thread Starter
Member
 
g0bbles's Avatar
 
Join Date: Mar 2002
Location: Brisbane Southside
Posts: 1,131
Default

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
g0bbles is offline   Reply With Quote
Old 28th July 2010, 12:50 PM   #4
hoiquai
Member
 
Join Date: Jan 2004
Posts: 215
Default

Code:
#navwrapper ul li a {
    list-style-type: none;
    float: left;
You have to be careful to apply the correct CSS to the appropriate tags, list-style:none does not apply to an <a> tag at any time.
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;
}
__________________
sig? too tired
My gallery http://picasaweb.google.com/hoiquai

Last edited by hoiquai; 28th July 2010 at 1:16 PM.
hoiquai is offline   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time now is 4:17 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!