Using frames to make sites is a practice remnant of the early days of html and is typically discouraged. The only time using frames is a good idea (that I can think of at the moment) is when you want to load another website and have your own banner appear at the top, like what google images does for example:
http://www.google.com/imgres?imgurl=...26tbs%3Disch:1
When you are trying to achive something like this, the following code can be used:
HTML Code:
<frameset rows="60,*" border="0">
<frame src="topFrame.html" frameborder="0" name="sdnav" noresize="noresize" marginwidth="0" marginheight="0" scrolling="no" />
<frame src="http://www.yahoo.com" frameborder="0" name="sdmain" noresize="noresize" marginwidth="0" marginheight="0" scrolling="auto" />
<noframes>
<p>Sorry, your browser doesn't seem to support frames</p>
</noframes>
</frameset>
In this example, you will have to create a file called topFrame.html and in it you will create your banner code. The frame at the bottom will load the example site yahoo.com.
Now as for CSS, that can be used to style your frame but as a language it can't do much else.
|