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
Old 07-11-2008, 04:28 AM External CSS sheet
BDevil15's Avatar
Super Talker

Posts: 122
Trades: 0
Hi all, just learning CSS now and was wondering how much if any using an external CSS sheet slows down your site? Does it just load once and its done, or is it referred to as your navigating the page? For like hovering etc?

Thanks,
BD
__________________
If you think you can or think you cant, your always right!

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


Please login or register to view this content. Registration is FREE
BDevil15 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-11-2008, 08:05 AM Re: External CSS sheet
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Part of the reason that CSS is so efficient is that it is cached (saved in memory) by your browser. This means that if one external stylesheet is shared throughout the site, it won't have to be constantly referred to throughout the browsing process.

This also comes in handy when changing things dynamically with JavaScript. Often, in JavaScript, we are changing CSS properties in one of two ways: either by modifying the inline styles or simply changing the class name. Changing the class name is always going to be faster, since those particular styles are already being held in memory.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-11-2008, 08:08 AM Re: External CSS sheet
StylaStyla's Avatar
Mad Man

Posts: 401
Name: Styla
Location: City of London
Trades: 0
edit: looks like wayfarer07 beat me to it

Browsers store the stylesheet in their cache so it is only called up once which means the more design/decoration you store in your stylesheet, the less information would be called upon everytime someone goes through your website resulting in a fast loading website

Definitely go with an external stylesheet.

Inline styles and internal stylesheets are fine for abnormal pages that don't fit within the consistency of your website. For example; you decide that your blue navigation is gonna be red just for one page; then in this case, an internal or inline style would be appropriate.

I've only got into CSS myself and already see how superior it is to the convential way of designing a website.

Last edited by StylaStyla; 07-11-2008 at 08:10 AM.. Reason: grammer
StylaStyla is offline
Reply With Quote
View Public Profile Visit StylaStyla's homepage!
 
Old 07-11-2008, 08:36 AM Re: External CSS sheet
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Quote:
Inline styles and internal stylesheets are fine for abnormal pages that don't fit within the consistency of your website. For example; you decide that your blue navigation is gonna be red just for one page; then in this case, an internal or inline style would be appropriate.
It's not always wrong to use an inline style, but I still use external styles, even for an instance like this. I do it by defining a unique class on the body tag, to identify each page. Then, if I wanted the navigation to be blue for that page, I would do something like this:

CSS
Code:
.unique_page #navigation {
background-color: red;
}
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-11-2008, 12:55 PM Re: External CSS sheet
BDevil15's Avatar
Super Talker

Posts: 122
Trades: 0
Thanks for the replies guys, appreciate the info.
__________________
If you think you can or think you cant, your always right!

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


Please login or register to view this content. Registration is FREE
BDevil15 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to External CSS sheet
 

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.21202 seconds with 12 queries