display menu and main part height (css)

Author Message

Simon Thia

Thursday 24 May 2007 7:46:01 am

I'd like to make my main content with the size of the menu when there not enough content in the main area.

_______ ==> _______
|///|///////| ==> |///|///////|
|///|____| ==> |///|.........|
|__|***** ==> |__|____|
*grey

I read in a previous post that it was possible in CSS to do this, but i would also like that the main part extend with the size content without extending the menu
_______ ==> _______
|///|///////| ==> |///|///////|
|///|///////| ==> |///|///////|
|....|///////| ==> |__|///////|
|__|____| ==> ***|____| *grey

The difficulty is that I have 2 background colors, the main part is white and the <body> is grey, and putting the two <div>(s) in another one don't allow me two have differents colors.

I found a way to do this by putting the min-height value in the css, but I wonder if there's a simplier way to do it.

André R.

Thursday 24 May 2007 9:21:02 am

It's possible using either javascript or a table... :)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 21:03:01
Script start
Timing: Jan 18 2025 21:03:01
Module start 'layout'
Timing: Jan 18 2025 21:03:01
Module start 'content'
Timing: Jan 18 2025 21:03:03
Module end 'content'
Timing: Jan 18 2025 21:03:03
Script end

Main resources:

Total runtime1.7326 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 589.4609152.6406
Module start 'layout' 0.00710.0037 742.101639.4766
Module start 'content' 0.01071.7206 781.5781525.9531
Module end 'content' 1.73130.0012 1,307.53138.1406
Script end 1.7325  1,315.6719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.1986160.0002
Check MTime0.00130.0728160.0001
Mysql Total
Database connection0.00120.068410.0012
Mysqli_queries1.682397.0960540.0312
Looping result0.00080.0453520.0000
Template Total1.689697.520.8448
Template load0.00200.117720.0010
Template processing1.687597.398920.8438
Template load and register function0.00020.011110.0002
states
state_id_array0.00140.079210.0014
state_identifier_array0.00090.054420.0005
Override
Cache load0.00160.0948200.0001
Sytem overhead
Fetch class attribute can translate value0.00110.066220.0006
Fetch class attribute name0.00170.098130.0006
XML
Image XML parsing0.00080.048820.0004
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00090.0495170.0001
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs