Is it possible to set the background color of frames (I know, the assignment asks for it) using a single CSS instead of doing one for each frame. The assignment specifically asks for the use of CSS intead of tags. I have tried the following:
<frameset.........>
<frame src="frames/leftframe.htm" class="LeftFrame" name="leftframe" noresize>
<frame.......>
<frame.......>
</frameset>
I have page called leftframe.htm, with:
<html>
<link rel="stylesheet" type="text/css" href="../styles/allframes.css">
<body>
<p>..........</p>
</body>
</html>
The style-sheet allframes.css has:
.LeftFrame
{
background-color:#b0c4de;
}
I have not been able to get this to work. I am able to set the background-color per frame, as long as I have a separate style-sheet. If this is not possible I will just make separate style-sheets for each frame.