I have 3 separate lines of text in footer, that are supposed to stay on the left side, and a logo that is supposed to stay on the right side. No matter what I try in CSS, text and logo do not align. It’s either making 3 lines of text fit on just one line, or the logo starts below the text, instead of being in line with it, just on the opposite(right side).
I will attach a drawing of what I am trying to achieve.
I tried to put float:left for text and float:right for the logo, but that didn’t help
2
Answers
Is this what you expected
You have to wrap 3 lines with an element to make it a block
If you don’t want to make it have spaces between -> remove
justify-content: space-between;
Use a flexbox or a grid; they are much better suited to what you want to achieve. Floats are rarely useful on the modern web.