Computer Science Canada

need help with adding bg in a page with frame

Author:  greenapplesodaex [ Tue Mar 14, 2006 9:47 pm ]
Post subject:  need help with adding bg in a page with frame

say, i have code
code:
<html>
        <head>
                <title>this is a test</title>
        </head>

        <FRAMESET ROWS = "20%, *" border=0>
                <FRAME SRC="top.html" name = top scrolling = no>
                <FRAMESET COLS="17%,*" border=0>
                        <FRAME SRC="left.html" name = left scrolling = no>
                        <FRAME SRC="right.html" name = right>
                </FRAMESET>

        </FRAMESET>
</html>


to my understanding, i cant add <body></body> otherwise my frames wont work.
now, can i put ONE background in this page so that it goes under all frames as one pic?

thanx in advance

Author:  Tony [ Tue Mar 14, 2006 9:53 pm ]
Post subject: 

apparently the HTML tag could have a background property
code:

<html>
<head>

<style type="text/css">
     html
     {
          background-image: url('compsci.jpg')
     }
     </style>

</head>

   <FRAMESET ROWS = "20%, *" border=0>
      <FRAME SRC="top.html" name = top scrolling = no>
      <FRAMESET COLS="17%,*" border=0>
         <FRAME SRC="left.html" name = left scrolling = no>
         <FRAME SRC="right.html" name = right>
      </FRAMESET>

   </FRAMESET>

</html>

Author:  greenapplesodaex [ Tue Mar 14, 2006 10:02 pm ]
Post subject:  re

thanx mate.
it's showing up... in a way, but i think the frames are covering up the background so i still cant see it


: