Problem with a css import into pagelayout.css

Problem with a css import into pagelayout.css

Tuesday 24 February 2009 6:49:08 am - 5 replies

Modified on Tuesday 24 February 2009 6:50:39 am by christian bencivenni

Author Message

Jon Staines

Wednesday 25 February 2009 5:30:09 am

You probably need:

@import url({"stylesheets/mod.css"|ezdesign(no)});

rather than

@import url({"mod.css"|ezdesign(no)});

Normally the ezwebin stylesheets are in my_server_path/extension/ezwebin/design/ezwebin/stylesheets/ but maybe your install is different.

christian bencivenni

Wednesday 25 February 2009 9:21:30 am

I tried in both way.
Usually it work (I think) becouse in HTML source code of the page displayed I find:
@import url(/design/ezwebin/stylesheets/mod.css);

But right it seems that my mods.css don't override nothing.

Jon Staines

Thursday 26 February 2009 12:57:58 am

If you use Firefox you can install a plugin called Firebug which would allow you to see what styles are applied to each part of the site. You could use this to see if your styles are being included and if they are then overwritten by another one.

Michael schraeber

Sunday 01 March 2009 11:20:00 pm

Hi,

I've got the same problem, too :-(
I installed Firebug and the css rules I made are not shown there. But in HTML source you can find the right CSS file.

best regards,
Michael

Jean-Yves Zinsou

Monday 02 March 2009 4:49:03 am

Maybe you did it already but make sure the webserver has read access for the file you created (mod.css)....

I know it is obvious, but ... who knows... We all can get tired some time and not think about basic checking...

If you use fire bug, there is a menu "network" (mine is in french so this is an approximate translation) near console /html/css/scripts/dom that shows all the elements loaded. Make sure your css file is in it.

Hope this helps !

Regards.

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.