Divs/Padding... box model hack.

Soldato
Joined
2 Nov 2002
Posts
3,304
Location
Aberdeen
My site uses divs, and to put it briefly, i would like space within the divs, so my text isn't right at the sides.

I've researched, and discovered the only real way around this is the Box Model Hack.

This is needed because Firefox renders the padding OUTWIDTH the box, while IE 5 and below renders it to be WITHIN the box.

I have two divs, each identicle, and each aligned next to each other. Preferably i would like padding in the box, say 10pt.

I have tried the box model hack but it messes too much of the values up and it i can't get it to work correctly, and it just seems a horrible thing to do.

Is there any other options to this? or is it something i just have to get on with and work around?
 
Yeah sure, but when the text continues onto a new line, i do not have the padding on the new line. I would need to <p> at the break if you know what i mean.

I also plan to have a table containing images within this div (or other divs containing images, not sure yet) so if i were able just to pad it a little it would save me potential problems.
 
Back
Top Bottom