If sidebar div and content div are not using padding of wrapper div why do I still see the gap of 20px between side bar and content div if I change left side bar width to 200px and content div to 540? 200+540=740 wrapper width.
#leftSideBar {padding:0; margin:0; position:absolu te; top:20px; left:0; width:200px; background-color:blue}
#content {padding:0; margin:0; float:right; position:absolu te; top: 20px; right:0;...
User Profile
Collapse
-
CSS Padding
Could you please explain why in the html below there is 20 px gap between left side bar and content div.
My understanding is 190px left side bar width + 530 px content div width + 2*10 wrapper padding = 740px max body or wrapper width so there should not be any gap.
thank you
<!DOCTYPE
HTML
PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">...
No activity results to display
Show More
Leave a comment: