- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>background-repeat: round</title>
<meta charset="utf-8">
<link rel="stylesheet" href="setting.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="portrait"></div>
</body>
</html>
CSS
.portrait {
margin: 20px auto;
width: 400px;
height: 400px;
background-color: #ffffff;
background-image: url("img/muffin.jpg");
background-size: 150px;
background-repeat: no-repeat;
}
You’ve gone to a different page
Goalscompleted
0
- On line 8, change the value of the
background-repeat
property torepeat
, - and then assign the value
repeat round
, - Then assign the portrait a width of
500px
- and a height of
450px
.
Comments