Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
[CSS] @ import obsolete?
Old 11-14-2010, 10:59 PM [CSS] @ import obsolete?
Banned

Posts: 17
Name: new york
Trades: 0
Hello.

To import a CSS style sheet, there are several ways in which it:

PHP Code:
Import url(StyleCssscreen
But I see almost nobody used it.

I would use it.

But before that, I know if it was a technique obsolete or soon will be?



In terms of utility, is when you have several designs, there are classes that do not change as:

PHP Code:
del / * For content deleted * /
{
    
text-decorationline-through;
}

Center
{
    
text-aligncenter;
}

Red
{
    
colorred;

Thank you.
edson1314 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-15-2010, 10:15 AM Re: [CSS] @ import obsolete?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You can still use it, but it does present some problems, the most notable of which is FOUC - the "flash of unstyled content" which occurs during the delay it takes to import the css file.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-22-2010, 10:46 AM Re: [CSS] @ import obsolete?
CSM
CSM's Avatar
Front-End Developer

Posts: 297
Name: Michael Pehl
Location: Palma de Mallorca
Trades: 0
It is better to combine all CSS files you are using. Once the file is cached the server responds with 304 and you save bandwidth

@import is not recommended, as LadynRed said.

Google Page Speed also says "Avoid @import CSS"
__________________
Chief Web Officer / Front-End Developer / System Engineer

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
CSM is offline
Reply With Quote
View Public Profile Visit CSM's homepage!
 
Old 11-22-2010, 11:47 AM Re: [CSS] @ import obsolete?
Mime's Avatar
Extreme Talker

Posts: 164
Name: Seb
Trades: 0
@import was only used so that really old browsers (like Netscape 4.x) would ignore the CSS it couldn't handle. Even if you are, for some reason, developing for these older browser there are better methods of browser selection available.
Mime is offline
Reply With Quote
View Public Profile
 
Old 11-22-2010, 11:58 AM Re: [CSS] @ import obsolete?
edgray's Avatar
Super Moderator

Latest Blog Post:
Frantic
Posts: 4,264
Name: Sugarcane Gray
Location: Hell, Southern Spain
Trades: 0
I don't really see the point in using this myself. I've seen it used even recently on a wordpress template I was installing for someone. They had 1 style sheet with nothing in it but a clearfix, and 6 Imports...

Major FOUC...
__________________

Please login or register to view this content. Registration is FREE
- a project in video and sound.

Please login or register to view this content. Registration is FREE
"Absolute Rubbish, an insult to the blues." - NME.

Please login or register to view this content. Registration is FREE
- Come use our agency :)
edgray is offline
Reply With Quote
View Public Profile Visit edgray's homepage!
 
Reply     « Reply to [CSS] @ import obsolete?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.75593 seconds with 12 queries