Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old May 1st, 2007, 05:58 AM   #1
New Member
 

Join Date: May 2007
Location: shrewsbury
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 obiron is on a distinguished road
fixed left column and variable right

Hi guys,

I am sure this must have been asked a thousand times but I cant find an answer on the web.


Code:
1-------------------------------------------------------+
|
2---+3------------------------------------------------+|
||   ||
4----------------------------------------------+||
||   |||                                        
5----+|||
||   |||                                        |    ||||
||   |||                                        +----+|||
||   ||+----------------------------------------------+||
|+---++------------------------------------------------+|
+-------------------------------------------------------+
 
6-------------------------------------------------------+
|
7---------------+8-------------------+9---------------+|
||               ||                   ||               ||
||               ||                   ||               ||
||               ||                   ||               ||
||               ||                   ||               ||
|+---------------++-------------------++---------------+|
+-------------------------------------------------------+ 
1 and 6 are wrappers.
2 and 3 are inner divs of 1
4 is an inner div of 3
5 is an inner div of 4
7,8,9 are inner divs of 6

1 and 6 are full width, depending on window width but are fixed height
2 is the menu and is always full height of container 1 and it's width is 15% or 150px which ever is the larger
3 is the remaining width of 1
5 is a logo and is always 150px x 150px. This is floated right so that the text in 4 flows round it
7,8,9 are all the same size and each takes up 1/3 of the available width.


in FF when you shrink the window, 3 misbehaves and jumps below the menu.
Can anyone point me in the right direction of a site with a similar layout so I can crib the position rules.

Code:
 
.1  {background-color:cyan;height:400;border-color:black;border-width:0px;padding:0px;margin:0px;position:relative;overflow:auto}
.2  {background-color:yellow;width:180px;height:100%;border-color:black;border-width:2px;float:left}
.3  {background-color:green;   border-color:black;border-width:2px;float:left}
.5  {background-color:white;width:150;height:150;border-color:black;border-width:2px;float:right;top:0;right:0}
.4  {background-color:blue;width:100%;height:400;border-color:black;border-width:2px;position:relative}
.6r {background-color:pink;width:100%;height:250;border-color:black;border-width:2px;float:left; position:relative}
.7  {background-color:red;width:33%;height:250;border-color:black;border-width:2px;float:left;border-width:0px;padding:0px;margin:0px}
.8  {background-color:orange;width:34%;height:250;border-color:black;border-width:2px;float:left;border-width:0px;padding:0px;margin:0px}
.9 {background-color:brown;width:33%;height:250;border-color:black;border-width:2px;float:right;border-width:0px;padding:0px;margin:0px}
the colours are just so I can see what is going on.

Thanks in advance

Obiron
obiron is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 1st, 2007, 07:47 AM   #2
Elite Veteran
 

Join Date: Jan 2007
Location: You know where
Age: 32
Posts: 4,607
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all
Re: fixed left column and variable right

Too early for me to understand all those numbers ... Just tell us what you are trying to achieve! From your subject you want a left column that fixed width and the right fluid?

http://bonrouge.com/2c-hf-fluid(r).php
karinne is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 1st, 2007, 10:39 AM   #3
New Member
 

Join Date: May 2007
Location: shrewsbury
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 obiron is on a distinguished road
Re: fixed left column and variable right

yes, just like that. but mine doesn't want to play.

Here is the HTML

