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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Whitespace between the list items!
Old 06-04-2008, 05:01 AM Whitespace between the list items!
Joshy D's Avatar
Extreme Talker

Posts: 178
Name: Josh
Trades: 0
I cant believe the search didnt give me any results for this issue, im sure its been dealt with before.

Anyway.
The problem:
Extra gaps between list items (vertically).

I am making a vertical, multi-level menu (nav) but in IE 7 (i havnt chekd IE 6) ther are extra gaps between each list item, the li's are displayed on block-level (i.e. #menu ul li{display:block;}) i have tried this solution:
Remove breaks between the closing and opening li tags in the HTML like so:
Code:
<ul>
<li>blah</li><li>
blah 2</li><li>
blah 3</li>
</ul>
but this didnt work...

all help appreciated, thank you.
__________________
Personal UK Webhosting

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

Last edited by Joshy D; 06-04-2008 at 05:10 AM..
Joshy D is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-04-2008, 05:56 AM Re: Whitespace between the list items!
Extreme Talker

Posts: 189
Trades: 0
you should post your css code that displays them.
simster is offline
Reply With Quote
View Public Profile
 
Old 06-04-2008, 05:58 AM Re: Whitespace between the list items!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
remove the margins on the <li>
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-04-2008, 12:26 PM Re: Whitespace between the list items!
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
This is a known problem with IE6 that I thought was fixed in IE7. I'd try what Chris suggested, but just in case, this is what I usually do to make IE6 behave (using conditional comments and a separate css file, of course):

Quote:
* html #nav li a{
height: 1%;
vertical-align: bottom;
}
__________________
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 06-06-2008, 06:24 PM Re: Whitespace between the list items!
Joshy D's Avatar
Extreme Talker

Posts: 178
Name: Josh
Trades: 0
hey, chrishirst and ladynred, thank you, both your solutions worked.
__________________
Personal UK Webhosting

Please login or register to view this content. Registration is FREE
Joshy D is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Whitespace between the list items!
 

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