Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
100% height of an inner div
Old 03-01-2007, 01:35 AM 100% height of an inner div
johnncyber's Avatar
Extreme Talker

Posts: 216
Trades: 0
I am trying to make a relatively easy fluid, 2 column layout, however I can not get the content column and the right column be 100% of the height of the container div.

Here is the simplified HTML (it is a Joomla Template)

Code:
<body>
<div id="container">
<div id="header">
  <img src="<? echo $GLOBALS[mosConfig_live_site]."/templates/".$GLOBALS[cur_template];?>/images/logo.png" alt="Young Professionals of Greater Lubbock"/>
</div><!-- end header -->
<div id="topMenu">
  <?php mosLoadModules ( 'topMenu' ); ?>
</div><!-- end topMenu -->
<div id="wrapper">
<!-- ============ Right Area ============ !-->
<div id="right">
  <?php mosLoadModules ( 'right' ); ?>
</div><!-- end right -->

<!-- ============ Content Area ============ !-->
<div id="content">
<?php include_once ("mainbody.php"); ?>
</div><!-- end content -->

</div><!-- end wrapper -->
<div id="footer">
<?php mosLoadModules ( 'footer' ); ?>
</div><!-- end footer -->

</div><!-- end container -->
</body>
Here is the Live Site: http://mark.eve-websolutions.com/
__________________
~Mark Romero
-Co Founder | Tech Guru,
Please login or register to view this content. Registration is FREE

-FireFox Advocate,
Please login or register to view this content. Registration is FREE
johnncyber is offline
Reply With Quote
View Public Profile Visit johnncyber's homepage!
 
 
Register now for full access!
Old 03-03-2007, 05:59 AM Re: 100% height of an inner div
pitbull82's Avatar
Super Talker

Posts: 147
Name: Marcin Nabiałek
Location: Poland, Częstochowa
Trades: 0
If I understand you well, I want to have to div columns to have exact height. There's no possibility to achieve it via CSS - solution is using image as the background which will imitate columns.

If you look at one of my sites: http://it.mnabialek.pl you will see 3 columns 100% height - but in fact they are not having exact size. I used http://it.mnabialek.pl/images/layout/tlo.gif to achieve such result.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
pitbull82 is offline
Reply With Quote
View Public Profile Visit pitbull82's homepage!
 
Old 03-03-2007, 06:43 AM Re: 100% height of an inner div
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
unless you explicitly set the container height, the browser can't determine what 100% is equal to.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-04-2007, 03:20 PM Re: 100% height of an inner div
johnncyber's Avatar
Extreme Talker

Posts: 216
Trades: 0
Quote:
Originally Posted by pitbull82 View Post
If I understand you well, I want to have to div columns to have exact height. There's no possibility to achieve it via CSS - solution is using image as the background which will imitate columns.

If you look at one of my sites: http://it.mnabialek.pl you will see 3 columns 100% height - but in fact they are not having exact size. I used http://it.mnabialek.pl/images/layout/tlo.gif to achieve such result.
The problem with that solution is that the columns are a fixed width. I am trying to make a 2 column fluid design.

chrishirst: I explicitly told the page height to be 100% and the container divs to also be 100%. From what I understand that should be enough to make an inner div height's 100%.
__________________
~Mark Romero
-Co Founder | Tech Guru,
Please login or register to view this content. Registration is FREE

-FireFox Advocate,
Please login or register to view this content. Registration is FREE
johnncyber is offline
Reply With Quote
View Public Profile Visit johnncyber's homepage!
 
Old 03-04-2007, 03:45 PM Re: 100% height of an inner div
pitbull82's Avatar
Super Talker

Posts: 147
Name: Marcin Nabiałek
Location: Poland, Częstochowa
Trades: 0
If you have 2 fluid columns ther won't be any problem. You will only have to use background-position with %
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
pitbull82 is offline
Reply With Quote
View Public Profile Visit pitbull82's homepage!
 
Old 03-05-2007, 12:00 AM Re: 100% height of an inner div
Experienced Talker

Posts: 30
Name: Ben Henick
Trades: 0
As an addition to the mnabialek.pl demo, I put together the following:

http://www.henick.net/vignettes/columns.php

Hope it helps.
persist1 is offline
Reply With Quote
View Public Profile
 
Old 03-05-2007, 04:11 AM Re: 100% height of an inner div
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
I explicitly told the page height to be 100% and the container divs to also be 100%. From what I understand that should be enough to make an inner div height's 100%
Yep, sure but do you know what 100% of 100% means.
100% is not an explicit height, 600px would be an explicit height

the browser rendering engine doesn't know what the height of the body element will be (in pixels) until the page is fully rendered.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-06-2007, 11:24 AM Re: 100% height of an inner div
johnncyber's Avatar
Extreme Talker

Posts: 216
Trades: 0
I fixed my problem. What I ended up doing is putting the background of the content div as the background of the body and then created a XX px column that stretched 100% of the body underneath the right nav. Thanks for all your help.
__________________
~Mark Romero
-Co Founder | Tech Guru,
Please login or register to view this content. Registration is FREE

-FireFox Advocate,
Please login or register to view this content. Registration is FREE
johnncyber is offline
Reply With Quote
View Public Profile Visit johnncyber's homepage!
 
Reply     « Reply to 100% height of an inner div
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26682 seconds with 12 queries