PDA

View Full Version : div tags


richcodesign
05-13-2009, 08:38 AM
Hi all,
:-D
can you please explain why i need padding/margins on div tags?
I want to have the div tags butt-up so there is not gap between my menu bar and the main content.


Dreamweaver tells me this information below:

/* padding on this element will create space, just as the the margin would have, without the margin collapse issue */

Corrosive
05-13-2009, 08:40 AM
Hi all,
:-D
can you please explain why i need padding/margins on div tags?
I want to have the div tags butt-up so there is not gap between my menu bar and the main content.


Dreamweaver tells me this information below:

/* padding on this element will create space, just as the the margin would have, without the margin collapse issue */

You don't have to have padding and margins. They are just another way of styling the content of a div.

richcodesign
05-13-2009, 10:58 AM
okay great that helps.
So no collapse issues will happen?