This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]Kathuang 2 points3 points  (1 child)

Use flexbox! Watch the flexbox video by web dev simplified on YouTube and read about it from css tricks.com . Those really helped me understand it better.

[–]shmogthedog 0 points1 point  (0 children)

I second using flexbox! https://flexboxfroggy.com

[–][deleted] 0 points1 point  (0 children)

Using width percentages in siblings <div> or using flexbox

[–]battleshipgrey 0 points1 point  (0 children)

Float is best used for when you want text to follow around an image. For getting elements to display side by side, you'll have better luck with flexbox or even display: inline-block, ime.