Top "Background-image" questions

The background-image CSS property sets one or more background images for an element.

Can I use an image from my local file system as background in HTML?

I've got an HTML document hosted on a remote web server. I'm trying to have one of the elements on …

html css background-image
Background images: how to fill whole div if image is small and vice versa

I have three problems: When I tried to use a background image in a smaller size div, the div shows …

css background-image opacity
CSS Background Image Not Displaying

I have an HTML file with a subdirectory called img with an image called debut_dark.png. In my CSS …

html css path background-image
How to add a color overlay to a background image?

I have seen this question a lot both on SO and the Web. But none of them has been what …

css background-image background-color
How to make the background image to fit into the whole page without repeating using plain css?

I have an JPG image with size 1024 x 724. My page size is not fixed. My requirement is: If I resize …

css background-image
Fill SVG path element with a background-image

Is it possible to set a background-image for an SVG <path> element? For instance, if I set the …

html css image svg background-image
Change background image opacity

I have a div element with text blocks and a parent div in which I have set a background image. …

html background-image opacity
:before and background-image... should it work?

I've got a div and apply :before and :after an image as content. That works perfectly. Now I would need …

css background-image
Is embedding background image data into CSS as Base64 good or bad practice?

I was looking at the source of a greasemonkey userscript and noticed the following in their css: .even { background: #fff …

css base64 background-image data-uri
Can I set an opacity only to the background image of a div?

Let's say I have <div class="myDiv">Hi there</div> I want to put a background-image …

html css background background-image