[Webpro] RE: Help with DIVs in CSS Layout
Jeanne
jeanne at tech-ease.net
Wed Jul 21 19:33:01 EDT 2004
From: "Mark Groen" <mark at markgroen.com>
(and a similar answer from Valeron <valeron at pinc.com.my>)
> The space is there not from your div elements but the from the
> default spacing on the top/bottom of a paragraph element.
Of course! I knew there had to be some sound logic behind that maddening
space, but it was eluding me. Thanks!
From: Philip Weller <themanhimself at philipweller.com>
> Lately, to avoid problems like this I've taken to including
> this declaration at the beginning of my stylesheets:
>
> * {margin: 0;
> padding: 0;}
>
> The asterisk serves as a CSS wild card that will remove all
> margin and padding from every element on your page. With this
> you can override any browser defaults which might cause
> inconsistencies in your layout. Any margin or padding
> declarations you make later in your stylesheet for individual
> elements will overwrite the zeros.
Great tip! Thanks...
> Hope this helps. The road to CSS wisdom is a long one, but so
> very worthwhile.
Statements like this all over the Internet is what keeps me going!
Again, thanks for everyone who offer suggestions. And keep those links
coming if you have more...
Jeanne
More information about the Webpro
mailing list