Text Color Wrong in Internet Explorer

Author Message

Raymond Williams

Wednesday 02 August 2006 10:52:17 am

I've been banging my head against the wall about this for a while now, and I can only hope at this point maybe it's something one of you has seen in regard to eZ, because that's my last guess...

For some reason, in Internet Explorer (not Firefox) all of my text is blue, unless specifically overriden by a style at the tag level. If I add color: #000000; to the global BODY style in CSS, it does nothing. If I add text="#000000" to the pagelayout.tpl body tag, it does nothing. But if I set the color in the style of the paragraph/span/whatever tag itself, that text (and only that bit, as would be expected) is black.

I cannot find anywhere that I am setting the font to blue, excepting one class in my primary CSS, and changing that to black did not change anything either.

Page is at http://www.prosoft-technology.com

For those that would run it through a validator, I am aware of the self-closing tag issues and am working to correct that. I read through an entire validation report, and nothing in there should (as far as I can see) be changing my font to blue and ignoring global style declarations.

Thanks for any feedback / suggestions.

Raymond

Hans Melis

Wednesday 02 August 2006 1:29:27 pm

Hi Raymond

Unfortunately, an "incorrectly" closed tag is the cause of your problems. The first tag after <body> is

<a name="top" />

If you change that to

<a name="top"></a>

the text will become black in IE too.

Your way works in theory and in browsers that conform to theory ;-) But it's always a good idea to write the closing tag if the tag actually has one. That will prevent you from confusing browsers that have no clue. Extra example: for an empty paragraph, you should always write <p></p> and not <p />.

Hans
http://blog.hansmelis.be

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 19 2025 00:11:33
Script start
Timing: Jan 19 2025 00:11:33
Module start 'layout'
Timing: Jan 19 2025 00:11:33
Module start 'content'
Timing: Jan 19 2025 00:11:34
Module end 'content'
Timing: Jan 19 2025 00:11:34
Script end

Main resources:

Total runtime1.0528 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.0064 588.0313152.6406
Module start 'layout' 0.00640.0031 740.671939.4766
Module start 'content' 0.00951.0419 780.1484522.8828
Module end 'content' 1.05140.0014 1,303.03138.1406
Script end 1.0528  1,311.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3115160.0002
Check MTime0.00130.1202160.0001
Mysql Total
Database connection0.00140.129110.0014
Mysqli_queries1.003195.2793540.0186
Looping result0.00060.0546520.0000
Template Total1.019996.920.5099
Template load0.00230.222320.0012
Template processing1.017596.648620.5088
Template load and register function0.00020.018310.0002
states
state_id_array0.00100.091110.0010
state_identifier_array0.00250.238120.0013
Override
Cache load0.00180.1753190.0001
Sytem overhead
Fetch class attribute can translate value0.00070.064520.0003
Fetch class attribute name0.00130.125030.0004
XML
Image XML parsing0.00070.063420.0003
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00140.1319150.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
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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs