This is a discussion on "Odd bottom spacing problem" within the Web Page Design section. This forum, and the thread "Odd bottom spacing problem are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Odd bottom spacing problem
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Odd bottom spacing problem
I think this is a CSS related problem, but truth be told I'm not completely sure. The site that I'm putting together is using Nifty Corners Cube to make rounded corners. It's a really easy to implement.
Anyway, I'm working on the template for my blog layout. You can see what I got here: http://www.monkeysinabarrel.com/template/blog.html Just by looking at it you should be able to the problem. I want the side-bar to be the same hight as all the combined posts on the right. Now, thanks to Nifty Corners there is an easy way to do this. If you look at the peice of code that tells which element to apply rounded corners to http://www.monkeysinabarrel.com/template/niftylayout.js
div#content,div#side) the same hight with the "same-height" tag. Simple enough to understand, yes? So anyway, the div#content tag surrounds all of the posts which should make it the same hight as the blog posts, which would then make the side-bar the same hight. It works perfectly like that in FF when there is only one post: http://www.monkeysinabarrel.com/template/blog1.html But like seen above, once there is more than one post , the posts leak out 10 pixels past div#content, which shouldn't be happening. Now, what make me think that this is related to the CSS is, for each blog post I have a bottom margin of 10px. When there are two posts, and I change that margin to 20px, the side-bar aligns just perfectly. When there are three posts, and I change that margin to 30px, again the side-bar aligns. Thing is, I don't want to have a 30px spacing between each blog post. Thats just over-kill. Does anyone have an idea on how to fix it? here is a list of the important files single blog post: http://www.monkeysinabarrel.com/template/blog1.html two blog posts: http://www.monkeysinabarrel.com/template/blog1.html CSS: http://www.monkeysinabarrel.com/template/blog.css The important CSS elements are div#content, div.post, div#side If theres anything that I'm leaving out, just ask. I've been playing around trying to fix this for the past few hours and got nowhere. |
|
|
|
#2
|
||||
|
||||
|
Re: Odd bottom spacing problem
One way I can think to solve this is to have a background image in #content to give the impression of that yellow column, and just have the text in that column on a transparent background.
Trying to get columns to line up with CSS is something which has been tried many times, but people end up reverting to the faux column which i just explained. Hope this helps, Craig |
|
#3
|
|||
|
|||
|
Re: Odd bottom spacing problem
I would use faux columns as well.
See if overflow:hidden; works on the side div. |
![]() |
| Tags |
| css, help, margin, padding, rounded corners |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem setting the left/right/top/bottom padding of a table to different values | tonyb | Web Page Design | 2 | May 2nd, 2008 20:30 |
| CSS margin-bottom property problem | cangoalie | Web Page Design | 12 | Mar 8th, 2008 20:40 |
| Css Spacing Help! | RZX Developer | Web Page Design | 5 | Aug 13th, 2007 12:26 |
| Bottom Spacing Issue | Coty Skaj | Web Page Design | 4 | Jul 5th, 2006 16:31 |
| Remove UL spacing problem | relph2 | Web Page Design | 3 | Jan 3rd, 2006 17:22 |