HTML Content div spacing

funning17

New Member
I'm studying code that I found on the net and faced problem. When I add text to the main div called content, I get no margins, text is too close to sidebar. How should I fix it? Here's the code:\[code\]<html><head><link rel="stylesheet" type="text/css" href="http://stackoverflow.com/questions/14417058/mystyle.css"></head><body><div id="outer"><div id="header"></div><div id="inner"><div id="sidebar"></div> <div id="content"></div> </div></html>\[/code\]CSS\[code\]#outer {width:1000px;margin:0 auto;}#inner {overflow:hidden;}#header {min-height:40px;background:#bbb}#content {width:900;min-height:900px;float:left;background:#ccc;clear:}#sidebar{width:100px;min-height:250px;float:left;background:#ddd}\[/code\]
 
Back
Top