layout with dynamic heights

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


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Nov 10th, 2005, 14:56
New Member
Join Date: Nov 2005
Age: 27
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
layout with dynamic heights

Hi! (first post wiiii)

i'm pretty new at making layouts with CSS.

now i have particular problem with making certain divisions' height dependant on the user's viewport size.

what i would like to have is something like this (See Attached)

i have tried a bit with relative and absolute positions, but either it doesn't work or it is never how i want to be.

can someone perhaps give me some clues as to how i can make something like this?

thanks in advance!
Attached Images
File Type: jpg opmaak.JPG (18.0 KB, 49 views)

Last edited by Rob; Nov 10th, 2005 at 15:12.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Nov 19th, 2005, 18:02
Junior Member
Join Date: Nov 2005
Location: Santa Cruz, CA
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: layout with dynamic heights

have you googled it? I am not sure of many that have done this before... am sure it can be done....

maybe if you did a server side script that calculated browser width and/or height then provided a css for each size of the screen or you could do server side math to get this to work...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Nov 21st, 2005, 03:11
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Re: layout with dynamic heights

Code: Select all
<div style="width: 100%; height: 100px; background-color: #F00; margin: 0px;">Head</div>
<div style="width: 120px; position: absolute; top: 100px; bottom: 0px; background-color: #0F0;">Menu</div>
<div style="position: absolute; top; 100px; left: 120px; right: 0px; background-color: #00F;">Content</div>
<div style="height: 80px; position: absolute; bottom: 0px; left: 120px; right: 0px; float: left; background-color: #FF0;">Your footer</div>

This is the best I could do, the footer will float over top of everything when the window gets smaller then the content. You could fix that with z-index. which would cause it to go under things.
It doesn't go full height in IE, but that shouldn't matter unless your doing some crazy colouring like I have.

As far as I know this is the best that can be done without switching to evil tables.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Nov 23rd, 2005, 20:29
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: layout with dynamic heights

This might do the trick. I believe that might help with your challenge.
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

Tags
layout, dynamic, heights

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
Dynamic layout Dgrade Flash & Multimedia Forum 0 Mar 27th, 2008 14:18
Dynamic Layout Dgrade Flash & Multimedia Forum 3 Mar 17th, 2008 03:03
CSS DIV Heights! smriyaz Web Page Design 4 Oct 15th, 2007 10:54
css id heights bean_2k1 Web Page Design 3 Apr 7th, 2007 20:15
Javascript to set equal heights to 3 autoextending columns joshdub223 JavaScript Forum 1 Apr 22nd, 2006 19:22


All times are GMT. The time now is 13:42.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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