Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
CSS menu problem in IE6
Old 12-05-2007, 07:53 AM CSS menu problem in IE6
Junior Talker

Posts: 2
Name: Prabhu
Trades: 0
The code below works fine in IE7 and Firefox but acts weird in IE6, cud any one help me on this...

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
body {
background-color:#000000;
margin: 0;
padding: 0;
}
.one {
background-color:#00FF00;
padding-left:.25em;
line-height:25px;
}
.two {
background-color:#3366CC;
padding-left:.25em;
line-height:25px;
}
.three {
background-color:#CC9900;
padding-left:.25em;
line-height:25px;
}
.four {
background-color:#CC3300;
padding-left:.25em;
line-height:25px;
}
.five {
background-color:#999999;
padding-left:.25em;
line-height:25px;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
display:block;
}
li {
margin:0;
padding:0;
display:block;
}
li a:link {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:8.5pt;
color:#FFFFFF;
text-decoration:none;
/*line-height:25px;*/
}
li a:hover {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:8.5pt;
color:#fff;
text-decoration:none;
display:block;
background-color:#666666;
/*line-height:25px;*/
}
</style>
</head>
<body>
<div id="pop">
<ul>
<li id="aa" class="one"><a href="#">Item one</a></li>
<li id="ab" class="two"><a href="#">Item two</a></li>
<li id="ac" class="three"><a href="#">Item three</a></li>
<li id="ad" class="four"><a href="#">Item four</a></li>
<li id="ae" class="five"><a href="#">Item five</a></li>
</ul>
</div>
</body>
</html>
prabhu21 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-05-2007, 08:02 AM Re: CSS menu problem in IE6
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
define "acts weird"
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-06-2007, 02:26 AM Re: CSS menu problem in IE6
Junior Talker

Posts: 2
Name: Prabhu
Trades: 0
First of I should thank you for taking time to reply,

Weird in the sense that "when I rollover on the text the list seems to be jumping or I can say it expands on which ever text I rollover.
prabhu21 is offline
Reply With Quote
View Public Profile
 
Old 12-06-2007, 02:29 AM Re: CSS menu problem in IE6
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
your style sheet sets anchors inside lists to display:block on hover so it will jump

BTW.
Defining font sizes using points (pt) is not recommended for screen styles. Points are a print measurement, use em or % instead.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to CSS menu problem in IE6
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13867 seconds with 12 queries