inchecksolution
10 May 2011, 11:45 AM
Hi Guys,
Quick question. I was wondering if adding a border onto a div actually increases the height/width of it?
For example, if I have a div with a class of "container" and in css I set the container to a width of 600px, and then add a border of 10px, is the border within the div or around the outside?
If it does go around the outside than I guess my div is actually 620px wide (10px border on each side)?
Quick question. I was wondering if adding a border onto a div actually increases the height/width of it?
For example, if I have a div with a class of "container" and in css I set the container to a width of 600px, and then add a border of 10px, is the border within the div or around the outside?
If it does go around the outside than I guess my div is actually 620px wide (10px border on each side)?