Old 30-07-2004, 11:08   #1 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,214
gaps in lists in ie

ie makes lists with nig gaps betwwen them. how do you kill the gap./

sorry, its too hot to think.

thanks.
  Reply With Quote
Old 30-07-2004, 11:13   #2 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,236
Andy Budd talked about this I think

and yeah, thinking is out of the question today.

Although I just did.
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 30-07-2004, 11:29   #3 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,632
Depends on your code, but it probably needs one (or more) of these added to li.

float: left;

display: inline;

margin: 0;
  Reply With Quote
Old 30-07-2004, 11:35   #4 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,214
display inline makes them run horizontally. i don't want to do that. i want a list, just without the gaps, like the fox does it.

still working on it. cheers guys.
  Reply With Quote
Old 30-07-2004, 11:40   #5 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,632
One of these might be what you're after:

http://css.maxdesign.com.au/listamatic/
  Reply With Quote
Old 30-07-2004, 11:40   #6 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,214
cheers stick. thats in my bookmarks somewhere. will try again.
  Reply With Quote
Old 30-07-2004, 11:48   #7 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,214
ok, if you specify a font size fo the #id ul{ font-size: whatever; } then the fox reduces the line height, but ie keeps the lines the same height.

so i added a:

line-height: 1.2em;

to the ul. makes it work fine. thanks.
  Reply With Quote
Old 30-07-2004, 11:51   #8 (permalink)
adras
Zły
 
adras's Avatar
 
Join Date: May 2004
Location: Toronto, Canada
Posts: 1,898
Send a message via MSN to adras
ol {
margin: 0px 0px;
padding: 0px 0px;
}

ul {
padding: 0px 0px;
margin: 0px 0px;
}

li {
/* change the padding to what ever gap size you want */
padding: 0px 0px;
margin: 0px 0px;
}
__________________
  Reply With Quote
Old 31-07-2004, 12:30   #9 (permalink)
Luke Redpath
Barney army!
 
Luke Redpath's Avatar
 
Join Date: Mar 2003
Location: London
Posts: 696
IE has a bug which makes it read the whitespace in your code and insert gaps in your formatted lists. Adding margin: 0, padding: 0 will not solve this.

One solution is to remove all of the white space in your list HTML but this makes it unreadable and harder to update. An alternative (and better IMO) solution is this little piece of CSS hackery:

Code:
/* Fix IE list spacing. Hide from IE Mac \*/ * html ul li { float: left; } * html ul li a { height: 1%;
__________________
Luke Redpath .::. Software Engineer .::. Reevoo - Real Reviews From Real Customers
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8