5 replies [Last post]
PARoss
PARoss's picture
Offline
Enthusiast
Last seen: 7 years 49 weeks ago
Timezone: GMT-5
Joined: 2005-10-29
Posts: 147
Points: 14

I'm working on a Wordpress 3.0 blog and the @import function fails to import. Also, in FF the menu css (at the bottom of the style.css file because of the failure of the @import funciton) is not applied. The menu css is applied in IE, Chrome -- but not FF or Opera . Why not? What's the fix?

http://www.lambifund.org/wp/

Phil

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 6 years 1 week ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Your questions make little

Your questions make little sense I'm afraid. @import? where? @import is generally only seen in child themes stylesheets that might inherit from parents, Buddypress uses them in the main themes style.css. I do not see any in use in your layout, also it all appears to be reading styles without issue so have you fixed things?

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

PARoss
PARoss's picture
Offline
Enthusiast
Last seen: 7 years 49 weeks ago
Timezone: GMT-5
Joined: 2005-10-29
Posts: 147
Points: 14

Hugo, I have continued to

Hugo, I have continued to work on the site, but the problem continues. Included in style.css is this rule:

@import url("user.css");

user.css contains a comment and is intended to supercede the code in the style.css. The intention is to make updating of themes easier because user.css contains only my customized code.

You will notice that user.css has not been imported. Why not?

(I manually added the menu2.css rules to the style.css file because menu2.css would not import either.)

The other issues have been resolved, but this one remains.

Phil

Ed Seedhouse
Ed Seedhouse's picture
Offline
Guru
Victoria British Columbia
Last seen: 1 week 1 day ago
Victoria British Columbia
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3570
Points: 675

PARoss wrote: @import

PARoss wrote:

@import url("user.css");
user.css contains a comment and is intended to supercede the code in the style.css. The intention is to make updating of themes easier because user.css contains only my customized code.

You will notice that user.css has not been imported. Why not?

Likely because you've put quotes around the file name. Try it without the quotes.

Ed Seedhouse

Posting Guidelines

Watch out! I am carrying irony, sarcasm and satire, and know how to use them.

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 6 years 1 week ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

The reason I stated confusion

The reason I stated confusion and no apparent sign of @import is that I would NEVER Smile look for an @import rule where they have been placed!!!

http://www.w3.org/TR/CSS2/cascade.html#at-import

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

PARoss
PARoss's picture
Offline
Enthusiast
Last seen: 7 years 49 weeks ago
Timezone: GMT-5
Joined: 2005-10-29
Posts: 147
Points: 14

And the placement is exactly

And the placement is exactly the problem that I was not aware of. Thanks.