M
M
massef2015-06-04 09:51:06
css
massef, 2015-06-04 09:51:06

Adaptive. How to lay out such blocks?

Hello.
89137e5773cd45b986a9e937c4d79351.png
I'm interested in the last two cards in the responsive example, how would it be correct to change their width?
While I see options:
1. Set pre-prepared classes for the last two cards and prescribe these classes in the required media queries.
2. :nth-child
What other options are there?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Deodatuss, 2015-06-04
@massef

well, you can also use some bootstrap, there will be something like this:

<div class='container'>
    <div class='row'>
        <div class='col-xs-4 col-md-2'></div>
        <div class='col-xs-4 col-md-2'></div>
        <div class='col-xs-4 col-md-2'></div>
        <div class='col-xs-6 col-md-2'></div>
         <div class='col-xs-6 col-md-2'></div>
     </div>
</div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question