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
How to create a container under two columns?
Old 05-05-2009, 06:23 PM How to create a container under two columns?
Extreme Talker

Posts: 216
Trades: 0
In the php script that I'd like to modify, it has a file for the header & footer part of the web page, and a file for the content part of the web page. The content part has a left and right column. Underneath these columns, I'd just like to add a box for more content, all the way across the web page, underneath the two columns.

The code shows below a simplified version of the content of the page.

When I add something below <!--End Right Column--> it appears under the right column. Can you provide some basic code which would add a box that stretches across the web page underneath the left and right column?

Any help would be appreciated. Thanks.

Code:
<!--Begin Left Column--><title>ads</title>
<div id="column-left-1">
  
</div>
<!--End Left Column-->
<!--Begin Right Column-->
<div id="column-right-1">
 
</div>
<!--End Right Column-->
chrisj is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-05-2009, 07:00 PM Re: How to create a container under two columns?
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Could you show us your css? There's no reason why anything you place below the right column code is only showing below that column. At least not based on the html you're showing. Either there's more html we're not seeing or it's something in your css.

You could add a wrapper around both columns

HTML Code:
<div id="wrapper">
<div id="column-left-1">
  
</div>
<!--End Left Column-->
<!--Begin Right Column-->
<div id="column-right-1">
 
</div>
<!--End Right Column-->
</div> <!-- closes wrapper div -->

new stuff here
You shouldn't need to do this though to get it work
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by vangogh; 05-05-2009 at 07:02 PM..
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 05-05-2009, 07:49 PM Re: How to create a container under two columns?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
My guess would be .. and it's just a guess - that the columns, either one or both of them, are FLOATED. In order to get your new box to appear under BOTH columns you have to CLEAR those floats. Add the new div, and make sure it has clear:both; in the css for that new div and that will clear the floated columns above it.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-05-2009, 08:40 PM Re: How to create a container under two columns?
Extreme Talker

Posts: 216
Trades: 0
Yes, good guess. The columns are floated.

Would you mind expanding on your reply "clear:both; in the css for that new div"

I put this in the page file <div style="clear:both;"></div> and that did nothing.

Are you saying I should put this in the css file? Can you tell me how it should appear there?

Thanks.
chrisj is offline
Reply With Quote
View Public Profile
 
Old 05-06-2009, 11:14 AM Re: How to create a container under two columns?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
ALL your styles should be in the css file, NOT inline.

What I'm suggesting is this:

Quote:
<div id="column-left-1">
Left column floated left
</div>

<div id="column-right-1">
right column
</div>

<div id="bottom-box">
div under columns
</div>
Then the css I'd use for #bottom-box:

Quote:
#bottom-box{
clear: both;
width: xxxxx;
margin: xx;
padding: xx;
}
If that doesn't work, then we need to see all the code, or a URL so we can see what else is going on. I've used this method before on a similar layout, so I know it will work.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How to create a container under two columns?
 

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.18780 seconds with 12 queries