by iambateman · 8y ago · 0 comments
Second, charging for a beta...what a great idea. I’ve signed up for 7 competitors this week and can’t remember their names and will never again login. But if I have to decide this problem is big enough to make a monthly commitment, I’m damn sure going to log back in to get my money’s worth. I hope y’all crush it. Thanks.
display: flex;
justify-content: center;
align-items: center;Beyond that, all of the CSS that he writes on a daily basis would become more robust once he learns a few more values (space-between, space-around, space-evenly, flex: 1;, etc.).
Here are some situations where you may want to test your understanding of centering in CSS:
+ Center an absolute positioned element whose width and height are unknown (e.g., it's an <img>).
+ Does anything change if the parent element has padding?
+ Create an element that's width 50%, height 50%, and center it in a parent of unknown size.
+ Do any of these solutions still work if all elements have a 10px border?
+ Which of these solutions will remain centered if the parent has smaller width/height than the child?
How confident are you in any of these solutions without being able to run them?
CSS is quite complex. It was built up incrementally by reasonable, intelligent people trying to solve hard problems.
If you're convinced that things are easy or that other people struggle simply because they are lazy, then you'll never be able to learn and grow your own skills.
<3