CSS stylesheet is not being used

Author Message

Alexander Celle

Tuesday 22 June 2004 6:20:57 am

Hi, I need some help. I recently upgraded from 3.3 to 3.4 and now my stylesheet is not being used.

You can check the problem on site http://www.ppp.cl/. If you look at the source code you will see that the stylesheet http://www.ppp.cl/design/ppp/stylesheets/ppp.css is being invoked but believe me it is not being used as some of the text on the light blue left section should be in bold.

BTW, you can fetch the css directly from the browser because I had to comment the <FilesMatch "."> because it wasn't redicecting to the DirectoryIndex for some reason (that is another problem I have)

Please help, thanks.

Alex Jones

Tuesday 22 June 2004 6:57:39 am

Hi Alexander. I took a look at your page and the CSS. I believe the style sheet is actually being pulled. It appears that the problem resides in the size and color of the text in your side bar. It is so small that it is really hard to tell the difference between test that is bold and text that is not bold. When I increased the font size in my browser (Firefox on Windows XP), the text "Dirección:", "Dirección postal:", "Teléfono:" and "Fax:" appeared to be bold. As the font sizes are using pixels instead of relative sizing, IE cannot change their size dynamically, so you will have to use Opera, or a Mozilla based browser to see what I am talking about.

If you don't have a non-IE browser, you can test this theory by adding the following code to your ppp.css file:

.ppp-menu b {
  color: #f00;
  font-size: 15px;
}

That should produce a very noticeable difference.

If that doesn't work, let us know and we'll see what else we can do to help.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Alexander Celle

Tuesday 22 June 2004 8:38:44 am

I guess you were right. Thanks for that, I'll just have to work on my design then.

Anyway... do you know anything about the second part? (i.e. the FilesMatch issue)

Thanks again.

Alex Jones

Tuesday 22 June 2004 8:48:09 am

Actually, I'm not sure that I understand the second problem. Could you provide a littie more information? Are you saying that the system can't find your CSS file if you use eZ code? If so, would you cut and past the non-working code in this post?

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Alexander Celle

Tuesday 22 June 2004 10:30:14 am

The second problem regards the .htaccess file.

there I had to remove the <FilesMatch "."> because it wasn't redicecting to the DirectoryIndex (index.php) for some reason.

So, if I did http://www.ppp.cl I would get a forbidden instead of the index.php

Thanks

Chris Fullerton

Tuesday 22 June 2004 7:59:35 pm

Not related to this problem, but I've found that the Web Developer extension for firefox is very helpful for debugging css issues.

You can find it at http://www.chrispederick.com/work/firefox/webdeveloper/

No relation, etc just a very happy user.

Alex Jones

Wednesday 23 June 2004 8:07:53 am

Alexander: which setup option did you choose when you installed eZ publish? Also, could you post the contents of your .htaccess file?

Chris: I agree wholeheartedly, I actually used the extension to help diagnose Alexander's problem. :) Ctrl + Shift + E is a beautiful thing.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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

Main resources:

Total runtime0.0140 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.0040 588.1563151.2109
Module start 'layout' 0.00400.0024 739.367236.6484
Module start 'content' 0.00640.0063 776.015698.1875
Module end 'content' 0.01270.0013 874.203137.9922
Script end 0.0140  912.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002215.7920140.0002
Check MTime0.00117.6706140.0001
Mysql Total
Database connection0.00064.503010.0006
Mysqli_queries0.001913.687630.0006
Looping result0.00000.178610.0000
Template Total0.00107.010.0010
Template load0.00085.700610.0008
Template processing0.00021.304810.0002
Override
Cache load0.00063.931410.0006
General
dbfile0.002417.192080.0003
String conversion0.00000.047640.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