Answer the question
In order to leave comments, you need to log in
Positioning elements in a row.?
https://jsfiddle.net/8xzy5afL/2/
Both columns need to be on the same line, regardless of the size of each. But the div with them(.secondMenu) doesn't stretch no matter what I do.
What is strange - if you change its positioning from absolute
to fixed
- everything works as it should. What am I doing wrong?
(HTML should not be touched)
Answer the question
In order to leave comments, you need to log in
I don’t know how true and beautiful it is, but it seems to work as it should - https://jsfiddle.net/8xzy5afL/3/
#query and #data instead of float -> display: inline-block;
and like this
#wrap2 .secondMenu ul {
max-width: 49%;
margin: 0;
padding: 0;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question