Forums / Setup & design / CSS stylesheet is not being used

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>