Code fix for topmenu with IE Mac

Author Message

Clay Pereira

Tuesday 17 August 2004 11:22:09 am

A problem enters the picture for IE5/Mac when an auto-width block-level element is inserted into a floated element. Other browsers still shrink the float as small as possible, regardless of the block-level element it contains. But IE5/Mac doesn’t shrink the float in this circumstance. Instead, it expands the float and block-level element to full available width. To work around this problem, we need to float the anchor also, but only for IE5/Mac, lest we throw off other browsers.

div#topmenu li a

{   float:left;

    text-decoration: none;

}

 /* Commented Backslash Hack

hides rule from IE5-Mac \*/

div#topmenu li a {float:none;}

/* End IE5-Mac hack */ 

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

Main resources:

Total runtime0.8286 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.9375152.6250
Module start 'layout' 0.00590.0024 740.562539.4453
Module start 'content' 0.00830.8187 780.0078399.6172
Module end 'content' 0.82700.0015 1,179.62508.1563
Script end 0.8285  1,187.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4207160.0002
Check MTime0.00170.2019160.0001
Mysql Total
Database connection0.00070.079310.0007
Mysqli_queries0.792795.6763460.0172
Looping result0.00040.0522440.0000
Template Total0.799396.520.3996
Template load0.00210.254220.0011
Template processing0.797296.207720.3986
Template load and register function0.00020.024910.0002
states
state_id_array0.00100.125410.0010
state_identifier_array0.00080.095520.0004
Override
Cache load0.00170.204850.0003
Sytem overhead
Fetch class attribute can translate value0.00080.099910.0008
Fetch class attribute name0.00090.106210.0009
XML
Image XML parsing0.00010.012710.0001
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00060.0721100.0001
String conversion0.00000.000740.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs