Jump to content
Sign in to follow this  
WesleyA

frame src not shown after adding background class

Recommended Posts

My code doesnt work the way I want it.

 

The goal is a gradient background.

 

I made an external style sheet.

 

Like this:

    .grad{
	height: 1020px;
	width: 1900px;
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#feffff+0,ddf1f9+35,a0d8ef+100;Blue+3D+%2318 */
    background: #feffff; /* Old browsers */
    background: -moz-linear-gradient(top,  #feffff 0%, #ddf1f9 35%, #a0d8ef 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  #feffff 0%,#ddf1f9 35%,#a0d8ef 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  #feffff 0%,#ddf1f9 35%,#a0d8ef 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#feffff', endColorstr='#a0d8ef',GradientType=0 ); /* IE6-9 */

    }


    .maincell

    { text-align: left; 
    width: 1900px; 


     }

    .topcell {
	
	horizontal-align: left; 
	height: 100px; 
	
     }

     .downcell {
	
	horizontal-align: left; 
	height: 600px;
	
       }

The html code

    <html>
    <head>
    <link rel="stylesheet" type="text/css" href="style3.css">
    </head>

    <body class="grad">

     <FRAMESET ROWS="15%,85%" frameBorder="0" border="0">
     <FRAME SRC="carn_head.php" name="navigatie"   scrolling="no">
     <FRAME SRC="carn_bottom.html" bordercolor="#CBEDF1" name="main">
     </FRAMESET>

    </body>
    </html>

The error is that I get to see a gradient background but not the code put in the pages. It used to when I hadnt add the .grad class.

 

How can I have a gradient background and over it a frame showing the pages intended in the frame src?

Share this post


Link to post
Share on other sites

For those who are interested in solving this:

 

I placed the class attribute in frame. This gives somewhat a satisfying result.

 

I couldnt find a tut saying that class can be placed inside a frame tag.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...