Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 03-07-2005, 05:31 AM CSS Layout Problem
Novice Talker

Posts: 11
Trades: 0
Hi guys,

I'm having a really irritating problem here that I hope you can help with! I'm using CSS to layout a website - but I'm having a problem where the main body is split into two columns, "leftbody" and "rightbody". I have it laid out so the footer (below these two) moves down as rightbody expands downwards. The problem is that rightbody has decided to lie slightly below leftbody, and whenever I add linebreaks or content to the left half, the right half moves down with it, never sitting flush as it should be. Why is this? Here's the CSS:


/* Layout */


body {
padding: 0px;
margin: 0px;
}

#topnav {
padding: 0px;
top: 0px;
left: 0px;
width:128px;
height:50px;
}

#topnavright {
height: 50px;
position: absolute;
padding: 0px;
top: 0px;
left: 470px;

}

.greyline {
position: absolute;
padding: 0px;
top: 50px;
background-color: #666666;
width: 100%;
height: 2px;
}


#headerimage {
position: absolute;
padding: 0px;
top: 53px;
width: 770px;
height: 180px;
}

#navsystem {
position: absolute;
padding: 0px;
top: 230px;
width: 770px;
height: 20px;
background-color: #1D2A5F;
}

#rightbody {
position: relative;
background-color: #DDDDDD;
width: 570px;
margin-left: 200px;
margin-top: 0px;
}

#leftbody {
position: relative;
padding: 20px;
background-color: #EEEEEE;
padding: 0px;
top: 200px;
width: 200px;
margin-top: 75px;

}

#navsystem2 {
clear: both;
padding: 0px;
width: 770px;
height: 15px;
}

#footer {
clear: both;
padding: 0px;
width: 770px;
background-color: #FFFFFF;
}



Any help would be greatly appreciated! I had plenty of hair when I started this - beginning to worry that won't last long!
grahamd is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-07-2005, 05:36 AM
brokensoul2271's Avatar
- - - - - - - - -

Posts: 750
Location: Lancashire, UK
Trades: 0
could this not be fixed by changin the position of the two bodies to absolute instead of relative? I'm not very good with CSS so i'm probably wrong or there will probably a better way...
__________________
Yes, indeed...

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
brokensoul2271 is offline
Reply With Quote
View Public Profile Visit brokensoul2271's homepage!
 
Old 03-07-2005, 05:49 AM
Novice Talker

Posts: 11
Trades: 0
I thought that at first - but the footer won't move down as needed if they're both absolute, for some reason. Added to that, if I set rightbody as absolute it seems to mess up the whole page now! Joy
grahamd is offline
Reply With Quote
View Public Profile
 
Old 03-07-2005, 05:57 AM
brokensoul2271's Avatar
- - - - - - - - -

Posts: 750
Location: Lancashire, UK
Trades: 0
oh dear...
Sorry...
__________________
Yes, indeed...

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
brokensoul2271 is offline
Reply With Quote
View Public Profile Visit brokensoul2271's homepage!
 
Old 03-07-2005, 10:19 AM
howardroark's Avatar
Extreme Talker

Posts: 181
Trades: 0
have you tried narrowing the width of both rightbody and leftbody? the contents adjust to the resolution of the screen, maybe they don't fit in the screen...
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
howardroark is offline
Reply With Quote
View Public Profile Visit howardroark's homepage!
 
Old 03-07-2005, 11:49 PM
Average Talker

Posts: 16
Trades: 0
Try using absolute positioning.
Slyser is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS Layout Problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24302 seconds with 12 queries