News for hackers. Stuff that matters.
Re:CSS is powerful, you can do a lot of things without JS by zuxfer on Tuesday July 05, 2016 @08:38AM (#12035938)
And here I am, trying for past 10 years to centre align a div, both horizontally and vertically.
Re:CSS is powerful, you can do a lot of things without JS by yoz-y on Tuesday July 05, 2016 @08:52AM (#12036020)
You probably already know this but just in case: https://philipwalton.github.io/solved-by-flexbox/demos/verti...
Re:CSS is powerful, you can do a lot of things without JS by nsuser on Tuesday July 05, 2016 @10:00AM (#12036454)
Re:CSS is powerful, you can do a lot of things without JS by afarrell on Tuesday July 05, 2016 @10:18AM (#12036569)
Yea, I share your pain. However, for this specific problem, you are best off using flexbox because there is a good tutorial for it: http://flexboxfroggy.com/
Re:CSS is powerful, you can do a lot of things without JS by talmand on Tuesday July 05, 2016 @10:52AM (#12036820)
That joke is too old, there are new things to mock CSS over these days.
Re:CSS is powerful, you can do a lot of things without JS by mungoid on Tuesday July 05, 2016 @09:48AM (#12036381)
You took the words right out of my mouth(fingers). Was just thinking the exact same thing
Re:CSS is powerful, you can do a lot of things without JS by rimantas on Tuesday July 05, 2016 @11:07AM (#12036930)
How about learning some CSS? This "joke" should really be retired by now. I've been doing this stuff 10+ years ago when stills supporting IE5, for fucks sake.