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
**/
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body{
height: 100vh;
width: 100vw;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.Maincon{
height: 100%;
width: 100%;
}
.firstcon{
height: 20%;
width: 90%;
background-color: blue;
margin-left: 90px;
margin-top: 50px;
display: flex;
align-items: center;
justify-content: center;
}
.parentdiv{
margin-top: 10px;
height: 70%;
width: 90%;
margin-left: 90px;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.secmain{
height: 100%;
width: 30%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.secfir{
height: 32%;
width: 100%;
background-color: red;
display: flex;
align-items: center;
justify-content: center;
}
.secsec{
height: 32%;
width: 100%;
background-color: violet;
display: flex;
align-items: center;
justify-content: center;
}
.sectrd{
height: 32%;
width: 100%;
background-color: green;
display: flex;
justify-content: center;
align-items: center;
}
.trdmain{
height: 100%;
width: 32%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.trdfir{
height: 32%;
width: 100%;
background-color:navy;
display: flex;
align-items: center;
justify-content: center;
}
.trdsec{
height: 32%;
width: 100%;
background-color:lightgreen;
display: flex;
align-items: center;
justify-content: center;
}
.trdtrd{
height: 32%;
width: 100%;
background-color: brown;
display: flex;
align-items: center;
justify-content: center;
}
.frtmain{
height: 100%;
width: 30%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.frtfir{
height: 32%;
width: 100%;
background-color:yellow;
display: flex;
align-items: center;
justify-content: center;
}
.frtsec{
height: 32%;
width: 100%;
background-color:orange;
margin-bottom: 160px;
display: flex;
align-items: center;
justify-content: center;
}
.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:#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.
Post a Comment
Thank you
Learning robo team