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
-
And the most ludicrously long js code to go with it. Also, many deprecated properties.
-
Just keep me away from the frontend 😀. Wish I could but I will leave it to the frontend pro's whenever possible.
-
don't worry, centering is not as simple or intuitive as it should be, even for us front-end folks.
-
yusijs12508y@chewbacca yeah this. why the fuck can't there just be simple css props like :
{
v-align: center;
h-align: center;
position: fixed;
}
or something. I mostly do dev and not design, but everytime I do so, I apply dirty af hacks with absolute positioning -
Dude, use flexbox it's a life saver! It has pretty good browser support now. http://caniuse.com/#feat=flexbox
-
Here's a game to learn flexbox. http://www.flexboxdefense.com/ I suggest doing it on a computer.
-
Centering a span with flexbox!
<div class="container">
<span>
I'm centered!
</span>
</div>
.container {
display: flex;
justify-content: center;
align-items: center;
} -
Sorry, for all the notifications, but here's an example of the above on jsfiddle. https://jsfiddle.net/w8reg9rx/
-
Currently working on a project, client said I can use the new stuff since they don't care much about browser support. Decided to go for flexbox. Never looked back.
-
aimanb1638yThis pain also applies to Android devs. The pain to make photoshopped design into codes. Considering the designer have no clue on the Android design guidelines.
-
trogus131638yFlexbox is your friend. I just started using it a few months ago, saves so much frustration around "wtf this shouldn't be this hard"
-
chrizzle7268yIf you can stand to be a little more verbose. Display:table is your saviour all the way back to the dreaded IE8 and it in no way hinders your ability to create responsive content:
http://caniuse.com/#feat=css-table
I will totally be flexboxing it up in a couple of years however.
Related Rants
Backend engineer doing frontend. The eternal struggle of centering an object.
undefined
webdev
design
frontend