Reply
CSS on page or remote?
Old 02-03-2005, 10:28 AM CSS on page or remote?
MightyMaster's Avatar
Ultra Talker

Posts: 399
Location: Appleton, WI
What is the general thought on having the CSS in the actual page rather than a <link rel="stylesheet" href="http://natesplace.hypermart.net/gop/basics/style.css">
MightyMaster is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 02-03-2005, 10:42 AM
SilatPupil's Avatar
Ultra Talker

Posts: 260
Location: Northern Ireland
I keep mine in an external file. Its quicker I think.
__________________
"All vague notions must fall before a pupil can call himself a master." - Bruce Lee

www.wildskinart.com Ultimate Tattoo and Piercing Site
SilatPupil is offline
Reply With Quote
View Public Profile Visit SilatPupil's homepage!
 
Old 02-03-2005, 11:17 AM
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Negative:

Each page may have repeating CSS .

Positive:
You can tailor your CSS elements to your pages requirements.

All in all:
Mine sit in a folder where theya re linked in.
If i need some minor adjustments for that page only then i overide the style via style="".

Ibbo
__________________
www.nationalclubgolfer.com www.sportspub.co.uk www.bespokecc.co.uk www.centralmarquees.co.uk
Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Old 02-03-2005, 11:24 AM
CasaPages's Avatar
SillyPhilly

Posts: 758
Location: between here an somewhere else
you can use external CSS files and use classes and divsions to make different items appear different on the same page. Such as say links, you can have the default "a" be the set standard for your site. Now what if say you want a different link functionality in another spot on the same page, well then you can simply use divisions and have "#TheDivIDhere a" in the style sheet to make that link different... Basically Im finding that having external style sheets much easier to manage and create.
__________________
It Happens
FreelanceKillers.com
CasaPages is offline
Reply With Quote
View Public Profile Visit CasaPages's homepage!
 
Old 02-03-2005, 11:31 AM
MightyMaster's Avatar
Ultra Talker

Posts: 399
Location: Appleton, WI
I guess my question is ... is there a difference in the load time of the site based on where the css is located? Would my page load faster if I included the style information right on the page or link out to it?
MightyMaster is offline
Reply With Quote
View Public Profile
 
Old 02-03-2005, 11:42 AM
SilatPupil's Avatar
Ultra Talker

Posts: 260
Location: Northern Ireland
Link out is faster i find, as after it is linked to once, it is cached for quicker delivery next time.....
__________________
"All vague notions must fall before a pupil can call himself a master." - Bruce Lee

www.wildskinart.com Ultimate Tattoo and Piercing Site
SilatPupil is offline
Reply With Quote
View Public Profile Visit SilatPupil's homepage!
 
Old 02-03-2005, 11:57 AM
Minaki's Avatar
Cheerleader

Posts: 1,626
Location: Guildford, UK
It all depends on the scope of the CSS. If you know the CSS is going to only ever apply to that page, keep in within the <head> section. It'll load faster because the client doesn't have to make another request to the server.

If the CSS is going to be applied to more than one page, use a link option. That way updates will only have to be done once, and as SilatPupil said, the document will be cached. You may want to use @import instead of Link, to hide CSS from older browsers (they won't even download it). Depends what you're doing with it though...

Don't forget you can also use inline styles, by setting the style attrbute
<div style="border: 1px solid red;">
but use them with care otherwise your page gets messy. Usefull for testing what CSS looks like quickly before moving it somewhere else...
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Inoxia Pyrotechnics Supplies | Surrey Angels Cheerleading Squad
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 02-03-2005, 04:28 PM
TaylorAtCTS's Avatar
Webmaster Talker

Posts: 501
Location: Memphis, TN, USA
I always have mine in an external file for two big reasons...

1) Load times.. once the CSS is cached once users don't have to reload the file.

2) Easy Changes.. I can change things sitewide simply changing one file. Pretty smooooth

I reccomened using an external CSS file.. much better IMO
__________________
Memphis Web Design - Memphis Website Design - Memphis Website Development

Custom Tailored Solutions designs the best looking, most functional customized marketing solutions from web design to brochures with a 100% satisfaction guarantee, all for a price that fits your budget.
TaylorAtCTS is offline
Reply With Quote
View Public Profile Visit TaylorAtCTS's homepage!
 
Old 02-03-2005, 04:47 PM
troatie's Avatar
Skilled Talker

Posts: 64
I keep mine external simply because it makes my source code purty!
__________________
Troatie.com
troatie is offline
Reply With Quote
View Public Profile Visit troatie's homepage!
 
Old 02-04-2005, 07:05 AM
log2's Avatar
Skilled Talker

Posts: 80
that's a good reason, that's why i do it too... and I find it easier to edit afterwards
log2 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS on page or remote?
 

Thread Tools

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

vB 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.14743 seconds with 13 queries