1.w {
2background-image: url("images/tom1.png");
3}
4
5.a {
6background-image: url("images/tom2.png");
7}
8
9.s {
10background-image: url("images/tom3.png");
11}
1.bg-img{
2 background-image: url("../img/bookGlowing.jpg"); /*In case the picture is in another folder and you are in css folder*/
3background-position: center;
4background-repeat: no-repeat;
5background-size: cover;
6}
1/* Answer to: "adding background image css" */
2
3/*
4 The background-image property sets one or more background images
5 for an element.
6
7 By default, a background-image is placed at the top-left corner
8 of an element, and repeated both vertically and horizontally.
9
10 Tip: The background of an element is the total size of the
11 element, including padding and border (but not the margin).
12
13 Tip: Always set a background-color to be used if the image is
14 unavailable.
15*/
16
17/* Set a background-image for the <body> element: */
18
19body {
20 background-image: url("paper.gif");
21 background-color: #cccccc;
22}
23
24/* Set two background images for the <body> element: */
25
26body {
27 background-image: url("img_tree.gif"), url("paper.gif");
28 background-color: #cccccc;
29}