![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
does it matter in which order i place different style sheets i.e. link rel="stylesheet" type="text/css" media="screen" href="style/screen.css" / link rel="stylesheet" type="text/css" media="print" href="style/print.css" / is this better than this link rel="stylesheet" type="text/css" media="print" href="style/print.css" / link rel="stylesheet" type="text/css" media="screen" href="style/screen.css" / I ask because when viewing the a site in the browsers it doesn't seem to matter but when editing the page in dreamweaver it displyas only my print stylesheet so editing the site is difficult. Phil Specificity moves upwards; styles defined in code have a higher priority |
#3
| |||
| |||
|
|
does it matter in which order i place different style sheets |
#4
| |||
| |||
|
|
Specificity moves upwards; styles defined in code have a higher priority than styles written inline, which have a higher priority than linked or imported styles. Where more than one stylesheet is linked or imported, the one lower down in the code has the higher priority. You still have to watch inheritance, and (I believe) some version 4 browsers ignore a rule totally where there is a conflict in two different style sheets. None of which, of course, answers your question! |
![]() |
| Thread Tools | |
| Display Modes | |
| |