JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<div id = "container">
<input id = "search-bar">
</input>
</div>
</body>
</html>
CSS
/*CSS*/
body, html, #container {
width: 100%;
margin: 0px;
padding: 0px;
height: 100%;
min-height: 100%;
}
#container {
padding-left: 20px;
padding-right: 20px;
}
}
header {
padding: 10px;
background-color: rgb(230, 230, 230)
}
p,h1,h2 {
padding: 0px;
margin: 0px;
font-weight: normal;
}
.headertext {
font-family: Trajan Pro Regular, "Times New Roman", Times, serif;
display: inline;
}
#headertextSACREDHEARTCOLLAGE {
color: rgb(6,47,91);
font-size: 35px;
margin-right: 25px;
}
#headertextKYNETON {
color: rgb(196,0,20);
font-size: 25px;
margin-right: 50px;
}
#headertextAVibrantLife {
font-family: OpenSans-Regular, 'Open Sans', sans-serif; /*Incase font file is missing, there is link to google font*/
font-size: 30px;
color: rgb(6,47,91);
float: right;
margin-right: 25px;
}
@font-face {
font-family: Trajan Pro Regular;
src: url(../Fonts/Trajan Pro Regular.ttf);
}
@font-face {
font-family: OpenSans-Regular;
src: url(../Fonts/OpenSans-Regular.ttf);
}
@media screen and (max-width: 866px) {
#headertextAVibrantLife {
display: none;
}
}
@media screen and (max-width: 656px) {
#headertextKYNETON {
color: rgb(196,0,20);
font-size: 15px;
margin-right: 50px;
}
#headertextSACREDHEARTCOLLAGE {
color: rgb(6,47,91);
font-size: 25px;
margin-right: 25px;
}
}
@media screen and (max-width: 484px) {
#headertextKYNETON {
color: rgb(196,0,20);
font-size: 10px;
margin-right: 0px;
}
#headertextSACREDHEARTCOLLAGE {
color: rgb(6,47,91);
font-size: 18px;
margin-right: 25px;
}
}
/*CSS*/
body {
background-color: rgb(240,240,240);
}
#search-bar {
height: 50px;
width: 60%;
max-width: 800px;
background-color: white;
border: 2px solid rgb(230, 230, 230);
border-radius: 15px;
margin-right: auto;
margin-left: auto;
margin-top: 20%;
}