Odd bottom spacing problem

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 6th, 2007, 01:19
New Member
Join Date: May 2007
Location: Eugene, OR
Age: 20
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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
Code: Select all
Nifty("div#content,div#side","same-height right");
The code that I quoted above makes two listed elements(
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.
Reply With Quote

  #2 (permalink)  
Old May 6th, 2007, 14:27
craig's Avatar
Reputable Member
Join Date: Sep 2005
Location: Preston, UK
Age: 21
Posts: 381
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to craig
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
Reply With Quote
  #3 (permalink)  
Old May 6th, 2007, 16:27
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Odd bottom spacing problem

I would use faux columns as well.

See if overflow:hidden; works on the side div.
Reply With Quote
Reply

Tags
css, help, margin, padding, rounded corners

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 21:20.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43