Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2010-01-20 12:42:26
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
ie6 and gap between list items
here, in a list of left sidebar
i know, i’m missing something very obvious, but can’t find/remember
Offline
#2 2010-01-20 14:10:43
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Offline
Re: ie6 and gap between list items
Inline will make it so you can’t assign height and vertical padding to the elements in some browsers.
If you need to do that a float:left; clear:left combo on the li’s will also get rid of the gap in IE6.
Shoving is the answer – pusher robot
Offline
#4 2010-01-20 16:36:01
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: ie6 and gap between list items
hakjoon wrote:
Inline will make it so you can’t assign height and vertical padding to the elements in some browsers.
Yes, of course. But in this scenario you can assign height and vertical padding to the inner “a” elements which are already set to “display:block”… furthermore your solution requires also to set a specific width for the “li“s or a “white-space:nowrap” rule if you want to avoid linebreaks.
P.S. yes, this is a silly dispute I know ;)
Offline
Re: ie6 and gap between list items
true, just offering a another solution, didn’t mean to imply yours was bad (sorry if it came across that way)
I’ve needed the li’s to actually wrap the block element in the past and display:inline had odd behaviors where the top and bottom of the a actually broke out of the container.
Like with most css things there are about 999999 ways to do it
Shoving is the answer – pusher robot
Offline
#6 2010-01-21 09:09:46
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: ie6 and gap between list items
added redbot’s recommendation – works and didn’t brake anything. thank’s guys
Offline
#7 2010-01-22 12:18:33
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: ie6 and gap between list items
still 1:0 to hakjoon.
discovered that ie8 didn’t like redbot’s advice.
final solution:
#sidebar-1 li{
background:none;
margin: 0;
padding: 0 ;
float:left;
clear:left;
width: 230px;
white-space:nowrap;
}
looks like this works in ie6-8, opera, firefox, safari.
or did anybody find something else?
Offline
#8 2010-01-22 15:30:05
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: ie6 and gap between list items
I thought you were using a conditional stilesheet for ie6 only. IMHO you’ll have a hard time using a single stylesheet for all browsers.
Anyway I’m glad you found a solution that works
Offline
#9 2010-01-23 11:03:49
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: ie6 and gap between list items
redbot wrote:
I thought you were using a conditional stilesheet for ie6 only. IMHO you’ll have a hard time using a single stylesheet for all browsers.
took your advcice and created separate stylesheet for ie6
Offline
Pages: 1