DEV Community 👩‍💻👨‍💻

Cover image for 5 CSS shortcuts
Ryland @ Stackbit for Stackbit

Posted on

5 CSS shortcuts

It's amazing how long I didn't know about these. They make my style sheets much more clean.

I hope they do the same for yours. :-)

1/ List properties, made simpler:

css-list-properties-short-cut

2/ The background property, made easier:

css-background-property-short-cut

3/ Font and line-height properties, made like a pro:

css-font-line-height-properties-short-cut

4/ Margin and padding properties, made how they should be:

css-margin-padding-properties-short-cut

5/ Border property, made with love:

css-border-property-short-cut

Top comments (1)

Collapse
 
yamanidev profile image
Mohamed El Amine Yamani

Thanks for sharing! Indeed they make our styles cleaner and easier to skim through.

I think the title is a bit misleading though. They're called CSS shorthands, not shortcuts

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.