CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 1st, 2003, 03:09 PM
simonmaduro's Avatar
simonmaduro simonmaduro is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: USA
Posts: 140 simonmaduro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 5 m 4 sec
Reputation Power: 11
Send a message via Yahoo to simonmaduro
Liquid CSS - One header, two columns

I'm wanting this type of design in my webpage, all centered:


oooooooooooooooooooooooooooooooooooooo
oooo------------------------------oooo
oooo||||||||||||||||||||||||||||||oooo
oooo------------------------------oooo
oooooooooooooooooooooooooooooooooooooo
oooo-----oo-----------------------oooo
oooo|||||oo|||||||||||||||||||||||oooo
oooo|||||oo|||||||||||||||||||||||oooo
oooo|||||oo|||||||||||||||||||||||oooo
oooo|||||oo|||||||||||||||||||||||oooo
oooo|||||oo|||||||||||||||||||||||oooo
oooo-----oo|||||||||||||||||||||||oooo
ooooooooooo|||||||||||||||||||||||oooo
ooooooooooo|||||||||||||||||||||||oooo
ooooooooooo-----------------------oooo
oooooooooooooooooooooooooooooooooooooo


o = whitespace
- and | = boxes

I can center align top box, but don't know how to get the left box to align its left side with the left side of the header.

I could do it easily by wrapping a table around the whole thing, but I'm doing my best not to fall back into my sordid addiction with tables.

Being a CSS novice, what's the best way to align one box to another? Can't see how the "relative" position style helps.

Reply With Quote
  #2  
Old August 1st, 2003, 03:14 PM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 20th Plane (14500 - 14999 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,817 jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level)jharnois User rank is General 2nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 4 Days 7 h 14 m 56 sec
Reputation Power: 1098
Wrap the whole thing in a <div> instead of a table. You don't have to do it this way, but I find it easier in the long run.
Code:
<div style="float:left;width:80%;left:10%">
  <div id="header" style="clear:left;float:left;width:100%"></div>
  <div id="left" style="clear:left;float:left;width:25%;"></div>
  <div id="right" style="float:left;width:75%;"></div>
</div>
__________________
# Jeremy

Explain your problem instead of asking how to do what you decided was the solution.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Liquid CSS - One header, two columns

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap