Answers for "attaching an image as a background in css"

CSS
0

CSS adding background image from file

/* The first method using an image on your server */
background: url('img/someimage.jpg');

/* The second method using an image hosted on another server */
background: url('http://www.someimage.com/someimage.jpg');

/* A third method that allows the site to determine protocol instead of explicitly defining it */
background: url('//www.someimage.com/someimage.jpg');
Posted by: Guest on August-31-2020

Code answers related to "attaching an image as a background in css"

Browse Popular Code Answers by Language