Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

96 users online



Padding without affecting width

Padding without affecting width

Currently viewing this thread: 1 (0 members and 1 guests)


W3bdevil

W3bdevil

Someone
Status: Offline!

Padding without affecting width

j0

Just a quickie one

Is there any way to get padding within a <div> without it affecting the width?

Right I've got:

<div id="DocumentBodyContainer">
<div id="DocumentBodyContainerFillTest">
<p>Testing testing</p>
</div>
</div>

I have the CSS set up so that #DocumentBodyContainer has padding itself, and #DocumentBodyContainerFillTest is 100% wide, which fills the Container fine

but when I specifiy padding to the #...FillTest it goes outside the bounding area of the Container, but as usual, with M$'s bastardisation of CSS it looks "fine" in M$IE

Is there any workaround for this? (as in... I want padding and 100% width)

Thanks
-W3bbo

___________________

http://www.w3bdevil.com/forums/sigs/browser/browser.asp

malephika

malephika

A Ghost
Status: Offline!

If you are using padding because of text, set the padding on the 'p' tag instead of using it directly on the div.

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0062 seconds.