- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Frame Image: border-image-repeat, Part 2</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 {
box-sizing: border-box;
margin: 50px auto;
padding: 10px;
width: 270px;
height: 270px;
outline: 10px solid white;
border: 50px solid rgba(0, 0, 0, 0.4);
border-image-source: url("img/border-img.png");
border-image-slice: 50;
border-image-repeat: stretch repeat;
background: url("img/border-img.png") no-repeat center #ffffff;
background-clip: padding-box;
}
You’ve gone to a different page
Goalscompleted
0
- Assign the
border-image-repeat
property with a value ofrepeat repeat
to the.portrait
block, - then change the value to
round repeat
, - then change the block width to
300px
, - and finally change the height to
400px
.
Comments