I want to use "The Perfect 3 Column Liquid Layout (Percentage widths)" from this website: https://matthewjamestaylor.com/blog/perfect-3-column.htm , and make it mobile responsive, but so far I have been unable to do it.
I have added the following code to my .css file, and it does not work.
@media only screen and (max-width: 629px) {
.colmask,
.colmid,
.colleft {
float: none ;
width: 100% ;
}
}
These are the relevant parts of my .css. file.
/* column container */
.colmask {
position:relative;
clear:both;
float:left;
width:100%;
overflow:hidden;
}
/* common column settings */
.colright,
.colmid,
.colleft {
float:left;
width:100%;
position:relative;
}
.col1,
.col2,
.col3 {
float:left;
position:relative;
padding:0 0 1em 0;
overflow:hidden;
}
/* 3 Column settings */
.threecol {
background:#cedcec;
}
.threecol .colmid {
right:20%;
background:#eaedf4;
}
.threecol .colleft {
right:60%;
background:#cedcec;
}
.threecol .col1 {
width:60%;
left:100%;
}
.threecol .col2 {
width:20%;
left:20%;
}
.threecol .col3 {
width:20%;
left:80%;
}