Witam,
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">
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;
}
<div class="sidebar-box">
<div class="sidebar-box-title"><h3>Categories
</h3></div><!--categories ends-->
<li class="cat-item cat-item-23"><a href="23" title="View all posts filed under ac">ac
</a> (3)
<li class="cat-item cat-item-3"><a href="3" title="View all posts filed under Aenean">Aenean
</a> (4)
<li class="cat-item cat-item-28"><a href="28" title="View all posts filed under aliquam">aliquam
</a> (3)
<li class="cat-item cat-item-24"><a href="24" title="View all posts filed under ante">ante
</a> (2)
<li class="cat-item cat-item-4"><a href="4" title="View all posts filed under Blandit">Blandit
</a> (4)
<li class="cat-item cat-item-11"><a href="11" title="View all posts filed under Egestas">Egestas
</a> (3)
<li class="cat-item cat-item-26"><a href="26" title="View all posts filed under faucibus">faucibus
</a> (3)
<li class="cat-item cat-item-7"><a href="7" title="View all posts filed under Imperdiet">Imperdiet
</a> (2)
<li class="cat-item cat-item-5"><a href="5" title="View all posts filed under Ligula">Ligula
</a> (4)
<li class="cat-item cat-item-30"><a href="30" title="View all posts filed under mattis">mattis
</a> (2)
<li class="cat-item cat-item-6"><a href="6" title="View all posts filed under Mauris">Mauris
</a> (4)
<li class="cat-item cat-item-20"><a href="20" title="View all posts filed under Nam">Nam
</a> (2)
<li class="cat-item cat-item-27"><a href="27" title="View all posts filed under nibh">nibh
</a> (1)
<li class="cat-item cat-item-25"><a href="25" title="View all posts filed under Pellentesque">Pellentesque
</a> (1)
</div><!--sidebar-box ends-->
</div><!--sidebar ends-->
<h2><a href="?p=30" rel="bookmark" title="Fixed link Tristique">Tristique
</a></h2>
<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 /> <a href="?p=30#more-30" class="more-link">Read more >
</a></p>
<div style="float:right"><h5><p><a href="?p=30#comments" title="Comment on Tristique">2 Comments ?
</a></p></h5></div>
<img src="photo.png" alt="Photo" width="85" height="80" /> <p><h4>Posted by admin
</h4>
<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>
<h2><a href="?p=28" rel="bookmark" title="Fixed link Quisque">Quisque
</a></h2>
<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.
<br /> <a href="?p=28#more-28" class="more-link">Read more >
</a></p>
<div style="float:right"><h5><p><a href="?p=28#respond" title="Comment on Quisque">No Comments ?
</a></p></h5></div>
<img src="photo.png" alt="Photo" width="85" height="80" /> <p><h4>Posted by admin
</h4>
<a href="3" title="View all posts in Aenean" rel="category">Aenean
</a><br /> <a href="4" title="View all posts in Blandit" rel="category">Blandit
</a></h6>
<h2><a href="?p=26" rel="bookmark" title="Fixed link Info">Info
</a></h2>
<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.
<br /> <a href="?p=26#more-26" class="more-link">Read more >
</a></p>
<div style="float:right"><h5><p><a href="?p=26#respond" title="Comment on Info">No Comments ?
</a></p></h5></div>
<img src="photo.png" alt="Photo" width="85" height="80" /> <p><h4>Posted by admin
</h4>
<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>
<h2><a href="?p=22" rel="bookmark" title="Fixed link Etiam sodales fringilla">Etiam sodales fringilla
</a></h2>
<p>Integer ligula nisi, condimentum vel vestibulum et, ornare ut enim. Morbi mattis velit purus. Sed ultrices neque in turpis suscipit non malesuada justo ornare. Proin vel egestas tortor.
<br /> <a href="?p=22#more-22" class="more-link">Read more >
</a></p>
<div style="float:right"><h5><p><a href="?p=22#respond" title="Comment on Etiam sodales fringilla">No Comments ?
</a></p></h5></div>
<img src="photo.png" alt="Photo" width="85" height="80" /> <p><h4>Posted by admin
</h4>
<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 style="display:inline"> <h5><div style="float:left"><a href="?paged=2" ><<< Older Entries</a></div>
</div><!--content ends-->
</div><!--general ends-->
Ten post edytował AboutMe 6.04.2010, 12:55:56