Jump to content

div background wont add


deathadder

Recommended Posts

so i thought id make a whole new website from scratch but i tried making a div area with a background but it wont work heres my code

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Lang" content="en">
<meta name="author" content="">
<meta http-equiv="Reply-to" content="@.com">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="creation-date" content="01/01/2009">
<meta name="revisit-after" content="15 days">
<style type="text/css">
body {
background-image:url('bgbg.jpg'); background-position: center top; background-repeat: no-repeat;
background-size: 100%;
}
a:link {color: #fff000; text-decoration: none; }
a:active {color: #fff000; text-decoration: none; }
a:visited {color: #fff000; text-decoration: none; }
a:hover {color: red; text-decoration: none; }

         }
.main_frame { position: absolute; top: 80pt; left: 90pt; width: 853pt; height: 500pt; background-image: url(transbg.png); background-repeat: repeat } 
        }
</style> 
<title>my new website</title>    
</body>
  

<a href="index.html">Home</a> ll <a href="forums">Forums</a>
</head>
<br>
<br>
<br>
   <div id="main_frame">
        <fieldset class="main_frame">
test  </div>  
         </fieldset>  
</body>
</html>

 

i also tried using a fieldset to gewt the background but the bg will not appear i have tried multiple different css codes for this but none did work please help, i am quite good at html and understand it very well but i currently have no idea why this is not working

Link to comment
Share on other sites

nevermind i fixed it

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Lang" content="en">
<meta name="author" content="">
<meta http-equiv="Reply-to" content="@.com">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="creation-date" content="01/01/2009">
<meta name="revisit-after" content="15 days">
<style type="text/css">
body
{
    background: #000000;
    color: #DBDBDB;
    text-shadow: 0.1em 0.1em 0.05em #000000;
    font: 8pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    background-image:url('bgbg.jpg'); background-repeat:no-repeat; background-attachment:fixed; background-position:center;
    
    
a:link {color: #fff000; text-decoration: none; }
a:active {color: #fff000; text-decoration: none; }
a:visited {color: #fff000; text-decoration: none; }
a:hover {color: red; text-decoration: none; }    

}
.content { 
background-image: url('transbg.png');
border: 1px solid #1C1C1C;
width:60%;
    



</style> 
<title>my new website</title>    
</body>
  

<a href="index.html">Home</a> ll <a href="forums">Forums</a>
</head>
<br>
<br>
<br>
   <div id="content" align="center">
<fieldset class="content">
test  </div>  
         </fieldset>  
</body>
</html>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.