div { background:url(smiley.gif) top left no-repeat }
What is this url()
? I can't find documentation online.
(See http://www.w3schools.com/cssref/css3_pr_background.asp.)
In your example url
is the url of the image that will be used as the background for the div
tag.
MDN has a decent explanation of it: https://developer.mozilla.org/en/CSS/uri
MDN is usually more up-to-date than W3Schools.
It's the URL of the background image.
For example, lets say you've your images stored at /images
and you've a background image called background.png
located at /images/background.png
, then you do:
background-image: url('/images/background.png');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With