...

View Full Version : Padding



stevenmw
04-25-2011, 07:17 AM
What is the best way to handle padding changing the size of a div in I.E.? Should I just do the math, use auto, or what?

I normally do the math, but this is an imporrant peoject and I want to do ir right.

Any suggestions?

bullant
04-25-2011, 07:21 AM
it depends on what you want the handling to do.

stevenmw
04-25-2011, 07:28 AM
Just random uses.

Say I have a div with a set width, and I apply a padding to it. The box would be wider than I told it to be. Should I just math it out, and set the div to be less wide and then apply the padding to make up the difference?

bullant
04-25-2011, 07:50 AM
The box would be wider than I told it to be.

not if it's inside another fixed width container. Post your code so we can see what is going on.

stevenmw
04-25-2011, 07:57 AM
No, you helped Thanks.

bullant
04-25-2011, 08:07 AM
no problem :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum