How to make Table with search bar HTML template .[Source Code]
To make this website, you would like to make two files: an HTML file, a CSS file. First, create an HTML file with the name of index.html and remember, you have to create a file with a .html extension.
/**
Hello Future Developer Thanks for Using learningrobo.com,
Check our website Regularly For New Snippets Post.
Share & Support us
**/
*{
box-sizing: border-box;
}
body{
font-family: 'Inria Sans', sans-serif;
margin:0px;
}
.container{
width:100%;
height:100vh;
display:flex;
justify-content:center;
flex-direction: column;
align-items:center;
background-color: #ffd8ca;
}
.box{
background-color: #ffffff;
width: 1000px;
height:fit-content;
border-radius: 5px;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
padding:10px 20px;
}
.box h1{
text-align: center;
padding-top: 20px;
font-size: 20px;
}
.bar{
width:100%;
margin:10px 0px;
}
.bar i{
font-size:14px;
}
.bar input[type="search"]{
padding:10px;
width: 90%;
float: left;
border: 1px solid grey;
outline: none;
}
.bar button{
float: left;
width: calc(10% - 3px);
padding: 10px;
border: 1px solid grey;
border-left:none;
background-color: #ffd8ca;
}
table{
width: 100%;
text-align: left;
border-collapse: collapse;
}
.box tr:nth-child(even){
background-color: #b6b6b6;
}
.box td,th{
padding:20px 10px;
}
@media screen and (max-width:1024px){
.box{
width:85%;
height:fit-content;
}
}
@media only screen and (max-width: 630px){
.container{
width:100%;
height:fit-content;
}
.box{
margin:10px 0px;
width:95%;
height:fit-content;
}
.box th{
display: none;
}
.box td{
display:grid;
grid-template-columns:15ch auto;
text-align: left;
padding:5px;
margin:5px;
border:none;
}
.box td:first-child{
padding-top: 5px;
}
.box td:last-child{
padding-bottom: 5px;
}
.box td:nth-of-type(1)::before{
content: "User No" " :";
}
.box td:nth-of-type(2)::before{
content: "First Name" " :";
}
.box td:nth-of-type(3)::before{
content: "Last Name" " :";
}
.box td:nth-of-type(4)::before{
content: "Username" " :";
}
}
.credit a{
text-decoration: none;
color: #121212;
font-weight: 800;
}
.credit{
color: #121212;
text-align: center;
margin-top: 10px;
font-family: Verdana,Geneva,Tahoma,sans-serif;
}
.credit span{
color:tomato;
font-size:20px;
}
Thank you for reading our blog. If you face any problem in Creating a Table with search bar HTML template ., then contact us or comment to us. We’ll try to provide a solution to your problem as soon as possible.
Explore
Press The Key ' p ' and say ' read article ' our voice assistant read our article.
In Our older post it doesnot work we working on that.
In Our older post it doesnot work we working on that.
إرسال تعليق
Thank you
Learning robo team