About 1,120,000 results
Open links in new tab
  1. html - CSS background-image-opacity? - Stack Overflow

    Jul 31, 2011 · Related to How do I give text or an image a transparent background using CSS?, but slightly different. I'd like to know if it's possible to change the alpha value of a background image, …

  2. How to preload CSS images? - Stack Overflow

    Typically you would go for a sprite here (a combined background image) and just shift the background position. But if that isn't possible, try this. Apply the background image to another page element that …

  3. css - How to get div height to auto-adjust to background size? - Stack ...

    How do I get a div to automatically adjust to the size of the background I set for it without setting a specific height (or min-height) for it?

  4. How to Lazy Load div background images - Stack Overflow

    Aug 18, 2012 · Learn how to implement lazy loading for div background images using JavaScript or jQuery for better performance and faster page load times.

  5. Is it possible to set a src attribute of an img tag in CSS?

    First W3C Recommendation: Cascading Style Sheets, level 1 17 Dec 1996 This property sets the background image of an element. When setting a background image, one should also set a …

  6. html - Fit background image to div - Stack Overflow

    It could quite hard to make the background-image (if you would want to) with a fixed width for the div, so better use max-width. And actually it isn't complicated to fill a div with an background-image, just …

  7. How to give the background-image path in CSS? - Stack Overflow

    How to give the background-image path in CSS? Asked 12 years ago Modified 1 year, 6 months ago Viewed 631k times

  8. When to use IMG vs. CSS background-image? - Stack Overflow

    Use background-image if you intend to have people print your page and you do not want the image to be included by default. — JayTee Use background-image if you need to improve download times, as …

  9. Can I set an opacity only to the background image of a div?

    Aug 30, 2016 · Not the most efficient, but it's foolproof in terms of layout since you can really use background-image. It might not be performant enough for other images, the image that I needed to …

  10. html - How to darken a background using CSS? - Stack Overflow

    Actually, this is the best answer, but if we don't want to touch background image url declaration (like background or background-image), this is perfect: background-color: #0005; background-blend …