Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

Re: List/menu spacing is browser dependent (argh) - Solved, sort
 

Jim Moe




quote this post edit post

IP Loged report this post

Old Post  01-22-05 - 04:17 AM  
Jim Moe wrote:
>
> <http://www.sohnen-moe.com/test.html>
>
>   The relevant CSS is:
> #menuleft1 { width: 160px;
>     margin: 50px 0 0 0; padding: 0; }
> #menuleft1 ul {
>     margin: 0 0 0 5px; padding: 0; }
> #menuleft1 li   { float: left;
>     line-height: 0%;
>     list-style: none; }
> #menuleft1 li p { height: 30px; }
>
The CSS became:
#menuleft1 { width: 160px;
margin: 50px 0 0 0; line-height: 0%; padding: 0; }
#menuleft1 ul {
margin: 0 0 0 5px; padding: 0;
font-size: 0; }
#menuleft1 li   {
line-height: 0%;
list-style: none; }
#menuleft1 li p {
height: 10px;
line-height: 0%; margin: 0; padding: 0; }

The important change was removing "float:left".
The "font-size:0" fixes an IE problem where it adds extra space below
the baseline for descenders, even though the line-height is zero. This is
a weak solution and would appreciate any alternative.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 10:10 AM. Post New Thread   
  Previous Last Thread   Next Thread next
Stylesheets archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top