maincontent hieght

Author Message

Anthony Kress

Thursday 31 March 2005 11:04:19 am

I probably did not explain myself well on this before. I have a special shadowed bitmap that I want to use around the maincontent.result. As the page is drawn, I need to deterime somehow the actual dynamic height of the maincontent section so I can create my bitmaps (top, left, right, and bottom) to the proper size and absolute position them on the page. I need to access a variable that lets me derive the height of the content.

Thanks for the help

Ɓukasz Serwatka

Thursday 31 March 2005 11:30:07 pm

Look in to
design/base/stylesheets/site.css

Set your height and overflow for main content

div#maincontent
{
    hight: 600px;
    overflow: auto;
} 

Otherwise you will have to catch main content div height by JS.

I hope it will help a little.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 31 2025 06:25:00
Script start
Timing: Jan 31 2025 06:25:00
Module start 'layout'
Timing: Jan 31 2025 06:25:00
Module start 'content'
Timing: Jan 31 2025 06:25:00
Module end 'content'
Timing: Jan 31 2025 06:25:00
Script end

Main resources:

Total runtime0.0135 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.0156151.1953
Module start 'layout' 0.00540.0028 739.210936.6328
Module start 'content' 0.00820.0042 775.843890.2500
Module end 'content' 0.01230.0011 866.093829.9922
Script end 0.0135  896.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002115.6433140.0002
Check MTime0.00107.0683140.0001
Mysql Total
Database connection0.00064.718110.0006
Mysqli_queries0.003626.524430.0012
Looping result0.00000.090210.0000
Template Total0.00086.210.0008
Template load0.00074.932110.0007
Template processing0.00021.230810.0002
Override
Cache load0.00043.241510.0004
General
dbfile0.00075.243380.0001
String conversion0.00000.058440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs