Joseph Taylor wrote re: http://www.hellobenlau.net/wsg/index.html
Ben,

On the spacing, the spaces you're fighting with are a combination of
 line-height, margin and padding.

Each browser will implement their own defaults, so resetting the defaults with a "reset" stylesheet has become a popular technique.

For example, if you apply a line like this to your page:

* { margin: 0 !important; padding: 0 !important; }

You should see everything collapse.

Follow that with a:

line-height: XXpx;

and you should see the results you're looking for.


Begging your pardon, but I think this solution may lead to new problems.
Using that "margin and padding reset" is likely to stop some form
elements working in older browsers. Better to define the margins and
padding you want on the elements that need them, in my opinion.

Specifying the line-height in pixels works differently from browser to
browser, some browsers increasing the line-height along with text size,
while others retain the same pixel height when text is enlarged.

I hesitate to post this, as I wish I had something more constructive to
contribute. Sadly, I don't know how to achieve what Ben asks.

Cordially,
David
--



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************

Reply via email to