Hardest problem in computer science: centering things
31–40 of 473 posts
Re: Hardest problem in computer science: centering things
#32[deleted]
Re: Hardest problem in computer science: centering things
#33First time probably ever that I've had to disable Javascript because of the creepy and distracting mouse thing. It really feels like you're invading other people's privacy, and if it doesn't, having things randomly move across your field of vision makes it difficult to read.
Re: Hardest problem in computer science: centering things
#34Re: Hardest problem in computer science: centering things
#35> That’s exactly why people love web programming so much. There’s always a challenge. LOL, these examples are exactly why I got out of web programming. Thankfully I never had to deal with any of the modern frameworks. I was getting hot flashes just scrolling through this page.
Re: Hardest problem in computer science: centering things
#36The Apple one doesn’t seem fair. You can do the math to center the box but typography with descenders throws everything off. I think if they had centered it “correctly” it would feel off.
Re: Hardest problem in computer science: centering things
#37> That’s exactly why people love web programming so much. There’s always a challenge. LOL, these examples are exactly why I got out of web programming. Thankfully I never had to deal with any of the modern frameworks. I was getting hot flashes just scrolling through this page.
I used to have that attitude, but after trying the latest version of ReactJS I think its pretty nifty for what its intention is.
Re: Hardest problem in computer science: centering things
#38> don’t ask why you need to remember four words instead of just horizontal/vertical, it’s still better than before The reason is "display: flex" can be a column or row. The "align-items" property describes alignment along the axis, so vertical for column and horizontal for row. The "justify-content" property is the other direction.
Re: Hardest problem in computer science: centering things
#39Re: Hardest problem in computer science: centering things
#40Text-Box-Trim I’m surprised ‘text-box-trim’ wasn’t mentioned. It’s a CSS attribute that solves this on the web. https://caniuse.com/css-text-box-trim If only browsers would support it. Until then, here’s a JS alternative. https://seek-oss.github.io/capsize/
Hardly worth mentioning a feature supported by...nothing