Big space under 1st post until sidebar content ends
-
Hi — i have a 2-column page customized from classic theme:
expectthebestpregnancy.com/blog
As you can see there is a huge whitespace between the end of the first post and the comments — the space always ends at the same point as the last element in the right column. I went into my CSS and tried to change the margins on the left div, tried “clear:both” on the right and left divs but to no avail. I feel like this is looking me right in the face but I’m stumped.
the div IDs:
r.sidebar = “sidebar1”
left side = “mainContent”Here’s the css. thanks a million in advance!
* {padding:0; margin:0;}
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
/*background: #ff3333;*/
background: url(‘images/bgpattern.jpg’) repeat;
margin: 0; /* it’s good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #000000;
}/* classes used by the_meta() */
ul.post-meta {
list-style: none;
}ul.post-meta span.post-meta-key {
font-weight: bold;
}.credit {
background: #90a090;
border-top: 3px double #aba;
color: #fff;
font-size: 11px;
margin: 10px 0 0 0;
padding: 3px;
text-align: center;
}.credit a:link, .credit a:hover {
color: #fff;
}.feedback {
color: #ccc;
text-align: right;
clear: both;
}.meta {
font-size: .6em;
margin-bottom:15px;
}.meta li, ul.post-meta li {
display: inline;
}.meta ul {
display: inline;
list-style: none;
margin: 0;
padding: 0;
}.meta, .meta a {
color: #808080;
font-weight: normal;
letter-spacing: 0;
}.storytitle {
margin: 0;
}.storytitle a {
text-decoration: none;
}.textmiddle {
vertical-align:middle;
}.aligncenter,
div.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}.alignleft {
float: left;
}.alignright {
float: right;
}#container {
width: 900px; /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
background-image:url(images/bg900.gif);
background-repeat:repeat-y;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 1px solid #000000;
text-align: left; /* this overrides the text-align: center on the body element. */
}#indexcontainer {
width: 900px; /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
background-color:#ffffff;
/*background-image:url(images/bg.gif);
background-repeat:repeat-y;*/
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 1px solid #000000;
text-align: left; /* this overrides the text-align: center on the body element. */
}#header {
background-image:url(images/header.png);
height:130px;
width:900px;
/*padding: 0 10px 0 20px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
}#navcontainer {
width: 900px;
height: 25px; /*if bigger, force a “border” underneath, since the navcontainer is smaller*/
text-align: center;
}#mainContent {
margin: 0 250px 0 0; /* the right margin on this div element creates the column down the right side of the page – no matter how much content the sidebar1 div contains, the column space will remain. You can remove this margin if you want the #mainContent div’s text to fill the #sidebar1 space when the content in #sidebar1 ends. */
padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
}#mainContent p {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
line-height:16px;
padding-bottom: 14px;
color:#000000;
}#mainContent a {
font:inherit;
font-weight:bold;
color:#61c856;
text-decoration:none;
}#mainContent a:hover {
font:inherit;
font-weight:bold;
color:#FF3333;
text-decoration:none;
}#mainContent ul {
margin-left:80px;
}#mainContent ul li {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
line-height:16px;
padding-bottom: 14px;
color:#000000;
}#recipes ul {
margin-left:30px;
list-style-type:none;
border-top:#93d6de 3px dotted;
border-bottom:#93d6de 3px dotted;
margin-right:175px;
padding-top:10px;
margin-bottom:10px;
}#recipes ul li {
line-height:12px;
padding-left:10px;
}#container h1 {
padding-top:14px;
padding-left:2px;
margin-bottom:10px;
border-bottom:#93d6de 3px dotted;
}#container h2 {
font: 95% verdana, Verdana, Arial, Helvetica, sans-serif;
letter-spacing: 0.2em;
margin: 15px 0 2px 0;
padding-bottom: 2px;
}#container h3 {
font: 115% verdana, Verdana, Arial, Helvetica, sans-serif;
border-bottom: #93d6de 3px dotted;
margin-bottom:3px;
}#container h3 a {
font: 115% verdana, Verdana, Arial, Helvetica, sans-serif;
margin-top: 0;
}#container h3 a:hover {
font-weight:normal;
font-size:115%;
color:#FF3333;
text-decoration:none;
}#footer {
height:25px;
width: 900px;
background-color:#93d6de;
margin-top:10px;
border-top:#000000 solid 1px;
}#footer p {
margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse – a space between divs */
padding: 4px 20px;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:10px;
line-height:16px;
color:#000000;
}#footer a {
font:inherit;
font-weight:bold;
color:#000000;
text-decoration:none;
}#footer a:hover {
color:#FFFFFF;
}.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
border:#000000 1px solid;
padding-bottom: 4px;
}.fltlft { /* this class can be used to float an element left in your page */
float: left;
margin-right: 8px;
}.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}.border {
border:black solid 1px;
}.bookhome {
float:left;
padding: 0 15px 10px 0;
}.italic {
font-style: italic;
}.red {
color:#ff3333;
}#sidebar1 {
float: right; /* since this element is floated, a width must be given */
width: 220px; /* the actual width of this div, in standards-compliant browsers, or standards mode in Internet Explorer will include the padding and border in addition to the width */
background-color: transparent;
text-align:center;
padding-top:15px;
clear:right;
}#sidebar1 h4 {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
font-size:12px;
color:#ffffff;
}#sidebar1 p {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
line-height:16px;
color:#000000;
}#sidebar1 a {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
line-height:16px;
color:#FFFFFF;
font-weight:bold;
text-decoration:none;
}#sidebar1 h4 a {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
line-height:16px;
color:#FFFFFF;
text-decoration:none;
font-weight:bold;
}/*
#menu {
background: #fff;
border-left: 1px dotted #ccc;
border-top: 3px solid #e0e6e0;
padding: 20px 0 10px 30px;
position: absolute;
right: 2px;
top: 0;
width: 11em;
}
*/#menu form {
margin: 0;
}#menu input#s {
width: 80%;
background: #eee;
border: 1px solid #999;
color: #000;
}#menu ul {
text-align:left;
color: #fff;
font-weight: bold;
list-style-type: none;
margin: 0 0 10px 10px;
padding-left: 3px;
text-transform: lowercase;
}#menu ul li {
font: italic normal 110% ‘Times New Roman’, Times, serif;
letter-spacing: 0.1em;
margin-top: 10px;
padding-bottom: 2px; /*border-bottom: dotted 1px #ccc;*/
}#menu ul ul {
font-variant: normal;
font-weight: normal;
line-height: 100%;
list-style-type: none;
margin: 0;
padding: 0;
text-align: left;
}#menu ul ul li {
border: 0;
font: normal normal 12px/115% ‘Lucida Grande’, ‘Lucida Sans Unicode’, Verdana, sans-serif;
letter-spacing: 0;
margin-top: 0;
padding: 0;
padding-left: 12px;
}#menu ul ul li a {
color: #000;
text-decoration: none;
}#menu ul ul li a:hover {
border-bottom: 1px solid #809080;
}#menu ul ul ul.children {
font-size: 142%;
padding-left: 4px;
}
- The topic ‘Big space under 1st post until sidebar content ends’ is closed to new replies.