How to make Flexbox Layout Design using HTML and CSS.[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
**/
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
*{
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body{
height: 100vh;
width: 100vw;
display: flex;
flex-direction: column;
gap: 10px;
overflow: hidden;
}
.container{
height: 90vh;
width: 100vw;
justify-content: center;
align-items: center;
text-align: center;
display: flex;
gap: 10px;
}
.first{
height: 90vh;
width: 90vh;
gap: 10px;
display: flex;
flex-direction: column;
}
.second{
height: 90vh;
width: 30vh;
gap: 10px;
display: flex;
flex-direction: column;
}
.one{
height: 35vh;
display: flex;
gap: 10px;
}
.sub1{
height:35vh ;
width: 40vw;
background-color: #4226ce;
}
.sub2{
height: 35vh;
width: 20vw;
background-color: rgb(103, 154, 104);
}
.two{
height: 30vh;
display: flex;
gap: 10px;
}
.sub3{
height: 30vh;
width: 27vw;
background-color: rgb(212, 142, 142);
}
.sub4{
height: 30vh;
width: 27vw;
background-color: rgb(113, 164, 122);
}
.sub5{
height: 30vh;
width:27vw;
background-color: rgb(23, 32, 196);
}
.three{
height: 20vh;
display: flex;
gap: 10px;
}
.sub6{
height: 23vh;
width: 35vw;
background-color: #b38a8a;
}
.sub7{
height: 23vh;
width: 17vw;
background-color: rgb(38, 35, 195);
}
.sub8{
height: 67vh;
background-color: #9dcf9f;
}
.sub9{
height: 23vh;
background-color: rgb(197, 17, 17);
}
.credit a {
text-decoration: none;
color: #121212;
font-weight: 800;
}
.credit {
color: #121212;
text-align: center;
height: 5vh;
margin-top: 10px;
font-family: Verdana,Geneva,Tahoma,sans-serif;
}
.credit span{
color:#000;
font-size:20px;
}
Thank you for reading our blog. If you face any problem in Creating a Flexbox Layout Design using HTML and CSS., 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