WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > CSS > Four-paned page in CSS?

Reply
  Thread Tools Display Modes
Old 31st August 06, 11:18 AM   #1
jkies00
WLC Member
 
Join Date: Aug 2006
Posts: 15
Default Four-paned page in CSS?

Hello,

I have a site I'm building, and the landing page will look something like this screenshot:



I'd like to create this layout using divs and css instead of a table. It's not tabular data, and so it shouldn't use a table.

I'm having a tough time implementing it, and I'm looking for some suggestions, code samples, a url, anything to get me going. I'm trying to get this site live in a few days, and I'm a bit stuck on this page.

Anyone have any ideas for me?

Thanks,
~jeff
jkies00 is offline   Reply With Quote
Old 31st August 06, 12:47 PM   #2
pfmac
WLC Member
 
Join Date: Jul 2006
Location: Florence, Italy
Posts: 28
Default Re: Four-paned page in CSS?

To help you get started you would need to have a container div with 4 div's inside.

<div id="container">
<div class="box">content</div>
<div class="box">content</div>
<div class="box">content</div>
<div class="box">content</div>
<br style="clear:left;">
</div>

CSS:
#container {width:100%; background:red;}
.box {width:47%; margin:1%; float:left; background:blue;}

The background is only to see what happens. This is a pretty basic example but should help you get started. Try it and let us know how you get on
pfmac is offline   Reply With Quote
Old 31st August 06, 04:02 PM   #3
Game Makker
WLC Lover
 
Game Makker's Avatar
 
Join Date: Jul 2006
Location: United Kingdom, Hertfordshire
Posts: 266
Default Re: Four-paned page in CSS?

yeah your best bet is using the float property. This will force them to display in an inline style but any that don't fit within the container are then placed underneath where they will do the same.
__________________
**
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
**
Simple articles to help anyone get started.
Game Makker is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page footer amartires CSS 6 26th June 07 01:27 PM
Validation OK, yet page displays differently in IE and FF? StevenHu Browser Compatibility 1 21st February 07 09:57 PM
How to Eliminate the top and bottom page margins tvbc1106 CSS 3 11th January 07 07:27 PM
xhtml page in center prowebdesign4u CSS 8 25th May 06 06:34 PM
[TUTORIAL] How do I center a page layout? Jen Resources 5 18th April 06 07:15 PM


All times are GMT. The time now is 02:43 PM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.