"Phil Thompson" <ph**@xweb.freeserveSPAM.co.uk> wrote in message
news:bk**********@news6.svr.pol.co.uk...
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
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! The real answer, assuming
you use Dreamweaver MX, is to look in the Dreamweaver help for 'Using Design
Time style sheets'.
HTH,
Pete.
--
Derby
UK