0% found this document useful (0 votes)
16 views11 pages

X 23

Uploaded by

hlemorvan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
16 views11 pages

X 23

Uploaded by

hlemorvan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 11
2ert12023 09.28, HTML Background Images 3 w Tutorials» —Exercisesw Servicese§ QO Log in schools HTML Background Images [errs] Loew | A background image can be specified for almost any HTML element. Background Image on a HTML element To add a background image on an HTML element, use the HTML style attribute and the CSS background-image property: Example Add a background image on a HTML element:

Background Stretch If you want the background image to stretch to fit the entire element, you can set the background-size property to 100% 100% : nitpsilmww:vdschools.cominimlitm|_images_background.asp am 2ert12023 09.28, HTML Background Images 3 WW tutoriaisy Exercises» Servicesse§ Q 0 schools always cover tne entire element, Example HTML Exercises Exercise: Add a background image named "myimage.png" on a HTML element.

You might also like