Why is the the text "help" not visible, blue border of div(class=main) not visible and red border of div(class=head) not visible?
<!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.0">
<title>Lost and Found</title>
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Anton&display=swap" rel="stylesheet">
</head>
<body>
<div class="nav" >
<img src="img.png" alt="logo" srcset="">
<div class="b"><span>Electronincs</span></div>
<div class="b"><span>Plastics</span></div>
<div class="b"><span>Wearables</span></div>
<div class="b"><span>Others</span></div>
<input id="srch" type="search" value="Search">
</div>
<div class="main">
<div class="head">
<p>Help</p>
</div>
</div>
</body>
</html>
*{
margin: 0px;
padding: 0px;
}
.nav{
background-color:bisque;
width: 100%;
height: 60px;
display: flex;
align-items: center;
position: fixed;
}
.b{
height: 60px;
width: 10%;
background-color: antiquewhite;
margin: 2px;
justify-content: center;
font-family: 'Anton', sans-serif;
border-radius: 20px;
align-items: center;
display: flex;
}
img{
width: 80px;
height: 60px;
}
#srch{
width: 10%;
height:60px;
right: 0%;
position:fixed;
font-size: larger;
}
.main{
height: 1000px;
width: 100%;
border-color: blue;
background-color:lightgoldenrodyellow;
}
.head{
width: 100%;
height: 554px;
border-color:red ;
}
Why is the the text "help" not visible, blue border of div(class=main) not visible and red border of div(class=head) not visible?
i am beginner trying to learn web development. i have successfully created the fixed navigation bar and am struggling to make a box taking up 50% of the width (will put an image in the remaining 50%).
.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/Coqgp5D
Comments
Post a Comment