473,465 Members | 4,339 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

1 New Member
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:

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html><!DOCTYPE html> <title>Registration</title> <html> <head> <style>><font color="white">
  2.  
  3. ul
  4. {
  5. list-style-<p><font color="white">
  6. margin:5;
  7. padding:7;
  8. }
  9. li
  10. {
  11. display:inline;
  12. }
  13. </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>
  14. body{ background-color:#000000; }
  15. h1
  16. {
  17. }
  18. p
  19. {
  20. }
  21. </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>
  22.   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>
  23.  
  24. E-mail:<BR CLEAR="all"><input type="email" name="user_email"></form> </body> </html>
  25.  
  26.  
  27. 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>
Feb 10 '13 #1
1 1671
Rabbit
12,516 Recognized Expert Moderator MVP
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.
Feb 10 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Juan | last post by:
After enabling a datagrid control the scrollbar stays disabled even when i have more rows that those being displayed. It only starts working when i sort the datagrid with any displayed column... ...
8
by: johkar | last post by:
I have two problems I cannot work out in the following tab code with Netscape 6. Problems are marked with all cap comments. One is that the background image is not shown in NS 6 (two places in...
4
by: DC | last post by:
--when i set session.cache_limiter = private i get this Set-Cookie: PHPSESSID=61fdf683fef689d5371a1c01fd46e678; path=/; secure Expires: Thu, 19 Nov 1981 08:52:00 GMT No idea where it's pulling...
1
by: AA Arens | last post by:
In a form, how to have inserted a logo that has a transparant backgroundond? I inserted such a logo but the background is white. Bart (v 2003)
6
by: MLH | last post by:
I don't always get what I want when I invoke the following Me!MySubFormControl.Refresh from code running in the main form. Am I doing something wrong here? Someone suggested that I open the...
2
by: jabberwhocky | last post by:
I have designed a website in IE which works perfectly, the problem is that when I look at it in the latest version of Mozilla/Firefox 2.0 the Table Background colour is not displayed, but only the...
1
by: camphor | last post by:
hi, The inside of the box is white with a 2px blue border, I have done the divs for #squaretop and #squarebottom but they don't seem to show up when I test it. I don't have a url yet so the pics...
3
by: kirk | last post by:
I have a form with a PictureBox control on it. The .Image property is set to a PNG file(which shows the picture of the US map) with some transparency in it. The .BackColor property is set to...
9
by: mulchgirl | last post by:
I have my fields set up so that the background is white, but for some reason my combo boxes are white when the form is first opened, but as soon as you enter info into into them and tab away, the...
5
by: J.W. Aldridge | last post by:
I've tried almost everything and looked almost everywhere... Any clues as to how to get my white text to show up on the black background, centered in the middle of the page and in large font?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.