r/css • • Aug 01 '20

CSS Positioning be like...

Post image
375 Upvotes

12 comments sorted by

7

u/antiray Aug 02 '20

Flexbox has changed my life

3

u/CloffWrangler Aug 02 '20

I had to give some more back end leaning devs a presentation with CSS tips last week and this was one thing I tried to emphasize. Use floats for actual floats and not for layout.

0

u/[deleted] Aug 02 '20

[deleted]

5

u/CloffWrangler Aug 02 '20

The example I gave them was wrapping text around images within a large body of text.

2

u/[deleted] Aug 02 '20

Pretty much the only example

12

u/[deleted] Aug 01 '20

good ol

grid-text-flex-content-align:auto;

16

u/wedontlikespaces Aug 01 '20

just-fing-work-god-damn-you: center !important;

10

u/jocongdon Aug 01 '20

Umm Static... No.... Absolute .... No...

2

u/[deleted] Aug 02 '20

r/css_irl are going to love this

2

u/msartore8 Aug 02 '20

Do it w Zeppelin IV

1

u/riolu98 Aug 02 '20

0 x 1764.4 px

0

u/OKavalier Aug 02 '20

display: inline-block, and remove that z-index on that div bro and where are the rounded borders? We live in 2020