+ 2

inline-block elements change the position how can i stop

I have a question. I hope someone can me help. I work at a website and I wanted make a block element set next to each other but when I the size from the website change the position change also from the block elements

24th Jul 2017, 2:27 PM
Henry Steinhauer
Henry Steinhauer - avatar
2 ответов
+ 5
Hi! I've been wondering the same thing, and tried it out. The only way I can think of that works is to place the inline-block elements inside a block element with a width that is fixed and wide enough to contain them: https://code.sololearn.com/Wgg1tN0Z1w4Z/?ref=app
24th Jul 2017, 4:34 PM
Karbz P
Karbz P - avatar
+ 1
Maybe this can help you understand block, inline and inline-block differences https://code.sololearn.com/WUWrSMiCq8v6/?ref=app
10th Oct 2017, 8:44 AM
Calviղ
Calviղ - avatar