Czy ktoś wie dlaczego pierwszy post zawsze się rozszerza do długości sidebara?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> <head> <style> body { margin:0; padding:0; background: black; width: 100%; } #general { width: 1300px; height: auto; } #sidebar { padding: 10px 10px 0px 0px; float: left; width: 180px; } .sidebar-box { margin-top: 20px; margin-left: 0px; padding: 0px 0px 20px 0px; width: 160px; height: auto; border: 1px solid #626262; font: 11pt Verdana, Arial, sans-serif; color: #c3c3c3; background: black; background-repeat: repeat-y; } .sidebar-box li { margin-left: 10px; margin-top: 5px; } .sidebar-box-title { border-bottom: 1px solid #626262; padding: 0px 0px 5px 10px; } #content { width: 660px; margin-top: 20px; margin-left: 200px; padding: 10px 10px 10px 10px; font: 9pt Verdana, Arial, sans-serif; color: #c3c3c3; } .post { width: 670px; margin-top: 23px; padding: 10px 10px 10px 10px; background: black; text-align: justify; border: 1px solid #626262; } .clear { clear: both; } .post-title{ font: 22pt Verdana, Arial, sans-serif; } .text { width: 540px; float: left; padding: 10px 3px 10px 0px; } .more-link { font: 16pt Verdana, Arial, sans-serif; padding: 15px; margin-top: 20px; } .info { width: 100px; float: right; font: 7pt Verdana, Arial, sans-serif; text-align: left; border-left: 1px dotted #626262; padding: 15px 3px 10px 10px; } .date { font: 9pt Arial, Verdana, sans-serif; color: white; } .time { font-size: 15pt; color: white; } </style> </head> <body> <div id="general"> <div id="sidebar"> <div class="sidebar-box"> </li> </li> </li> </li> </li> </li> </li> </li> </li> </li> </li> </li> </li> </li> </div><!--sidebar-box ends--> </div><!--sidebar ends--> <div id="content"> <div class="post"> <div class="text"> <p>Suspendisse lacinia est in diam lobortis at aliquet leo dignissim. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam et ipsum nisl. Mauris congue, erat id pellentesque suscipit, nulla libero vulputate ipsum, eu suscipit nibh lorem nec velit. Aenean lacinia tincidunt ultrices. <br /> </div><!--text--> <div class="info"> <img src="photo.png" alt="Photo" width="85" height="80" /> <a href="5" title="View all posts in Ligula" rel="category">Ligula</a><br /> <a href="6" title="View all posts in Mauris" rel="category">Mauris</a><br /> <a href="24" title="View all posts in ante" rel="category">ante</a><br /> <a href="26" title="View all posts in faucibus" rel="category">faucibus</a></h6> </div><!--info--> <div class="clear"> </div> </div><!--post--> <div class="post"> <div class="text"> </div><!--text--> <div class="info"> <img src="photo.png" alt="Photo" width="85" height="80" /> </div><!--info--> <div class="clear"> </div> </div><!--post--> <div class="post"> <div class="text"> </div><!--text--> <div class="info"> <img src="photo.png" alt="Photo" width="85" height="80" /> <a href="11" title="View all posts in Egestas" rel="category">Egestas</a><br /> <a href="6" title="View all posts in Mauris" rel="category">Mauris</a><br /> <a href="23" title="View all posts in ac" rel="category">ac</a><br /> <a href="28" title="View all posts in aliquam" rel="category">aliquam</a></h6> </div><!--info--> <div class="clear"> </div> </div><!--post--> <div class="post"> <div class="text"> </div><!--text--> <div class="info"> <img src="photo.png" alt="Photo" width="85" height="80" /> <a href="4" title="View all posts in Blandit" rel="category">Blandit</a><br /> <a href="20" title="View all posts in Nam" rel="category">Nam</a><br /> <a href="23" title="View all posts in ac" rel="category">ac</a><br /> <a href="28" title="View all posts in aliquam" rel="category">aliquam</a><br /> <a href="26" title="View all posts in faucibus" rel="category">faucibus</a><br /> <a href="30" title="View all posts in mattis" rel="category">mattis</a></h6> </div><!--info--> <div class="clear"> </div> </div><!--post--> <div style="display:inline"> </div> </div><!--content ends--> <div class="clear"> </div> </div> </div><!--general ends-->