margins stick outside of containing div
margins jutt outside of containing divs, can tell happeniong
adding bg color. inner <p> margins go outside of teh parent div! if
add border parent div acts in teh way expect -
that say, inner <p> contained inside of
parent, including margin.
any explanation fo rwhy happens - intnded or bug??
here's code used experiment this:
<!-- not working correctly -->
</p>
<div style="background-color:#cccccc;">
<p style="margin:3em">i paragraph!</p>
</div>
<!-- working correctly coz added border -->
<div style="background-color:#cccccc;border:1px solid;">
<p style="margin:3em">i paragraph!</p>
</div>
adding bg color. inner <p> margins go outside of teh parent div! if
add border parent div acts in teh way expect -
that say, inner <p> contained inside of
parent, including margin.
any explanation fo rwhy happens - intnded or bug??
here's code used experiment this:
<!-- not working correctly -->
</p>
<div style="background-color:#cccccc;">
<p style="margin:3em">i paragraph!</p>
</div>
<!-- working correctly coz added border -->
<div style="background-color:#cccccc;border:1px solid;">
<p style="margin:3em">i paragraph!</p>
</div>
> explanation fo rwhy happens - intnded or bug??
>
it's ie bug. adding border 1 way manage it, 1
the same color background. specific control of margin on
element another....
--
murray --- icq 71997575
adobe community expert
(if *must* email me, don't laugh when so!)
==================
http://www.dreamweavermx-templates.com - template triage!
http://www.projectseven.com/go - dw faqs, tutorials & resources
http://www.dwfaq.com - dw faqs, tutorials & resources
http://www.macromedia.com/support/search/ - macromedia (mm) technotes
==================
"arrdvark" <arrdvark@vianet.net.au> wrote in message
news:ehc5og$9ua$1@forums.macromedia.com...
> margins jutt outside of containing divs, can tell happeniong
> adding bg color. inner <p> margins go outside of teh parent div! if
> add border parent div acts in teh way expect -
> say, inner <p> contained inside of
> parent, including margin.
>
> explanation fo rwhy happens - intnded or bug??
>
> here's code used experiment this:
>
> <!-- not working correctly -->
> </p>
> <div style="background-color:#cccccc;">
> <p style="margin:3em">i paragraph!</p>
> </div>
>
> <!-- working correctly coz added border -->
> <div style="background-color:#cccccc;border:1px solid;">
> <p style="margin:3em">i paragraph!</p>
> </div>
>
>
it's ie bug. adding border 1 way manage it, 1
the same color background. specific control of margin on
element another....
--
murray --- icq 71997575
adobe community expert
(if *must* email me, don't laugh when so!)
==================
http://www.dreamweavermx-templates.com - template triage!
http://www.projectseven.com/go - dw faqs, tutorials & resources
http://www.dwfaq.com - dw faqs, tutorials & resources
http://www.macromedia.com/support/search/ - macromedia (mm) technotes
==================
"arrdvark" <arrdvark@vianet.net.au> wrote in message
news:ehc5og$9ua$1@forums.macromedia.com...
> margins jutt outside of containing divs, can tell happeniong
> adding bg color. inner <p> margins go outside of teh parent div! if
> add border parent div acts in teh way expect -
> say, inner <p> contained inside of
> parent, including margin.
>
> explanation fo rwhy happens - intnded or bug??
>
> here's code used experiment this:
>
> <!-- not working correctly -->
> </p>
> <div style="background-color:#cccccc;">
> <p style="margin:3em">i paragraph!</p>
> </div>
>
> <!-- working correctly coz added border -->
> <div style="background-color:#cccccc;border:1px solid;">
> <p style="margin:3em">i paragraph!</p>
> </div>
>
More discussions in Dreamweaver support forum
adobe
Comments
Post a Comment