JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="assets/css/style.css">
<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=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
<title>Loremsum</title>
</head>
<body>
<header>
<div class="main_container">
<div class="shipping_container"><span class="container_1">Free Shipping on Orders of Rs. 2587 - <span style="color: yellow; font-weight: 800">SHIP39</span></span></div>
<div class="button_container"><a class="login_button" href="#" style="color:aliceblue; text-decoration:none">Login / Register</a></div>
</div>
</header>
<div class="main_container">
<div class="logo_name_container"><img class="logo" src="https://i.ibb.co/vJpzTFr/Layer-2.png" alt="Main Logo"/>
<span class="logo_name_1">LOREMSUM</span>
<span class="logo_name_2">Dummy text the printing</span>
</div>
</div>
<div class="background_container">
<div class="main_container">
<div class="filter_container">
<select name="select country" class="country">
<option value="1">Select country</option>
<option value="2">Ukraine</option>
<option value="3">USA</option>
</select>
<select name="search_filter" class="searching"> option>
<option value="1">Search filter</option>
<option value="2">Black</option>
<option value="3">White</option>
</select>
<input...
CSS
body {
margin: 0;
width: 100%;
height: auto;
}
header {
background-color: rgb(0, 146, 63);
box-shadow: 0px 5px 15px 0px rgba(0, 146, 63, 0.5);
width: 100%;
height: 41px;
}
.main_container {
width: 1003px;
margin: 0px auto;
}
/*.container_1::before {
content:"";
display:inline-block;
border-radius: 50%;
background-color: white;
width: 6px;
height: 6px;
position: relative;
right: 5px;
bottom: 3px;
}*/
.shipping_container {
width: 50%;
height: 41px;
display: inline-flex; /*added this*/
align-items: center;
}
.container_1 {
color:aliceblue;
font-size: 14px;
font-family: "Open sans";
padding-left: 25px;
align-items: center;
display: flex;
}
.container_1::before {
content: '';
width: 6px;
border-radius: 50%;
height: 6px;
background: white;
}
.button_container {
display: inline-block;
height: 41px;
float:right;
margin-right: 10%;
}
.login_button {
display: block;
height: 41px;
line-height: 41px;
border-left: 1px solid;
border-right: 1px solid;
border-color: #03883c;
box-shadow: 0px 0px 5px 0px rgba(2, 49, 22, 0.1);
}
.login_button:hover {
background-color: #258b50;
}
.logo_name_container {
height: 100px;
width: auto;
}
.logo {
width: 59px;
height: 69px;
margin-top: 29px;
margin-left: 10px;
margin-right: 15px;
}
.logo_name_1 {
position: relative;
bottom: 32px;
color: #00923f;
font-family: "Open sans";
font-weight: 400;
height: auto;
font-size: 40px;
}
.logo_name_2 {
position: relative;
left: -225px;
bottom: 6px;
font-size: 20px;
color: rgb(34, 34, 34);
font-family: "Open sans";
font-weight: 400;
width: auto;
}
.background_container {
background-color: #f1f1f1;
width: 100%;
}
.filter_container {
height: 64px;
margin-top: 28px;
display: flex;
}
.country {
margin-left: 5px;
...