- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Muffin’s Round Frame, 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 {
margin: 50px auto;
width: 300px;
height: 300px;
outline: 5px solid white;
border: 50px solid rgba(0, 0, 0, 0.4);
border-image-source: url("img/leafs-frame.png");
border-image-slice: 180 fill;
background: url("img/muffin-3.jpg") center no-repeat rgba(255, 255, 255, 0.4);
background-size: cover;
}
You’ve gone to a different page
Goalscompleted
0
- For the portrait, set
50%
rounding for the corners, - crop the background of the
content-box
, and - remove the
outline
outer frame.
Comments