![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am curious if there is something that would be considered a proper method for locating small (three to four items) amounts of page specific styling. Or does it really matter in the great scheme of things? |
#3
| |||
| |||
|
|
In article <3EFDE507.30309 (AT) netscape (DOT) net> in comp.infosystems.www.authoring.stylesheets, Mark Cunningham macunni (AT) netscape (DOT) net> wrote: I am curious if there is something that would be considered a proper method for locating small (three to four items) amounts of page specific styling. Or does it really matter in the great scheme of things? I'm sure I'll have to dodge some brickbats, but if you have styles that _really_ only apply to on document, I don't see great harm in putting them in a <style> element. |
|
However... Even if today you're 100% certain that they will never apply to any other document, I'll bet in a surprisingly short time you'll find you do need them in a second document, and you'll wish they had been in an external stylesheet all along. If their use is truly rare, you could keep them in a special sheet, have that special sheet import the main one, and then have your unusual document link to the special sheet instead of the main one. |
#4
| |||
| |||
|
|
I am curious if there is something that would be considered a proper method for locating small (three to four items) amounts of page specific styling. Or does it really matter in the great scheme of things? I have a linked style sheet that covers everything I want to do globally. What should be done if I want to change and/or add a couple of divs and paragraphs on a specific page and the style applied is specific to that one page? One option is to add an id to the body element of the specific page and |
#5
| |||
| |||
|
|
I am curious if there is something that would be considered a proper method for locating small (three to four items) amounts of page specific styling. Or does it really matter in the great scheme of things? I have a linked style sheet that covers everything I want to do globally. What should be done if I want to change and/or add a couple of divs and paragraphs on a specific page and the style applied is specific to that one page? Should this be placed on a separate linked style sheet, placed in the global style sheet (considering that I may be modifying something that has already been declared like a paragraph), or would it be considered ok to simply have this page specific styling on the web page itself since it is specific to that one page? |
#6
| |||
| |||
|
|
Mark Cunningham schrieb: I am curious if there is something that would be considered a proper method for locating small (three to four items) amounts of page specific styling. Or does it really matter in the great scheme of things? I have a linked style sheet that covers everything I want to do globally. What should be done if I want to change and/or add a couple of divs and paragraphs on a specific page and the style applied is specific to that one page? Should this be placed on a separate linked style sheet, placed in the global style sheet (considering that I may be modifying something that has already been declared like a paragraph), or would it be considered ok to simply have this page specific styling on the web page itself since it is specific to that one page? Most "page specific" styles turn out to be useful for other pages too, while you'll find that some global styles really only apply to a few pages. If you follow the route of "page-specific styles directly in the web page", you could end up moving styles back and forth between individual pages and the global stylesheet - time-intensive, complicated, and error-prone. And those page-specific styles in their individual page are usually forgotten pretty soon; they'll rear their ugly head when you're updating your global stylesheet and wonder about all the weird things that are happening on some pages. The same goes for linked stylesheets: You could end up with a css folder full of different files that control some aspect of some pages but not other aspects of some other pages - one big confusing mess. That's why I usually suggest putting it all in one global stylesheet, with lots of documentation to it. Properly organized sites can probably risk separate linked stylesheets for separate sections of the site, but even with good organization the potential for a big mess is just a link> away. Whatever you do, try not to have too many different sources for the final style rule - the cascade is a big pain in the tuckus, and sometimes hard to understand for both authors and browsers. Matthias |
![]() |
| Thread Tools | |
| Display Modes | |
| |