About 1,500,000 results
Open links in new tab
  1. HTML5 Canvas change background color - Stack Overflow

    May 23, 2017 · canvas.style.background = "red"; // a valid CSS colour. You are filling the canvas with a transparent colour, if you want a colour that is the result of the element's background colour and the …

  2. How do I change the background color with JavaScript?

    Oct 13, 2008 · Here are 2 ways to Change Background Color Using Javascript To change background color with javascript you can apply style.background or style.backgroundColor on the element you …

  3. html - How can I set the background color of <option> in a <select ...

    May 7, 2010 · How do you set the background color of an item in an HTML list?

  4. Is there a way to apply background color on <img> tag?

    Sep 6, 2017 · NB: As you can't change your markup, there is still a way to style the images in the above way. (although it's a little bit hacky) We can replace the img with the same background image with …

  5. Change select box option background color - Stack Overflow

    Does not answer the question--OP wants to change the background-color of the options when the menu is expanded, not the background-color of the default/currently-selected option when the menu is closed.

  6. html - Transparent CSS background color - Stack Overflow

    Jun 25, 2012 · 40 To achieve it, you have to modify the background-color of the element. Ways to create a (semi-) transparent color: The CSS color name transparent creates a completely transparent color. …

  7. 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: …

  8. html - How do I set a background-color for the width of text, not the ...

    Dec 16, 2019 · What I want is for the green background to be just behind the text, not to be 100% of the page width. Here is my current code: h1 { text-align: center; background-color: green; } &l...

  9. html - How can I set the color for the progress element ... - Stack ...

    Jul 22, 2023 · Is it possible to set the color of the "bar" for the <progress> element in HTML (when you specify a value, the bar is filled up to the point of the value)? If so, how? background-color and …

  10. 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 …