Skip to content

Commit

Permalink
Create 3 Coloum layout using CSS
Browse files Browse the repository at this point in the history
HOPE THIS WILL HELP IN OPEN SOURCE
  • Loading branch information
ROhit123614 authored Oct 3, 2020
1 parent 84c48dc commit a08823e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions 3 Coloum layout using CSS
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* Create three equal columns that floats next to each other */
.column {
float: left;
width: 33.33%;
}

/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}

/* Responsive layout - makes the three columns stack on top of each other instead of next to each other on smaller screens (600px wide or less) */
@media screen and (max-width: 600px) {
.column {
width: 100%;
}
}

0 comments on commit a08823e

Please sign in to comment.