background keeps showing up white when I want it to be black, works on refresh

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • larssirois
    New Member
    • Feb 2013
    • 1

    background keeps showing up white when I want it to be black, works on refresh

    I put a black background on my site but when ever you got to my site the background is not their and turns white but when you refresh it it is black agian and this happpens on all my pages can someone please help me with this thanks! this is my code:

    Code:
    <!DOCTYPE html><!DOCTYPE html> <title>Registration</title> <html> <head> <style>><font color="white">
    
    ul
    {
    list-style-<p><font color="white">
    margin:5;
    padding:7;
    }
    li
    {
    display:inline;
    }
    </style color=white> </head> <img src="file:///C:/Users/lars/Desktop/THISONE.jpg"> <img src="file:///C:/Users/lars/Desktop/ITt.jpg"> <center><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Horizontal Navigation Bar w/Rollover Effect</title> <style type="text/css"> <!--   #navbar ul { 	margin: 0; 	padding: 5px; 	list-style-type: none; 	text-align: center; 	background-color: #484848; 	}  #navbar ul li {  	display: inline; 	}  #navbar ul li a { 	text-decoration: none; 	padding: .2em 1em; 	color: #fff; 	background-color: #00; 	}  #navbar ul li a:hover { 	color: #000; 	background-color: #fff; 	}  --> </style> </head> <body> <div id="navbar"> <ul> <li><a href="http://bytes.com/submit/g/#">Home</a></li> <li><a href="http://bytes.com/submit/g/#">Contact Lars</a></li> <li><a href="http://bytes.com/C:\Users\lars\Desktop\about.html">About Lars</a></li> <li><a href="http://bytes.com/C:\Users\lars\Desktop\LarsSirois (2).html">Register</a></li> </ul> </div> </body> </html></center> <br> <br> <br> <br> <br> <br> <br> <br> </ul> </body> </html> <html> <head> <style>
    body{ background-color:#000000; }
    h1
    {
    }
    p
    {
    }
    </style> </head> <body> <h1></h1> <center><p><font color="white">Register With Lars Sirois:</font> </p> <!DOCTYPE html> <html> <body> <form action="http://bytes.com/demo_form.asp" autocomplete="on"> <font color="white">First name:<BR CLEAR="all"><input type="text" name="fname"><br>
      Last name:<BR CLEAR="all"> <input type="text" name="lname"><br> <form> <!DOCTYPE html> <html> <body> <form action="http://bytes.com/demo_form.asp" novalidate>
    
    E-mail:<BR CLEAR="all"><input type="email" name="user_email"></form> </body> </html>
    
    
    Password:<BR CLEAR="all"><input type="password" name="pwd"> </form> <!DOCTYPE html> <html> <body> <p>Fill in and submit the form, then reload the page to see how autocomplete works.</p> <p>Notice that autocomplete is "on" for the form, but "off" for the e-mail field.</p> <input type="submit" value="Submit"> </body> </html>
    Last edited by acoder; Feb 10 '13, 10:31 PM. Reason: Please use [code] tags when posting code
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    I can't make heads or tails of your html code. It's like two pages got pasted into one file and with all kinds of syntax errors.

    It makes it that a lot harder to read also when a bunch of code runs together on one super long line.

    Please fix and reformat and repost your code in a readable format.

    Comment

    Working...