![]() |
|
||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||
|
|
#1 |
|
WLC Member
Join Date: Aug 2006
Posts: 15
|
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 |
|
|
|
|
|
#2 |
|
WLC Member
Join Date: Jul 2006
Location: Florence, Italy
Posts: 28
|
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 |
|
|
|
|
|
#3 |
|
WLC Lover
Join Date: Jul 2006
Location: United Kingdom, Hertfordshire
Posts: 266
|
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. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
Linear Mode |
|
|
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 |