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
-
Root797677y@Ezard
Depends on container size
Depends on container positioning
Depends on content size
Depends on siblings
Depends on browser support
@AllenII
Yep! Flexbox makes this simple now 😊 -
PacRat39567y@GodHatesMe i want it to be vertically centered at the end of "Welcome to devCraft", which has its own class ".devbgtitle"
-
PacRat39567y@GodHatesMe no, i have the image set toba class inside the sentence
<p>Welcome to devCraft!<img class="centerThis" src="" style="width and height" /></p> -
Root797677yDon't rely on vertical-align. That's for table-cell's and behaves strangely/unreliably in other situations.
Use flexbox instead.
Much simpler and will work in every major browser, iirc including >= ie9 -
PacRat39567y@Ashkin ie9 can suffer, i'm just glad i got it working in a modern browser at least 😂
-
jakobev23957yhahaha i know that.. i offered much time to find out the best way to get that fixed and done xD
-
Ezard19607y@Ashkin I think you forgot to mention that it also relies on planets 4, 5 and 6 being aligned on the previous 2 spring equinoxes
Related Rants
!!css
i never understood the "vertically center in css" joke
then i tried
rant
css
center
vertically