F
F
freeman02042015-10-14 20:56:35
css
freeman0204, 2015-10-14 20:56:35

How did you make responsive websites before without bootstrap and ready-made grids?

The question may be strange, but still.
How did responsive sites do before without bootstrap and ready-made grids like below? Having only media queries.
What is the layout of the site without ready-made grids and even your own, but only on% and media queries?
I made my 12 column grid:

.container .cols.col-1 {width: 8.33333333333%;}
.container .cols.col-2 {width: 16.666666667%;}
.container .cols.col-3 {width: 25%;}
.container .cols.col-4 {width: 33.333333333%;}
.container .cols.col-5 {width: 41.666666667%;}
.container .cols.col-6 {width: 50%;}
.container .cols.col-7 {width: 58.333333333%;}
.container .cols.col-8 {width: 66.666666667%;}
.container .cols.col-9 {width: 75%;}
.container .cols.col-10 {width: 83.333333333%;}
.container .cols.col-11 {width: 91.666666667%;}
.container .cols.col-12 {width: 100%;}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey delphinpro, 2015-10-14
@freeman0204

I still adapt old sites (long ago made up) with the most common media queries.
example (fictitious :) ):

.menu {
   width: 500px;
  @media (max-width: $breakpoint) {
      width: 100px;
  }
}
.menu2 {
   width: 550px;
  @media (max-width: $breakpoint) {
      width: 150px;
  }
}

/* ... другие блоки верстки аналогично */

I write all the conditions separately in each block, it’s more convenient.
At the end I pass everything through combine-mq to combine the same media queries

M
MarsFM, 2015-10-19
@sportredwhite

Responsive Web Design
Ethan Marcotte

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question