CSS Images: Url() · WebPlatform Docs
Maybe your like
This page is In Progress
- THE DOCS
- CONNECT
- CONTRIBUTE
- BLOG
Summary
CSS has a variety of different properties that can reference an image file, displaying that file on a web page normally as part of an element’s background. This is done using the CSS image syntax, which is url().
Usage
Usage is simple — you insert the path to the image you want to include in your page inside the brackets of url(), for example:
background-image: url('images/my-image.png');Note about formatting: The quotes around the URL can be either single or double quotes, and they are optional. However, if you are including some special characters such as single or double quotes, parentheses, and white space, then if the URL is not quoted, those special characters need to be escaped with a backslash(\).
This will cause my-image.png to be displayed in the background of whatever element or elements the background-image property is applied to. Accepted image formats are:
- .bmp
- .gif
- .png
- .svg (this includes references to in-page SVG elements, for example url(#mySVGElement))
- data URIs
- .webp
Browser support notes
- IE < 9: doesn’t support SVG for background-images, or multiple background images, or gradients
- IE6: doesn’t support PNG transparency properly; result looks buggy and malformed
- Only Opera and Chrome support .webp
Properties that accept URL as a value
- background-image
- border-image
- content
- list-style-image
- Beginners
- Concepts
- HTML
- CSS
- Accessibility
- JavaScript
- DOM
- SVG
Tag » What Is An Image Url
-
Image URL – A Comprehensive Beginner's Guide - Canto
-
How Do I Find A Photo URL? - Pixsy
-
What Is The Process Used To Make An Image URL? - Quora
-
Image URLs: What They Are And How To Use Them In Blog Design.
-
How Do I Get A URL Code For A Picture On My Computer? - Techwalla
-
How To Get The URL For Pictures - YouTube
-
Is-image-url - Npm
-
4 Ways To Get The URL For Pictures - WikiHow
-
Image.ImageUrl 속성 (System.Web.UI.WebControls) - Microsoft Docs
-
Find An Image URL - Constant Contact Knowledge Base
-
URLs: Links And Images
-
Image URL Help - TinEye