![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I have a main stylesheet that I apply to all pages in a site, they each sub-section has a subsection stylesheet that either overrides or applies new style to pages in that subsection, then finally each page in a subsection may need even more fine tuning. In the past I would use <link href="page.css" rel="stylesheet" type="text/css">, then in page.css I would import section.css, and section.css would import main.css. I am looking at changing to multiple link tags like: link href="main.css" rel="stylesheet" type="text/css" link href="section.css" rel="stylesheet" type="text/css" link href="page.css" rel="stylesheet" type="text/css" Assuming I am careful to consider the cascade, is there anything I should be careful of using this method to apply multiple stylesheets? |
|
Also, what are the implications of using or not using a common title attribute? What? The title attribute provides text that appears as a tool tip to |
#2
| |||
| |||
|
|
The overhead of sending css to the browser that is not used in a page, is tiny, if the css is reused in later pages. |
#3
| |||
| |||
|
|
Ian Hobson wrote: What? The title attribute provides text that appears as a tool tip Actually use of the title attribute designates a stylesheet as preferred. |
|
I did read something about setting title to the same value in several link elements combines the sheets into one, |
|
which might impact the cascade, but it's not obvious to me how or if it really does. |
#4
| |||
| |||
|
|
I did read something about setting title to the same value in several link elements combines the sheets into one, which might impact the cascade, but it's not obvious to me how or if it really does. |
#5
| |||
| |||
|
|
The title attribute provides text that appears as a tool tip to the user, for various durations, in some browsers, and not at all in other browsers. Not a CSS issue. |
![]() |
| Thread Tools | |
| Display Modes | |
| |