CSS IE hack: Can't see effect in ezpublish

Author Message

Ulrich L.

Wednesday 13 April 2005 5:26:34 am

Hi,

in order to set a limit to the width off the site I use the following code (besides max-width, there is additional code in order to control behaviour of IE6. Please look also here: http://www.svendtofte.com/code/max_width_in_ie/)

/* MY_CLASSES CSS  */

div#allcontent
{
    max-width:800px;
    width:expression(document.body.clientWidth > 800? "800px": "auto" );
}

However, I can't see the desired effect in IE. Basically the hack works well, why is it different here (in ezp)?

Paul Forsyth

Wednesday 13 April 2005 5:41:03 am

If the html/css is exactly the same it should work.

Sounds like some other css value is getting in the way or the class is not being applied to the element.

This eZ site uses the same trick:

http://www.adifo.com/

Though the element is slightly different:

width: expression((this.parentNode.clientWidth < 785+0)?"750px":"auto");

paul

Ekkehard Dörre

Wednesday 13 April 2005 6:58:22 am

Very nice Paul:
http://www.adifo.com/

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Ulrich L.

Wednesday 13 April 2005 1:32:05 pm

I just haven't got the point yet.
I found out in IE the line is found and partly executed, the result is always a width with the fixed value (following my example: 800px). "auto" is never applied. I have no idea, why...
Testing this code with simple html examples is no problem at all.

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 20 2025 20:11:09
Script start
Timing: Jan 20 2025 20:11:09
Module start 'layout'
Timing: Jan 20 2025 20:11:09
Module start 'content'
Timing: Jan 20 2025 20:11:10
Module end 'content'
Timing: Jan 20 2025 20:11:10
Script end

Main resources:

Total runtime1.2088 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.0469151.2266
Module start 'layout' 0.00510.0027 739.273436.6797
Module start 'content' 0.00781.2003 775.9531601.9766
Module end 'content' 1.20810.0007 1,377.929712.1250
Script end 1.2088  1,390.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2454160.0002
Check MTime0.00130.1048160.0001
Mysql Total
Database connection0.00080.064410.0008
Mysqli_queries1.167296.5571620.0188
Looping result0.00060.0512600.0000
Template Total1.179397.620.5897
Template load0.00150.125920.0008
Template processing1.177897.435520.5889
Template load and register function0.00020.012610.0002
states
state_id_array0.00110.091810.0011
state_identifier_array0.00160.130420.0008
Override
Cache load0.00130.1073240.0001
Sytem overhead
Fetch class attribute can translate value0.00050.042130.0002
Fetch class attribute name0.00110.093150.0002
XML
Image XML parsing0.00080.067330.0003
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00070.0593160.0000
String conversion0.00000.000840.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs