Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# HTML-CSS-Project
View this layout projects click here >> https://layout-1-html-css-by-subhajit.netlify.app/
View this layout projects click here >>https://layout5-html-css-by-subhajit.netlify.app/
38 changes: 19 additions & 19 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Project 1</title>
<title>Project 5</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<section class="container">
<section class="box-container">
<div class=" box box1"></div>
<div class="box box2"></div>
</section>
<section class="box-container">
<div class="box box3"></div>
<div class="box box4"></div>
</section>
<section class="box-container">
<div class="box box5"></div>
<div class="box box6"></div>
</section>
<section class="box-container">
<div class="box box7"></div>
<div class="box box8"></div>
</section>
<div class=" layout-main-spacing">
<section class="container top-container">
<div class="red-box"></div>
<div class="red-box"></div>
<div class="red-box"></div>
<div class="red-box"></div>
</section>

<section class="container bottom-container">
<div class="dark-green-box"></div>
<div class="green-grid">
<div class="light-green-box"></div>
<div class="light-green-box"></div>
<div class="light-green-box"></div>
<div class="light-green-box"></div>

</div>
</section>
</div>
</body>
</html>
150 changes: 82 additions & 68 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,77 +1,91 @@
:root{
--bg: #9dc783;
--container:#fff;
--red:#d01010;
--dark-green:#0AAE42;
--light-green:#1bff69;
}

* {
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
background-color: #ebd6fb;
}

.container {
max-width: 1200px;
height: 800px;
background-color:white;
margin: 80px 60px;
}

.box {
}

body{

background-color: var(--bg);

}

.container{
max-width: 1050px;
margin: 0 auto;
background-color: var(--container);
}

.top-container{
min-height: 550px;
width: 1050px;
margin-top: 32px;
display: grid;
grid-template-columns: 1fr 1fr;
gap:16px ;
padding: 16px;
}

.red-box {
background-color: var(--red);
height: 100%;
width: 100%;
height: 200px;
background-color: white;
}

.box-container {
}

.bottom-container{
margin-top: 24px;
min-height: 350px;
display: flex;

}

.box1 {
background-color: #eec4dc;
}

.box2 {
background-color:#e5a0c6 ;
}
.box3 {
background-color: #e27bb1;
}
.box4 {
background-color:#e2619f ;
}
.box5 {
background-color: #e44b8d;
}
.box6 {
background-color:#d24787 ;
}
.box7 {
background-color: #bb437e;
}
.box8 {
background-color: #a53e76;
}


@media screen and (width > 1200px) {
.container {
margin: 80px auto;
}
}

@media screen and (width < 1200px) and (width > 450px) {
.container {
margin: 40px 24px;
}
}

@media screen and (width < 450px) {
.container {
margin: 24px 16px;
flex-direction: column;
padding: 16px;
gap: 16px;
}

.dark-green-box{
background-color: var(--dark-green);
width: 100%;
height: 100%;
flex-grow: 1;
}

.light-green-box{
background-color: var(--light-green);
width: 100%;
height: 100%;
}

.green-grid{
height: 68px;
display: grid;

gap: 16px;
grid-template-columns: 1fr 1fr 1fr 1fr ;
}


@media screen and ( width > 1200px ){
.layout-main-spacing {
padding: 32px;
}

}

@media screen and ( width < 1200px) and (width > 450px) {
.layout-main-spacing {
padding: 64px;
}


}



@media screen and (width < 600px){
.layout-main-spacing {
padding: 16px;
}
}