![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I've put a sample page on the Internet. Please advise me! http://members.aol.com/dtrimboli/temp/whatkind.html |
#3
| |||
| |||
|
|
I'm writing HTML 4.01 and CSS 2 pages that include a CSS-driven pop-up menu. What I'm trying to do is create a screen style that uses the menu, links, etc. normally, and a print style that removes all of this and just presents the main content. I'm pretty sure all my code is up to spec (everything validates), even if the design isn't heart-stopping. However, Firefox seems to choke on the stylesheets. When the screen style is declared first and the print style declared second, it displays the screen style correctly and doesn't use the print style at all. When the print style is declared first and the screen style is declared second, it doesn't apply any style on screen or in print. |
#4
| |||
| |||
|
|
David Trimboli <trimboli (AT) cshl (DOT) edu> wrote: I'm pretty sure all my code is up to spec (everything validates), even if the design isn't heart-stopping. However, Firefox seems to choke on the stylesheets. When the screen style is declared first and the print style declared second, it displays the screen style correctly and doesn't use the print style at all. When the print style is declared first and the screen style is declared second, it doesn't apply any style on screen or in print. It's because you've given your stylesheets titles. By setting a title you've made the stylesheet in question preferred rather than persistant. See http://www.w3.org/TR/html401/present/styles.html#h-14.3.2 |
#5
| |||
| |||
|
|
By setting a title you've made the stylesheet in question preferred rather than persistant. See http://www.w3.org/TR/html401/present/styles.html#h-14.3.2 |
#6
| |||
| |||
|
|
By setting a title you've made the stylesheet in question preferred rather than persistant. See http://www.w3.org/TR/html401/present/styles.html#h-14.3.2 There's more to it than that. >You need to specify them as rel="alternate stylesheet" for them to be alternates, |
|
whatever's specified as just rel="stylesheet" is a default stylesheet (i.e. is applied) until an alternate is deliberately picked. |
|
So, in theory (browser odd behaviour notwithstanding), something like the following should mean all the stylesheets are applied: link rel="stylesheet" href="/design.css" title="design" link rel="stylesheet" href="/colours.css" title="colours" link rel="stylesheet" href="/additions.css" title="additions" |
![]() |
| Thread Tools | |
| Display Modes | |
| |