Originally posted by nkaisare
You can use same common css file. Then, in each html page, add
<script type="text/css">body{background-image('img.gif')}</style>
Or have a javascript (external .js?) that reads the name of the html file, and accordingly document.writes the above-mentioned line.
That should be a STYLE element and not SCRIPT. And that's the most common typo that I make. Or you can use an inline style.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta content="text/css" name="Content-Style-Type">
<title>Style Example</title>
<link href="style.css" rel="stylesheet" type="text/css">
<body style="background-image:url(someImage.png)">
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Bookmarks