How to eliminate annoying GAP!
-
Hi,
I’m getting terribly frustrated here.
I used the “clean-home” them to design my blog and everything seemed fine. Here it is:
https://www.lancehewison.com/blog/
Once I switched the body background color to black, I noticed this gap towards the bottom of my site (under the sidebar, above the footer).
I think the problem is that as I add new posts to my blog, the #content div will automatically expand. Because new content will not be added to the #sidebar, it will not expand with the #content div.
I’m sure there’s a simple solution for this in the CSS. I’ve tried everything, but still cannot fix this issue.
How do I get the #content and #sidebar to be friends? Or should I just live with the gap?
Thanks all.
ps–I’m pretty new to all this, so I will need step-by-step instructions.
Here is my CSS so far:
body {
font-family:Arial, serif;
font-size:13px;
font-style:normal;
font-variant:normal;
font-weight:normal;
line-height:1.7em;
background-color:#000;
}
a {
border-bottom:1px dotted #000;
text-decoration:none;
color:#000;
font-weight:600;
}
a:hover {
color:#e12000;
border-bottom:1px dashed #e12000;
background-color:#f7f7f7;
}
hr{
margin-top:35px;
border:0;
border-top:1px dotted #ccc;
width:620px;
color:#fff;
clear:both;
}
#wrapper {
background-color:#fff;
width:900px;
margin-top:30px;
margin-bottom:30px;
margin-right:auto;
margin-left:auto;
color:#ccc;
}
#header {
color:#fff;
float:left;
height:120px;
width:900px;
border-bottom:1px dotted #ccc;
margin:0;
background-image:url(https://lancehewison.com/blog/wp-content/uploads/2010/08/refraction_artblog.jpg);
background-repeat:no-repeat;
}
#logo {
float:left;
width:auto;
padding:18px 0 34px 0;
}
#logo a {
color:#ff2b06;
font-size:60px;
font-weight:600;
text-decoration:none;
border-bottom:none;
letter-spacing:-4px;
background-color:#fff;
}
#logo h2 {
font-size : 18px;
font-weight : 200;
padding : 12px 4px 0 0;
letter-spacing : -1px;
}
#nav {
font-size : 16px;
float:right;
width:auto;
padding:80px 0;
}
#nav ul {
height:50px;
float:right;
}
#nav li {
color:#fff;
text-align:center;
float:left;
display:inline;
width:auto;
}
#nav li a {
color:#fff;
font-size:16px;
font-weight:400;
display:block;
padding:15px;
border-bottom:none;
}
#nav li a:hover {
color:#ff0000;
background-color:#fff;
}
#blurb {
background-image:url(https://lancehewison.com/blog/wp-content/uploads/2010/08/quote_banner.jpg);
background-repeat:no-repeat;
text-align:center;
font-style:italic;
font-family:Georgia;
height:auto;
width:100%;
float:left;
padding-top:20px;
padding-bottom:20px;
font-size:18px;
font-weight:400;
line-height:120%;
}
#blurb:hover {
color:#;
}
#content {
background-color:#fff;
width:620px;
float:left;
padding-top:105px;
padding-left:50px;
border-right:1px dotted #ccc;
border-left:1px dotted #ccc;
min-height:400px;
background-image:url(https://lancehewison.com/blog/wp-content/uploads/2010/08/featured_artist.jpg);
background-repeat:no-repeat;
}
.post {
padding:0 30px 0 0;
}
.post p {
margin:14px 0 14px 0;
}
.post em{
font-style:italic;
}
.post h2 {
font-family:Georgia;
font-size:24px;
margin:25px 0 10px 0;
font-weight:normal;
}
.post h1, .post h1 a{
font-family:Georgia;
font-size:22px;
margin:30px 0 10px 0;
font-weight:normal;
line-height:32px;
}
.post h3, .post h4 {
font-family:Georgia;
font-size:20px;
margin:15px 0 10px 0;
font-weight:normal;
}
.post h4 {
font-size:18px;
}
.post h1:hover, .post h2:hover, .post h3:hover, .post h4:hover {
color:#e12000;
}
.post .indent {
padding-left:10px;
}
.post .indent p {
padding-left:10px;
}
.post small {
font-size:11px;
}
.post small a {
font-weight:normal;
}
.post .alignright {
float:right;
margin-left:10px;
}
.post .alignleft {
float:left;
margin-right:10px;
}
.post .aligncenter {
margin:0 auto;
display:block;
}
.post abbr {
font-weight:normal;
}
.post ul{
list-style:circle;
margin:0 0 0 25px;
}
.post ol{
list-style:decimal;
margin:0 0 0 30px;
}
.post .wp-caption {
background:#f7f7f7;
border:1px solid #ccc;
margin:10px;
text-align:center;
padding:5px 0 0;
}
.post .wp-caption-text {
margin:0;
}
.post .wp-caption a, .post .wp-caption a:hover {
border-bottom:0;
}
.post blockquote {
color:#777;
border-left:5px solid #ccc;
margin:15px 30px 0 10px;
padding-left:20px;
}
.post pre {
font-family:courier;
font-size:12px;
letter-spacing:-1px;
margin:14px 0 14px 0;
}
.post .message ul {
margin:12px 0 0;
}
.post .message {
display:none;
background:#0F67A1;
margin-top:10px;
padding:20px;
color:#fff;
}
#comments h3, #comments h4{
font-family:Georgia;
font-size:24px;
margin:35px 0 5px;
font-weight:normal;
}
#comments h4{
font-size:28px;
}
#comments cite{
font-family:Georgia;
font-size:18px;
font-weight:normal;
border-bottom:1px dotted #ccc;
}
#comments em {
font-style:italic;
text-align:right;
}
#comments ol.commentlist li {
margin-top:20px;
border:1px dotted #ccc;
border-right:0;
padding:10px 5px 20px 10px;
min-height:110px;
}
#comments p {
margin:10px 0 0 10px;
width:auto;
}
#comments span {
display:block;
color:#eee;
font-family:Georgia;
font-size:120px;
font-weight:normal;
float:right;
padding-top:25px;
}
#comments ul.formlist {
margin:20px auto;
width:375px;
}
#comments ul.formlist li {
display:block;
margin:10px 0 0;
}
#comments ul.formlist p{
margin:10px 0 0;
text-align:center;
}
#comments input {
font-family:Georgia;
width:370px;
font-size:18px;
font-weight:normal;
}
#comments textarea {
font-family:Georgia;
width:370px;
font-size:18px;
font-weight:normal;
}
#comments li.submitbutton input {
text-align:center;
background:#fff;
border:1px solid #aaa;
color:#000;
font-family:Georgia;
font-weight:normal;
font-size:20px;
width:374px;
}
#comments .center {
text-align:center;
}
#sidebar {
padding-left:18px;
background-color:#fff;
height:700px;
width:210px;
float:right;
margin:auto auto auto auto;
}
#sidebar h3 {
padding:25px 0 3px 0;
font-size:18px;
}
#sidebar .block ul {
border-bottom:1px dotted #ccc;
}
#sidebar .block ul .children{
border:0;
padding: 0 0 0 8px;
}
#sidebar .block li {
border-top:1px dotted #ccc;
}
#sidebar .block li a {
background:transparent url(images/bullet_black.gif) no-repeat scroll 6px 52%;
font-size:13px;
font-weight:normal;
padding:2px 0 2px 15px;
display:block;
border-bottom:none;
}
#sidebar .block li a:hover {
background:#f7f7f7 url(images/bullet_red.gif) no-repeat scroll 6px 52%;
}
#sidebar .widget_search label {
display:block;
padding:25px 0 3px 0;
font-size:10px;
border-bottom:1px dotted #ccc;
margin:0 0 5px;
}
#sidebar .widget_recent_comments li {
background:transparent url(images/bullet_black.gif) no-repeat scroll 6px 52%;
padding:2px 0 2px 15px;
}
#sidebar .widget_recent_comments li a,#sidebar .widget_recent_comments li a:hover{
background:none;
border-bottom:1px dotted #000;
text-decoration:none;
color:#000;
font-weight:600;
}
#sidebar .widget_recent_comments li a:hover {
color:#e12000;
border-bottom:1px dashed #e12000;
background-color:#f7f7f7;
}
#sidebar .widget_tag_cloud h3 {
margin:0 0 8px;
border-bottom:1px dotted #ccc;
}
#sidebar .widget_text h3 , #sidebar .calendar h3{
border-bottom:1px dotted #ccc;
}
#sidebar .calendar h3{
display:none;
}
#sidebar #wp-calendar {
width:95%;
text-align:center;
}
#sidebar #wp-calendar caption, #sidebar #wp-calendar td, #sidebar #wp-calendar th{
text-align:center;
}
#sidebar #wp-calendar caption {
font-size:18px;
padding:25px 0 3px 0;
}
#sidebar #wp-calendar th {
font-weight: bold;
border-top:1px dotted #ccc;
border-bottom:1px dotted #ccc;
}
#sidebar #wp-calendar tfoot td{
border-top:1px dotted #ccc;
border-bottom:1px dotted #ccc;
}
#footer {
background-color:#fff;
width:900px;
float:right;
text-align:center;
padding:30px 0 40px 0;
}
- The topic ‘How to eliminate annoying GAP!’ is closed to new replies.