[HN Gopher] Introduction to Defensive CSS
___________________________________________________________________
Introduction to Defensive CSS
Author : todsacerdoti
Score : 23 points
Date : 2023-06-20 17:12 UTC (5 hours ago)
(HTM) web link (defensivecss.dev)
(TXT) w3m dump (defensivecss.dev)
| Gualdrapo wrote:
| From time to time I've seen in here, even today in 2023, people
| in the comments arguing against using CSS as the way to manage
| layouts in web (like in a post a few days ago about the
| complexity of CSS of this days - I guess they want us to go back
| to use HTML tables?) but the whole message with all of this stuff
| many of us have been doing instinctively is that CSS is not only
| the meant way to do layouts and all web design and styling, but
| used appropriately, can save people lots of headaches in the
| future.
| donatj wrote:
| From the name, I was just expecting !important on every single
| line of CSS.
| tommica wrote:
| I absolutely appreciate this - so many times had to take these
| into consideration that this really hits home
| jacobp100 wrote:
| This is great. Loads of great examples, and the author has a huge
| in depth knowledge of CSS. I also had no idea default min-width
| in flex layouts is effectively min-content. It makes sense, but
| definitely can cause issues like mentioned
| jebronie wrote:
| You can save a lot of headaches by forcing thoughtless designers
| to use texts with different lenghts. Everyone can make a nice
| design with lorem ipsum. Making a design that actually works well
| is a skill.
___________________________________________________________________
(page generated 2023-06-20 23:02 UTC)