[thelist] CSS padding, width in %

Tony Crockford tonyc at boldfish.co.uk
Tue Jul 20 02:15:42 CDT 2004

At 07:16 on Tuesday, 20 Jul 2004, Erik Mattheis wrote:

> What I want are 5 divs, each of which are exactly 20% window with and  
> spaced at 0%, 20%, 40%, 60% and 80% - works fine until I put padding  
> around the links inside.
> How can I have padding and retain the precise 20% width?

how about you put the 1px black border on the div and add a 4px border (to  
match background color) to the contained a's  that will give you the  
spacing you require and avoid the different box model applications of  



More information about the thelist mailing list