| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi.
I am using a website host that provides a standard template within which I add my own html. I don't mind the template, but the background colors are disgusting. I have managed to override the font-family used in the templates through CSS (I'm very proud), but I cannot override the background colors on the template. Here is where I'm coming unstuck: My friends at the web hoster also use CSS. And they have created a class that governs the background color of the Site. When I try to override the class name (i.e. I treat the name of the CSS class as though it was just another html thingy that I can boss around) nothing happens! The shame, the indignity! So now, here I am, asking for help. Please, anyone. Anyone? |
|
#2
|
||||
|
||||
|
Well, in the head section of the page, just put this:
Code:
<script type="text/css">
body {
background-color: color;
}
</script>
Change color to a color you want. |
|
#3
|
||||
|
||||
|
If that doesn't work, try this:
body { background: #color !important; } Note that "background: ;" is a "shorthand property" that combines background-color, background-image, background-position, and background-repeat into a single line: background: #Color | url("image") | repeat | position | fixed/static; |
|
#4
|
|||
|
|||
|
Helpful CSS Site
Take a look at this site: http://www.w3schools.com/css/
it has all the properties, description, values and what browsers that property is compatable with. Very Helpful. |
![]() |
| Viewing: ASP Free Forums > Web Design > Web Layout > CSS Background Colors |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|