
Practical CSS and design tips that helps in building future-proof user interfaces. A project by @shadeed9
The Browser
Joined December 2021
- Tweets40
- Following1
- Followers6K
- Likes36
Defensive CSS retweeted
Now up in the front-end track is @shadeed9, talking about @DefensiveCSS which he published earlier this year.
defensivecss.dev
#WebDirections
Defensive CSS retweeted
CSS allows you to build any layout you want. Unfortunately, we still don't care too much about preventing CSS issues upfront. So at Summit @shadeed9 will outline defensive CSS, a term he coined to describe CSS that is future-proof and defensive.
buff.ly/3KwIrn1

ALT Twitter banner for Ahmad Shadeed's presentation. Image shows a photo of Ahmad Shadeed and text that reads 'Ahmad Shadeed Design Engineer Freelancer Defensive CSS. WEB DIRECTIONS SUMMIT 2022 Sydney, December 1st and 2nd, 2022. product, design, front-end engineering, and more! Sydney, December 1st and 2nd, 2022'
It was an honor talking about Defensive CSS @ParisWeb.
You can watch the talk here (It's a part of a live stream):
youtube.com/watch?v=ym2sI8Jl…
Looking forward to speak about Defensive CSS next week in Paris! 🤩
Designer et développeur front-end, @shadeed9 nous fera l'honneur de partager son expertise #CSS pour la toute première fois en France. Et ce sera à #ParisWeb le 7 octobre prochain ! paris-web.fr/2022/conference…
Inscrivez-vous pour assister à sa conférence : inscriptions.paris-web.fr
Defensive CSS retweeted
I have updated defensivecss.dev and added a speaking section. It's amazing how quickly a simple idea can take off! 🤩
I am so excited for what is to come for @DefensiveCSS 🔥
🌟 New Tip
When working with multilingual websites, make sure to account for short content lengths by setting a minimum size.
In this example, the button "Done" become too small in Arabic. We can fix that by setting a min-width in CSS.
Read more: defensivecss.dev/tip/button-…
Defensive CSS retweeted
So excited to speak about @DefensiveCSS at Xpand conf in Jordan 🙌
💡 In CSS grid, we can choose between auto-fill and auto-fit for how a grid item should behave. The keyword auto-fit is risky, specially when we don't know the number of grid items.
Read more in this defensive CSS tip:
defensivecss.dev/tip/auto-fi…
Defensive CSS retweeted
It was an honor for me to give a talk on Defensive CSS to the @Supermetrics development team in Helsinki, Finland.
This is a great experience for me and looking to spread the word even more about @DefensiveCSS 🤩
It's a common mistake to use display: flex and forget about it. When the content gets longer, flex items will stretch to fill the parent.
That's what happened to the image here. The fix is to use align-items or align-self depending on the use case.
🔗 defensivecss.dev/tip/default…
Defensive CSS retweeted
Looking forward to talk about @DefensiveCSS at Paris Web later this year.
#ParisWeb conference: on October 7th, we will have the pleasure to welcome @shadeed9 who will introduce you to the idea of Defensive CSS: Ways and techniques we can use right away to prevent potential layout bugs.
paris-web.fr/2022/conference…
Replying to @dym_sh
Not for now. Please feel free to send a DM for any suggestion you might have.
Have you ever tried using position: sticky with CSS grid and it didn't work? You need to override the default behavior of CSS grid by applying align-self: start to the aside.
✍️ Find out more in this defensive tip: defensivecss.dev/tip/positio…
Defensive CSS retweeted
A little late and sorry for that, but here are all the links mentioned during @shadeed9's talk:
Slides: drive.google.com/file/d/1CgH…
ishadeed.com/
defensivecss.dev/
xitter.cf/defensivecss
caniuse.com/mdn-css_properti…
amazon.com/Bulletproof-Web-D…
⚠️ By default, flexbox will let its child items take up as much space as the content. This can lead to overflow issues.
Learn more about how to prevent that.
defensivecss.dev/tip/flexbox…
Replying to @KonstantinRouda
Good question! Because inset shadows don't work with images.
Defensive CSS retweeted
I will be speaking about @DefensiveCSS at the CSS Café (@CSS__Cafe) meetup this Thursday. I'm looking forward to it! 🤩
Details: meetup.com/de-DE/css-cafe/ev…

