HTML Code:
<html>
<head>
<LINK REL=StyleSheet HREF=../styles/layout.css />
<title></title>
</head>
<body>
<DIV class="topcontainer">
    <DIV class="menu"> menu
    </DIV>
    <DIV class="mainlogocontainer">
        <DIV class="main"><DIV class="logo"> logo
        </DIV> This is enough text to make the main container overflow.
        This is enough text to make the main container overflow.This is enough text to make the main container overflow.
        This is enough text to make the main container overflow.This is enough text to make the main container overflow.
        This is enough text to make the main container overflow.This is enough text to make the main container overflow.
        This is enough text to make the main container overflow.This is enough text to make the main container overflow.
        This is enough text to make the main container overflow.This is enough text to make the main container overflow.
        This is enough text to make the main container overflow.This is enough text to make the main container overflow.
        This is enough text to make the main container overflow.This is enough text to make the main container overflow.
        This is enough text to make the main container overflow.This is enough text to make the main container overflow.
        This is enough text to make the main container overflow.This is enough text to make the main container overflow.
        This is enough text to make the main container overflow.This is enough text to make the main container overflow.
        This is enough text to make the main container overflow.This is enough text to make the main container overflow.
        This is enough text to make the main container overflow.This is enough text to make the main container overflow.
        This is enough text to make the main container overflow.This is enough text to make the main container overflow.
        This is enough text to make the main container overflow.This is enough text to make the main container overflow.
        This is enough text to make the main container overflow.This is enough text to make the main container overflow.
        </DIV>
    </DIV>
</DIV>
<DIV class="smallcontainer">
  <DIV class="smallleft"> left
  </DIV>
  <DIV class="smallmid">  mid
  </DIV>
  <DIV class="smallright"> right
  </DIV>
</DIV>
</body>
</html>
and here is the style sheet

Code:
 
body {font-family :arial; background-color:silver;}
.topcontainer      {background-color:cyan;height:400;border-color:black;border-width:0px;padding:0px;margin:0px;position:relative;overflow:auto}
.menu              {background-color:yellow;width:180px;height:100%;border-color:black;border-width:2px;float:left}
.mainlogocontainer {background-color:green;   border-color:black;border-width:2px;float:left}
.logo              {background-color:white;width:150;height:150;border-color:black;border-width:2px;float:right;top:0;right:0}
.main              {background-color:blue;width:100%;height:400;border-color:black;border-width:2px;position:relative}
.smallcontainer    {background-color:pink;width:100%;height:250;border-color:black;border-width:2px;float:left; position:relative}
.smallleft         {background-color:red;width:33%;height:250;border-color:black;border-width:2px;float:left;border-width:0px;padding:0px;margin:0px}
.smallmid          {background-color:orange;width:34%;height:250;border-color:black;border-width:2px;float:left;border-width:0px;padding:0px;margin:0px}
.smallright        {background-color:brown;width:33%;height:250;border-color:black;border-width:2px;float:right;border-width:0px;padding:0px;margin:0px}
If you look at in in IE6 and close the window, the top retains it height and the scroll bar appears for the overflow of the main panel.

If you do the same in FF then when you squeeze the window it is OK until you hit the min-width for the menu then the main panel jumps below the menu and the scroll bar does't appear until the window is too narrow for the text.

I think the behaviour is different from the example you posted becuase of the second window wide container but I don;t know why.
obiron is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 3rd, 2007, 08:26 AM   #4
New Member
 

Join Date: May 2007
Location: shrewsbury
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 obiron is on a distinguished road
Re: fixed left column and variable right (fixed)

Its becuase 2 and 3 are siblings. If I put 2 inside 3 then it behaves in both IE and FF.
obiron is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 3rd, 2007, 02:34 PM   #5
Elite Veteran
 

Join Date: Aug 2005
Location: That Place
Posts: 2,081
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Rep Altering Power: 0 moojoo will become famous soon enough moojoo will become famous soon enough
Re: fixed left column and variable right

http://www.newguyinennis.com/samples..._column_fluid/
__________________

moojoo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
columns , css , fixed width , variable width


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
How can I add in a 3rd column in on the right like the one on the left ? nizmotine HTML, XHTML and CSS 7 August 13th, 2007 08:28 AM
Fixed background?! supanova75 HTML, XHTML and CSS 5 August 10th, 2007 07:40 PM
Fluid HTML Page with one fixed column width problem melc26 HTML, XHTML and CSS 1 August 24th, 2005 05:46 PM
..copy data from column A in Table A to column B in Table B? gecastill Databases 10 June 23rd, 2005 02:27 PM


Search Engine Optimization by vBSEO 3.2.0 RC8