Forum Moderators: not2easy
Note: Firefox will add the width of a div plus its padding. So if you have a 500px div with a padding of 40px on the left and right, Your div will more than likely be 580px.
Legacy IE versions sometimes do it wrong, best to ignore them and not design anything while looking at it with IE.
Just not assigning 100% width would give the effect you seek as blocks take up all the available width in their parent by default.
Just not assigning 100% width would give the effect you seek as blocks take up all the available width in their parent by default.
This will only happen if the block is in the normal flow. In any other situation, the box's computed width will change based on the shrink-to-fit algorithm.
FYI, the CSS3-UI module includes the 'box-sizing' property which gives the browser the ability to alter the box model, so that any 'padding' and/or 'border' values are computed _inside_ of a specified width.