Lame HTML/CSS Problem

Associate
Joined
27 Jan 2005
Posts
830
*Puts bag on head*

I have a lame problem.

I'm using HTML (obviously) and have a CSS sheet attached to my HTML page.

I have the floats setup and a few images on the site all working and positioned correctly. The background colour change works in the floats, but I'm getting huge problems just trying to change the background colour of the website.

When I have it in Dreamweaver the colour changes, but when it goes 'live' on the WWW the colour is still white :/

I want the background to change and have it within the CSS file. What is the code for this to change it to black for example?

Top five CSS lines:
html, body {
margin: 0;
padding: 0;
background: blue;
}
 
instead of using colour names try using the hex values for the colour you want, which can easily be obtained if you have photoshop or even online from searching, so for instance if you want black #000; instead of just typing blue, white is #ffffff; etc. Using hex gives you all the colours available on pc's afaik, where as typing the name you only get a select few.
 
Back
Top Bottom