English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
0

how to do you add JUST a background color to a DIV? i cannot find the part in the code that has it at the ugly green color it has right now, so i guess i will have to overlay it. what is the code for making the background a different color?

2007-01-21 08:05:09 · 3 answers · asked by violet 2 in Computers & Internet Programming & Design

3 answers

background-color: #0000ff;
or
background-color: blue;
There's a couple of color code references in the sources.

The style afflicting the div in question is probably contained in a style block at the head of the file, or possibly in an external .css file. If the div has a class or id defined, look for those styles. The style could also be applied to divs within a particular element or class of element.

If you can't find and edit the offending code, you can override it with an inline style block. Just add
style="background-color: blue;"
inside the

tag.

2007-01-21 08:43:23 · answer #1 · answered by injanier 7 · 0 0

HTMLCompact is a powerful HTML compression tool for webmaster. Its effective compression algorithm provides a size reducing up to 20% of original while keep every other thing untouched. After loaded, compressed HTML pages will be automatically uncompressed in the user's browser, and remain the same look as the pages before compression. By using HTMLCompact, your web pages will become much smaller and faster for downloading, and you will save up both website bandwidth and disk space exceedingly.

Key Feature:
It will be downloaded instantly. So don't worry about that the visitors will have to wait a long time to download.
By using HTMLCompact, your web pages will become much smaller and faster for downloading, and you will save up both website bandwidth and disk space exceedingly.
After loaded, compressed HTML pages will be automatically uncompressed in the user's browser, and remain the same look as the pages before compression.
With this easy-to-use applet development tool, you can create a professional applet just in minutes.
Configuration from last run is saved and auto loads on start-up.
Its easy to understand, clear and intuitive user interface makes it very easy to use.
Its effective compression algorithm provides a size reducing up to 20% of original while keep every other thing untouched.
Graphics primitives supported.

2007-01-23 01:08:11 · answer #2 · answered by Anonymous · 0 0

use this website for html reference
http://www.w3schools.com

2007-01-21 22:06:47 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers