flere-imsaho
09-21-2007, 08:16 AM
Hopefully a simple question here.
When you add a border to an element, does the border go on the outside of the element, or on the inside?
To explain, let's say I'm talking about a DIV element. I've set the width for 600px and then added a 1px border. Is the effective width now 602px (borders left & right) or have I lost 1px worth of padding on each side?
I ask specifically to help determine how to accurately measure the exact width of content on a webpage (i.e. putting 2/3 horizontal elements in there but still keeping it at 800px wide). On a related note, if anyone knows of a tool that can "check" this for you (i.e. a pixel ruler for webpages), I'd be all for it.
I have to say, this was all a lot easier when you could just use frames or tables.... :D
When you add a border to an element, does the border go on the outside of the element, or on the inside?
To explain, let's say I'm talking about a DIV element. I've set the width for 600px and then added a 1px border. Is the effective width now 602px (borders left & right) or have I lost 1px worth of padding on each side?
I ask specifically to help determine how to accurately measure the exact width of content on a webpage (i.e. putting 2/3 horizontal elements in there but still keeping it at 800px wide). On a related note, if anyone knows of a tool that can "check" this for you (i.e. a pixel ruler for webpages), I'd be all for it.
I have to say, this was all a lot easier when you could just use frames or tables.... :D