About 50 results
Open links in new tab
  1. how to set the background color of the whole page in css

    The body's size is dynamic, it is only as large as the size of its contents. In the css file you could use: * {background-color: black} // All elements now have a black background. or html {background-color: …

  2. css - div background color, to change onhover - Stack Overflow

    Mar 24, 2009 · Provides solutions for changing the background color of a div on hover using CSS.

  3. Change select box option background color - Stack Overflow

    174 I have a select box and I'm trying to change the background color of the options when the select box has been clicked and shows all the options.

  4. Change Select List Option background colour on hover

    Is it possible to change the default background color of a select list option on hover?

  5. html - Change color of PNG image via CSS? - Stack Overflow

    You can set background-color CSS property. You can create non-transparent part that will be fixed, and transparent part of image which will be filled by any color you like via CSS. Is that what you want to …

  6. How do I change the background color of the body? - Stack Overflow

    Other application: If you are constantly changing the body's background color, and you want to have the code to run on every render, following is an example. Be careful where you call the browser API. For …

  7. How do I change the footer background color in css?

    Mar 17, 2017 · Learn how to change the footer background color using CSS with practical examples and clear instructions.

  8. css - Transition of background-color - Stack Overflow

    Dec 11, 2010 · I'm trying to make a transition effect with background-color when hovering menu items, but it does not work. Here is my CSS code: #content #nav a:hover { color: black; background-color: …

  9. css - Why don't my attempts to change background color work?

    Dec 23, 2021 · If that doesn't work, make sure the css is linked to the HTML properly. Example of applying background-color to the body body { background-color: #333; } /* The above css applies a …

  10. How to set background color of HTML element using css properties in ...

    Aug 6, 2008 · In general, CSS properties are converted to JavaScript by making them camelCase without any dashes. So background-color becomes backgroundColor.