DTP


 
Lively discussions on the graphic arts and publishing — in print or on the web


Go Back   Desktop Publishing Forum > General Discussions > Web Site Building & Maintenance

Reply
 
Thread Tools Display Modes
Old 11-17-2005, 07:08 AM   #1
George
Member
 
George's Avatar
 
Join Date: Feb 2005
Posts: 1,036
Default Master Style Sheet

I've heard there is a way to create a master external style sheet, so that the CSS file in a section of a web site is not reloaded with each new page opened. Could some one refer me to something that explains how to make one and set it in operation, or offer an opinion on whether doing such a thing is worthwhile. Thank you!!!

Regards,

George
George is offline   Reply With Quote
Old 11-17-2005, 12:07 PM   #2
Kelvyn
Staff
 
Kelvyn's Avatar
 
Join Date: Feb 2005
Location: In the Heart of the English Lake District
Posts: 1,381
Default

George, I don't understand what you mean by "master". It is normal to create one linked style sheet for a domain, including subdirectories. The same css file is linked to all pages on the site so is only loaded once into the browser and stored in the cache. There may be other style sheets for different presentations, such as print or wap, but you would also only need one for each site.
Kelvyn is offline   Reply With Quote
Old 11-17-2005, 12:25 PM   #3
ktinkel
Founding Sysop
 
ktinkel's Avatar
 
Join Date: Oct 2004
Location: In Connecticut, on the Housatonic River near its mouth at Long Island Sound.
Posts: 11,189
Default

Quote:
Originally Posted by George
I've heard there is a way to create a master external style sheet, so that the CSS file in a section of a web site is not reloaded with each new page opened.
If you use the same style sheet for all your pages — linking to it in the head section of all the pages, in other words — the .css will be cached and used for any of those pages that a visitor accesses. It will not be reloaded.

I have never heard it referred to as a master stylesheet.

   
__________________
[SIZE=2][COLOR=LemonChiffon]::[/COLOR][/SIZE]
[SIGPIC][/SIGPIC]
ktinkel is offline   Reply With Quote
Old 11-17-2005, 03:56 PM   #4
donmcc
Member
 
Join Date: Feb 2005
Location: Sarnia, Canada
Posts: 1,122
Default

As to how, this is the style sheet for this forum.

<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/style-ff4f8701-00007.css" />
donmcc is offline   Reply With Quote
Old 11-18-2005, 04:25 AM   #5
George
Member
 
George's Avatar
 
Join Date: Feb 2005
Posts: 1,036
Default

Ok -- well, apparently I heard something that wasn't accurate at all. So, I'm lucky to be able to check out hearsay in this forum. But it sounded good when I heard it.

Thanks for all the responses.

Isn't it nice that my questions are the easy ones???

Regards,

Geroge
George is offline   Reply With Quote
Old 11-18-2005, 06:34 AM   #6
LoisWakeman
Staff
 
LoisWakeman's Avatar
 
Join Date: Jan 2005
Location: Uplyme, Devon, England
Posts: 1,402
Default

I think yo were right: if you link the same CSS file from several pages, then the browser caches it.
LoisWakeman is offline   Reply With Quote
Old 12-01-2005, 06:48 PM   #7
Webnauts
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by donmcc
As to how, this is the style sheet for this forum.

<link rel="stylesheet" type="text/css"
href="clientscript/vbulletin_css/style-ff4f8701-00007.css" />
I would add title and media to that too. For example like this:
Code:
<link rel="stylesheet" type="text/css" 
href="clientscript/vbulletin_css/style-ff4f8701-00007.css" 
title="vBulletin Cascading Style Sheets" media="screen"/>

Last edited by ktinkel; 12-03-2005 at 05:38 AM. Reason: add line breaks to avoid vB code display bug
  Reply With Quote
Old 12-02-2005, 10:44 AM   #8
Daudio
Member
 
Daudio's Avatar
 
Join Date: Aug 2005
Location: Royal Oak, Detroit suburb
Posts: 174
Default

George,

Quote:
well, apparently I heard something that wasn't accurate at all
Not really. I think you are reacting to the 'Cascading' part of the CSS idea.

Normally one thinks of that in regard to:

External stylesheet file
style rules in the top of the html file
styles applied to an individual element

But you can also have:

an external 'master' stylesheet file
an external 'subarea' stylesheet file
internal stylesheet rules as above

But this second, external, cascade doesn't seem to be done that much, althrough I have seen instances of this practice.

I would think that the reason for a 'master' stylesheet, and lower level external ones, would be for very large sites, with strict common elements defined in the 'master', and multiple specific topic areas where there are different designers responsible for their maintence.

But this is probably not very useful for you, stick with one .css file.

   
__________________
Dave

DaveAyers.com, Brass Backshop Forum
Daudio is offline   Reply With Quote
Old 12-03-2005, 01:57 AM   #9
iamback
Member
 
iamback's Avatar
 
Join Date: Oct 2005
Location: Amsterdam, NL
Posts: 4,894
Default

Quote:
Originally Posted by Webnauts
I would add title and media to that too. For example like this:
Code:
<link rel="stylesheet" type="text/css" 
href="clientscript/vbulletin_css/style-ff4f8701-00007.css" 
title="vBulletin Cascading Style Sheets" media="screen"/>
If you add media "screen" you add what is already the default for that attribute (and thus add no information at all). Given that (and as long as) there is not print-specific stylesheet here setting it to media="all" or a comma-separated list such as media="screen, print" would be more appropriate.

I agree a title attribute could be useful but I'm not sure the suggested content for it is the most appropriate - is it really the/a "vBulletin" stylesheet or is a stylesheet specific for this particular implementation?

   
__________________
Marjolein Katsma
Look through my eyes on Cultural Surfaces (soon!), My ArtFlakes shop and Flickr.
Occasionally I am also connecting online dots... and sometimes you can follow me on Marjolein's Travel Blog

Last edited by ktinkel; 12-03-2005 at 05:36 AM. Reason: added line breaks to avoid vB wide code bug
iamback is offline   Reply With Quote
Old 12-07-2005, 05:41 PM   #10
Webnauts
Guest
 
Posts: n/a
Default

You are right iamback.
I use "all" at the moment, because I still did not build the "print" CSS file. Even though that does not help much for print.
  Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Master List of Similar Fonts RJ Emery Fonts & Typography 14 01-13-2007 09:48 AM
Style.org Daudio Web Design 10 06-19-2006 10:44 PM
Master pages in PagePlus Michael Rowley Print Design 6 10-25-2005 11:28 AM
How to link text boxes on master pages in ID?? marlene Print Design 6 09-02-2005 12:02 PM


All times are GMT -8. The time now is 02:05 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Contents copyright 2004–2014 Desktop Publishing Forum and its members.