I have 2 boxes side by side fitting in a 800 px wide container. The boxes are set so they just fit, one on the left houses a css menu and the one right of it holds text and images. I want the text to be about 20px from the edges of the box it is in. The box is defined in an external css file as "box6" with no padding as the defualt. When I enter: <div id="box6" style="padding-left:20px; padding-right:10px;"> to over ride it for this one page, it pushes the box down below the box it is supposed to be beside (to the right of).
I thought that the internal padding should not affect how the box is positioned. What am I doing wrong here?



Reply With Quote


Bookmarks