Skip to content

Commit

Permalink
ADDED: Component: Containers: Use containers (.container(-fluid) to d…
Browse files Browse the repository at this point in the history
…efine a flexible & responsive padding and container for the content of a page to stretch/shrink across different viewports.
  • Loading branch information
SagnikGanguly96 committed Feb 14, 2023
1 parent 6117105 commit d3b4bdf
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/css/components/containers.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright (c) 2022-2023 SGNetworks. All rights reserved.
*
* The software is an exclusive copyright of "SGNetworks" and is provided as is exclusively with only "USAGE" access. "Modification", "Alteration", "Re-distribution" is completely prohibited.
* VIOLATING THE ABOVE TERMS IS A PUNISHABLE OFFENSE WHICH MAY LEAD TO LEGAL CONSEQUENCES.
*/

.container {
padding: 0 15px;
margin: 0 auto;
width: 100%;
}

@media only screen and (min-width: 768px) {
.container {
max-width: 720px;
}
}

@media only screen and (min-width: 992px) {
.container {
max-width: 960px;
}
}

@media only screen and (min-width: 1200px) {
.container {
max-width: 1170px;
}
}

.container-fluid {
width: 100%;
padding: 0 15px;
margin: 0 auto;
}

0 comments on commit d3b4bdf

Please sign in to comment.