Results 1 to 4 of 4

Thread: Frames and background image

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Question Frames and background image

    I wish to use a background image as a common background for my application which consists of 3 frames. How can I realize this?

    Code:
    <frameset rows="38%,54%,*" border=0>
    	 <frame name="top" src="operator.asp" frameborder=0 scrolling=auto>
    		 <frameset cols="50%,*">
    	 		   <frame name="venstre" src="intro.htm" frameborder=0>
    			   <frame name="right" src="blank.htm" frameborder=0> 
    	     </frameset>
    </frameset>

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    DO you mean have one background, then all subsequent frames be transparent. If so you should be able to do it something like this, but it only works in Mozilla at the moment:

    Code:
    <head>
        <style type="text/css"><!--
          frameset, frame { background: transparent; }
        --></style>
      </head>
      <frameset rows="38%,54%,*" border=0 style="background:blue;">
      	 <frame name="top" src="operator.asp" frameborder=0 scrolling=auto>
      		 <frameset cols="50%,*">
      	 		   <frame name="venstre" src="intro.htm" frameborder=0>
      			   <frame name="right" src="blank.htm" frameborder=0> 
      	     </frameset>
      </frameset>
    If you just mean each page has the same background try adding something like this to each document in the head:

    Code:
    <link rel="stylesheet" type="text/css" href="style.css">
    Then in the file "style.css" add this:

    Code:
    background-image:url("Image.png");

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049
    I mean a background image which covers the entire screen.

  4. #4
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Then use the first suggestion. But as I say IE and (I think) Opera won't work with properly this. I think there maybe a proprieatry tag for IE that will let it be transparent. I'm pretty sure there is for iframes, so there maybe for frames too.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width