Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transparency in CSS

Status
Not open for further replies.

arabia

Technical User
Nov 4, 2002
8
GB
Can anyone tell me what the code is for a background color in CSS?

table.multimedia { background-color: ????? }

Thanks a lot!

Dave.
 
You can set the color by name or by value (hex code):

table.multimedia {background-color: red}

table.multimedia {background-color: #FF0000}

For a complete list of colors:
If not enough, do a google-search and you find more color-lists.

Because you title says transparancy:

table.multimedia {background-color: transparent}

This specifies that the parent element background/image will shine through if one exists, else the system default background/image value is used.

Hope this helps,
Erik <-- My sport: Boomerang throwing !!
!! Many Happy Returns !! -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top