deathadder Posted January 10, 2012 Share Posted January 10, 2012 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 Quote Link to comment Share on other sites More sharing options...
deathadder Posted January 10, 2012 Author Share Posted January 10, 2012 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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.