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
**/
*{
box-sizing: border-box;
margin: 0px;
background-color: #333;
}
.container{
height: 95vh;
width: 100vw;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 10px;
}
.container .c1{
height: 100%;
width: 20%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
}
.container .c1 .c1p1{
height: 55%;
width: 100%;
background-color: red;
}
.container .c1 .c1p2{
height: 45%;
width: 100%;
background-color: whitesmoke;
}
.container .c2{
height: 100%;
width: 80%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
}
.container .c2 .c2p1{
height: 30%;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
.container .c2 .c2p1 .c2p1g1{
height: 100%;
width: 45%;
background-color: cadetblue;
}
.container .c2 .c2p1 .c2p1g2{
height: 100%;
width: 55%;
background-color: goldenrod;
}
.container .c2 .c2p2{
height: 70%;
width: 100%;
display: flex;
gap: 10px;
}
.container .c2 .c2p2 .c2p2g1{
height: 100%;
width: 75%;
display: flex;
flex-direction: column;
gap: 10px;
}
.container .c2 .c2p2 .c2p2g1 .s1{
height: 55%;
width: 100%;
display: flex;
gap: 10px;
}
.container .c2 .c2p2 .c2p2g1 .s1 .s1p1{
height: 100%;
width: 35%;
background-color: goldenrod;
}
.container .c2 .c2p2 .c2p2g1 .s1 .s1p2{
height: 100%;
width: 65%;
background-color: whitesmoke;
}
.container .c2 .c2p2 .c2p2g1 .s2{
height: 45%;
width: 100%;
display: flex;
gap: 10px;
}
.container .c2 .c2p2 .c2p2g1 .s2 .s2p1{
height: 100%;
width: 65%;
background-color: red;
}
.container .c2 .c2p2 .c2p2g1 .s2 .s2p2{
height: 100%;
width: 35%;
background-color: cadetblue;
}
.container .c2 .c2p2 .c2p2g2{
height: 100%;
width: 25%;
background-color: red;
}
.credit a {
text-decoration: none;
color: white;
font-weight: 800;
}
.credit {
color: white;
text-align: center;
height: 5vh;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
font-family: Verdana,Geneva,Tahoma,sans-serif;
}
.credit span{
color:red;
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.
Post a Comment
Thank you
Learning robo team