Over a million developers have joined DZone.

CSS: Background-image

DZone's Guide to

CSS: Background-image

· ·
Free Resource
It determines background image for the element. If the background color is specified for the element at the same time it will be shown while the background image will have been downloaded fully. The same will happen if the image is inaccessible or their demonstration in the browser is switched off. When there are transparent areas in the image you can see the background color through them.
The usage of it at free web templates

background-image: url(path to the file) | none

Path to the graphic file is a value which is indicated inside the construction “url()”.You can write the file path either in quotation marks (double or single) or without them. The argument can have the value “none” if the background image is not necessary.




Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}