Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Froot75397yYou could, I don't know, wrap the two divs in another div? Then it would work just fine
-
Why do I keep reading "forsaken me" in Serj Tankian's voice (he's the lead singer of System of a Down)
-
tahnik387587ydisplay: flex;
Put that on the parent element and it should put the divs next to each other. -
Froot75397y@ComradeBob Of course it does. Make the wrapper div another flex. You can nest flex elements as much as you want.
So basically you'd have a column flexbox that contains a row flexbox. Try it out
Hope this helped 🙂 -
@Froot I was going to suggest the same thing. I've used nested Flexbox containers pretty effectively.
-
@stop Grid is certainly more flexible and works really well. The challenge is still browser/device support.
Even if I use CSS Grid now, I'd probably do a Flexbox fallback to cater for device/browser support. -
Froot75397y@wiredgecko PostCSS + CSSNext.
Nobody supports old devices by hand these days, it's all automated -
Finally figured out why it didn't render a div as it should've. Missed a
</code>......
Classic.
Working on a webpage. Using Flexbox for a 1-column layout. Now I need to display two Divs next to each other and I regret every lifechoice.
Why is it such an impossible task to put two divs in perfect alignment next to each other. Why oh lord have thou forsaken me.
rant