Technology News

Defensive CSS

Ahmad Shadeed nails it again with “Defensive CSS.” The idea is that you should write CSS to be ready for issues caused by dynamic content.

More items than you thought would be there? No problem, the area can expand or scroll. Title too long? No problem, it either wraps or truncates, and won’t bump into anything weird because margins or gaps are set up. Image come over in an unexpected size? No worries, the layout is designed to make sure the dedicated area is filled with image and will handle the sizing/cropping accordingly.

There is no such thing as being a good CSS developer and not coding defensively. This is what being a CSS developer is, especially when you factor in progressive enhancement concepts and cross-browser/device unknowns.

The Web is More Gooder, and Other Observations on Today’s Web Tech
‘Serious’ talk between Joe Biden, Putin sets stage for diplomacy 

Related Articles

Website Elements That Will Engage and Convert

Website Elements That Will Engage and Convert
In this article, we suggest 10 simple and different elements that you should incorporate into your website. Each of these elements has been proven to be user magnets, with enough…

Quick Tip: How to Filter Data with PHP

Quick Tip: How to Filter Data with PHP
In this article, we’ll look at why it’s so important to filter anything that’s incorporated into our applications. In particular, we’ll look at how to validate and sanitize foreign data…