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
question about lists with css
Old 09-23-2009, 06:42 PM question about lists with css
Ultra Talker

Posts: 254
Trades: 0
i am using the following code to display a vertical list, this code works fine in all browsers except for ie6, in ie6 there is a lot of vertical gaps between each list item which is not the case in other browsers and the gap in other browsers appears normally as per the css code i have written.

<div class="contentright">
<div class="listright">
<ul>
<li><a href="#">List item1</a></li>
<li><a href="#">List item2</a></li>
<li><a href="#">List item3</a></li>
<li><a href="#">List item4</a></li>
<li><a href="#">List item5</a></li>
</ul>
</div>

</div>

.contentright .listright{
float: left;
width: 254px;
height: 140px;
margin: 0 0 0 0;

}


.contentright .listright ul
{
font: normal 11px Arial, Helvetica, sans-serif;
list-style-type: none;
margin: 0 0 0 0;
width: 254px;
}


.contentright .listright ul li
{
margin: 0 0 0 0;
}


#contentouter .contentright .listright ul li a
{
display: block;
padding: 7px 0 0 25px;
}


i have 2 horizontal list in the page above this vertical list which is causing problem in ie6. i have also given the hierarchy in the css for this vertical list which is causing the problem in ie6

can anyone suggest how to fix this.



thanks.
sudhakararaog is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-24-2009, 04:22 PM Re: question about lists with css
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
in ie6 there is a lot of vertical gaps between each list item
Typical IE6 bug.
Use conditional comments to call a SEPARATE 'fixes only' css file JUST for IE6. For your vertical list ID or class add height: 1%;, that will close the big gaps.

www.positioniseverything.net - I suggest you start reading about IE's many bugs and the solutions.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 09-29-2009, 01:23 PM Re: question about lists with css
Novice Talker

Posts: 4
Name: Juan
Trades: 0
you can see Conditional Tags

<!--[if IE 6]>
Special instructions for IE 6 here

<![endif]-->
See examples Here
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ju4nm4 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to question about lists with css
 

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.19605 seconds with 12 queries