homepage Welcome to WebmasterWorld Guest from 54.198.42.105
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
@ import CSS Command
or other?
SuzyUK




msg:1175698
 11:18 pm on Nov 7, 2002 (gmt 0)

I've just uploaded some pages to start the testing online

and straightaway there's a problem

I've put a link to my page in my profile...sorry I can't duplicate error as I don't know what it is

On viewing the page in IE & NN it's OK, but Opera is producing a strange thing..i.e. some styles are there...and it's missed out half the page...although on looking at the source code it's all there

HTML & CSS validates as per links at bottom of IE NN page

I'm puzzled...

unless it's my browser setting, but I can't think what I've done

ideas please

Suzy
:(

 

Nick_W




msg:1175699
 11:24 pm on Nov 7, 2002 (gmt 0)

I've got a complete page in Opera on Linuz Suzy...

Nick

madcat




msg:1175700
 12:08 am on Nov 8, 2002 (gmt 0)

Very weird- I'm sure I've seen this happen, maybe someone will come along while I look for those posts. When you place your styles between the <style> tags inside your document they work fine. Have you tried relative links?

[edited by: madcat at 12:11 am (utc) on Nov. 8, 2002]

SuzyUK




msg:1175701
 12:09 am on Nov 8, 2002 (gmt 0)

Thanks Nick...have amended my Opera browser settings and still no joy...

although..user mode now has no styles, at least the whole page is now appearing

still stumped...

Suzy

SuzyUK




msg:1175702
 12:21 am on Nov 8, 2002 (gmt 0)

Madcat are you saying you're seeing the same problem?

yes I was just trying that method..ddidn't remove the @import statement though

..........
added

but then I saw your post and I removed and replace with <link rel> and it works now!

what is the significance of using one method over the other again I can't remember...

Thanks
Suzy

edited: OK....here's a link to something that helped explain the problem to me although I've now got to learn how to incorporate my print.css...:)

link: [forerunners.org...]

[edited by: SuzyUK at 12:51 am (utc) on Nov. 8, 2002]

madcat




msg:1175703
 12:50 am on Nov 8, 2002 (gmt 0)

have amended my Opera browser settings and still no joy...

although..user mode now has no styles, at least the whole page is now appearing

Did I miss something? How did you get the page to show up?

SuzyUK




msg:1175704
 12:55 am on Nov 8, 2002 (gmt 0)

madcat we just crossed over again as I did my edit to previous post

first I got page to show up by taking out all the preferences in user mode, (just to prove to myself it was actually there!)

then I added them back in one by one in the Author Mode...but that didn't help

any way you'll see by the link in my post above the error was happening because opera wouldn't accept the two stylesheet commands, they were "merging" and now the main styles are there (amended online)...but the print styles aren't working...but I'll get there

Thanks
Suzy

madcat




msg:1175705
 12:56 am on Nov 8, 2002 (gmt 0)

@import is part of CSS - while <link> is an actual HTML tag. @import won't be noticed by some browsers but you can use that ability to dupe NN4.

madcat




msg:1175706
 1:03 am on Nov 8, 2002 (gmt 0)

Ahhh...good stuff. If you wanted you could write it like this too:

<style type="text/css" media="screen">
@import url(http://linkToThis/main.css);
@import url(http://linkToThis/print.css) print;
</style>

-------------------------------------------------

I guess Opera was on the mark with that call.

SuzyUK




msg:1175707
 1:26 am on Nov 8, 2002 (gmt 0)

Yep...for a change!

now for another...with that last bit of code, with which I was experimenting anyway..NN & Opera are OK and IE6 doesn't like it...

and I if I use <link Rel> for the print sheet Opera gets a little bit fussy!

I give up...for tonight anyway!

Thanks
Madcat was beginning to think I was cracking up until you said you saw it too!

Nite
Suzy
:)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved