F
F
fug353812016-02-08 20:07:15
css
fug35381, 2016-02-08 20:07:15

How to correctly set css for 2 divs in a row?

there are 2 divas

<div style="width:300px;"></div>
<div style="width:100%;"></div>

how to make them on the same line on a large screen, and on a small one, 1 div goes under another?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kn1ght_t, 2016-02-08
@fug35381

https://jsfiddle.net/x9uLcgp5/

M
Maxim Zhgulev, 2016-02-12
@e_s_l

I advocate flexbox
codepen.io/anon/pen/MKLYvB

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question