PDA

View Full Version : Div Tag top margin set to zero - globally


eyeof
02-21-2008, 08:36 PM
I would like to change the top margin (globally) to zero in the Div Tag so that any text or images are at the very top of the box. I know how to do this individually, but is there away to do that site-wise/globally so that I donít have to do it every time I make a Div Tag Box?

Also can this be done within Dreamweaver design mode using the CSS panel? I know nothing about coding.

Thanks.

domedia
02-21-2008, 08:54 PM
No need. Div tags' default margins are already set to 0 in all browsers.
Your margins must come from another element.

mangofreak
02-22-2008, 01:53 AM
Why don't you affect the body tag

body{
margin-top:0px;
margin-left:0px;
}

all your pages have body, right?

eyeof
02-23-2008, 01:31 AM
Thanks guys! I figured it out. I'm just getting into Dreamweaver and discovering the ins and outs of the program is slow going. CSS is a mystery to me, but little by little I’m getting there.