<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HTML</title>
<!-- HTML -->
<!-- Custom Styles -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="face"></div>
<div class="eyeleft"></div>
<div class="eyeright"></div>
<div class="smile"></div>
</div>
<!-- Project -->
<script src="main.js"></script>
</body>
</html>
I tried to create a round face using the following css code and it should be linked to the div tag.
.face {
color: #ffe9d1;
top: 100px;
left: 100px;
border-width: 100px, 100px, 100px, 100px;
border-radius: 50px, 50px, 50px, 50px;
}
There arent any more details to include but perhaps this might do.
Please explain why it's not showing
The syntax you've used for specifying border-width
and border-radius
is incorrect.
You must instead use this:
.face {
color: #ffe9d1;
top: 100px;
left: 100px;
border-radius: 50px; /* Notice this */
border: 100px red solid; /* Notice this */
}
<div class="container">
<div class="face"></div>
<div class="eyeleft"></div>
<div class="eyeright"></div>
<div class="smile"></div>
</div>