Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > Javascript

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 09-06-2012, 02:37 AM   #1
davikerkrish
Registered User
 
Join Date: Jul 2012
Posts: 111
Using the CSS @import Rule

you might want to consider splitting your style sheet up into several smaller CSS files. That’s when the @import rule can come in quite handy.

The @import rule is another way of loading a CSS file. You can use it in two ways. The simplest is within the header of your document, like so:

<style>
@import url('/css/styles.css');
</style>
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by davikerkrish; 09-06-2012 at 02:39 AM..
davikerkrish is offline   Reply With Quote

Old 09-14-2012, 02:47 AM   #2
omxwebtech
Registered User
 
Join Date: Aug 2012
Location: Kanpur
Posts: 40
Ya!I have no doubt on this sweet feedback.Keep writing continue.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
l
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
l
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
l
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
omxwebtech is offline   Reply With Quote
Old 11-11-2012, 12:17 PM   #3
chelsea77
Registered User
 
Join Date: Nov 2012
Posts: 12
do not use @import rule, for optimum performance use
Code:
<link rel='stylesheet' href='a.css'>
to include your style sheet
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
chelsea77 is offline   Reply With Quote
Old 12-28-2014, 01:23 PM   #4
niel
Registered User
 
Join Date: Dec 2014
Location: Belgium
Posts: 131
good post thanks
__________________
Need some help on how to make your pc faster?
Got some trouble with a slow pc?
We can help you with making your pc faster.

Visit
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
niel is offline   Reply With Quote
Old 12-30-2014, 04:29 AM   #5
george.web13
Registered User
 
Join Date: Jul 2014
Location: Athens, Greece
Posts: 462
What's the REALLY difference between these 2 methods???

a)<link rel='stylesheet' href='a.css'>
b)<style>
@import url('/css/styles.css');
</style>
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
george.web13 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the rule of hiring a seo consultant? eigeehte Search Engine Optimization 1 12-23-2011 05:04 AM


All times are GMT -7. The time now is 10:53 PM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.