diff --git a/README.md b/README.md index 7a72fc9..038c75f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # HTML-CSS-Project -View this layout projects click here >> https://html-css-project-1-by-subbhajit.netlify.app/ +View this layout projects click here >> https://layout3-html-css-by-subhajit.netlify.app/ diff --git a/index.html b/index.html index b31afbf..4df36e8 100644 --- a/index.html +++ b/index.html @@ -3,28 +3,18 @@ - Project 1 + Project 3 -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ +
+
+
+
+
+ +
\ No newline at end of file diff --git a/style.css b/style.css index a55070f..a5bc163 100644 --- a/style.css +++ b/style.css @@ -1,77 +1,83 @@ - -* { +*{ margin: 0; padding: 0; box-sizing: border-box; - } - body{ - background-color: #ebd6fb; - } - - .container { +} + +body { + background-color: #7adfff; +} + +.container { max-width: 1200px; - height: 800px; - background-color:white; - margin: 80px 60px; - } - - .box { - width: 100%; - height: 200px; - background-color: white; - } - - .box-container { - display: flex; + min-height: 800px; + margin: 52px auto; + padding: 0 16px; +} + +.grid { + display: grid; + gap: 20px; + grid-template-areas: + "box1 box1 box1 box3" + "box2 box2 box2 box3" + "box4 box4 box4 box3"; +} + +.box1 { + + grid-area: box1; + background : #7f8eec; +} + +.box2{ + + grid-area: box2; + background: #0a1e3c; +} + +.box3{ + + grid-area: box3; + background: #005c79; +} + +.box4 { + grid-area: box4; + background: #009DD1; +} + + +@media screen and (width > 1200px) { - } - - .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 < 1200px ) and ( width > 450 ){ + + .grid{ + gap:16px; + } + +} + + +@media screen and (width <450px) { + .container{ + margin: 20px auto; } - } - - @media screen and (width < 450px) { - .container { - margin: 24px 16px; + .grid { + gap:16px; + grid-template-areas: + "box1" + "box1" + "box2" + "box2" + "box2" + "box2" + "box3" + "box3" + "box3"; } - } - - - - - \ No newline at end of file + +}