float question...

This is a discussion on "float question..." within the Web Page Design section. This forum, and the thread "float question... are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 22nd, 2006, 16:56
New Member
Join Date: Jan 2006
Age: 30
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
float question...

Hi,

In a layout of two columns using floats, how do I get the content column to use the size of the full size of the screen rather than just the size of its content.

Code: Select all
<div id="nav" style="float:left;width:200px;">
Navigation
</div>
<div id="content" style="float:right;">
Content
</div>
Thanks

Asa
Reply With Quote

  #2 (permalink)  
Old Aug 22nd, 2006, 22:18
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: float question...

Perhaps you could expand a bit on what exactly you mean?
Reply With Quote
  #3 (permalink)  
Old Aug 23rd, 2006, 13:00
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,761
Blog Entries: 1
Thanks: 0
Thanked 18 Times in 18 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: float question...

I do believe he has one fixed width and one liquid column. Thus is in search of the holy grail more or less.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #4 (permalink)  
Old Aug 23rd, 2006, 21:35
Reputable Member
Join Date: Jul 2005
Posts: 400
Thanks: 0
Thanked 0 Times in 0 Posts
Re: float question...

You don't float the content area. Give it a left margin of 220px or so.
Reply With Quote
  #5 (permalink)  
Old Aug 27th, 2006, 00:18
Up'n'Coming Member
Join Date: Jun 2006
Location: Northern Ireland, United Kingdom
Age: 22
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Antwan
Re: float question...

yeah you see, by setting the width of the column, your saying that no matter what resolution the website is viewed at, it will always be 200px. Personally, i'd use percentages, that'll make your columns be for example, 20% of the screens resolution etc.

So an example would be one columns, width: 40% float:left
and the other column would be width: 60%

That way no matter what the resolution of the screen is, column one will always be 40% of it and column two will always be 60% of it. Does that help at all? If you need exact code just tell me and i'll write it out.
Reply With Quote
Reply

Tags
float, question

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Css Float??? RZX Developer Web Page Design 4 Aug 13th, 2007 10:37
Basic float/clear question rawling Web Page Design 4 Jul 19th, 2007 08:52
Problems with float:left float:right nvidiajoe Web Page Design 8 Nov 17th, 2006 20:24
IE6 Float masonbarge Web Page Design 8 Aug 16th, 2006 10:13
right float problem... c_martini Web Page Design 11 Aug 2nd, 2006 13:47


All times are GMT. The time now is 22:15.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43