Hi
I build a small content management system. I use different external
stylesheets for the admin section and the frontend, called admin.css and
frontend.css.
Now I would like to preview some frontend stuff in the admin section. Is
there a syntax for accessing a style from a different style sheet? For
example:
admin.css says:
h1 {
color:red;
}
p {
font-family:sans-serif;
}
frontend.css says:
h1 {
color:blue;
}
p {
font-family:serif;
}
in a file admin.html I would like to do something like:
<head>
<link rel="stylesheet" href="admin.css" type="text/css">
<link rel="alternate stylesheet" href="frontend.css" type="text/css">
</head>
<body>
<h1>Red headline</h1>
<p>Some sans serif text here</p>
<div stylesheet="use alternate stylesheet, is that possible?">
<h1>Blue headline</h1>
<p>Some serif text here</p>
</div>
</body>
I am grateful for a hint on that.
--
Markus