CSS Shorthand Properties.

Learn 12 CSS shorthand properties and save your time by writing less code.

A thread ⤵️

#100DaysOfCode #CodeNewbie
1. background

Shorthand for -

→ background-color

→ background-image

→ background-position

→ background-size

→ background-repeat

→ background-origin

→ background-clip

→ background-attachment
2. border

Shorthand for -

→ border-width

→ border-style

→ border-color
3. outline

Shorthand for -

→ outline-width

→ outline-style

→ outline-color
4. font

Shorthand for

→ font-style

→ font-variant

→ font-weight

→ font-size / line-height

→ font-family
5. margin

Shorthand for

→ margin-top

→ margin-right

→ margin-bottom

→ margin-left
6. padding

Shorthand for

→ padding-top

→ padding-right

→ padding-bottom

→ padding-left
7. animation

Shorthand for

→ animation-name

→ animation-duration

→ animation-timing-function

→ animation-delay

→ animation-iteration-count

→ animation-direction

→ animation-fill-mode

→ animation-play-state
8. flex

Shorthand for

→ flex-grow

→ flex-shrink

→ flex-basics
9. gap ( grid-gap )

Shorthand for

→ row-gap

→ column-gap
10. grid

Shorthand for

→ grid-template-rows

→ grid-template-columns

→ grid-template areas

→ grid-auto-rows

→ grid-auto-columns

→ grid-auto-flow
11. place-items

Shorthand for

→ align-items

→ justify-items
12. place-items

Shorthand for

→ align-items

→ justify-items
Thank you for reading this thread 💛

If you liked this thread →

1. Follow me ( @junaidshaikh_js ) for more related content
2. Retweet the first tweet to help others discover this knowledge.

Keep coding 😉

12. transition

Shorthand for

→ transition-property

→ transition-duration

→ transition-timing-function

→ transition-delay

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Junaid ⚡

Junaid ⚡ Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @junaidshaikh_js

31 Jul
HTML <input> Types

Do you know?
There are almost 22 types of input fields 🤯
Let's see how many of them you know.

A thread ⤵️

#100DaysOfCode #CodeNewbie
🔸 Input type text

The most common type of input used is of type text. It defines a single-line text input field.

<input type="text">
🔸Input type submit

This type is rendered as the button. When the user clicks on this (click event) the form is submitted to the server.

<input type="submit">
Read 24 tweets
30 Jul
FREE UDEMY COURSES 🔥🔥

3 FREE Udemy courses you can do this weekend.

Topics: Python, Public Speaking, DevOps

Note: Courses may be available for few hours. Grab them as soon as possible.

#100DaysOfCode #CodeNewbie
➡️ Python 3 Master Course for 2021

Rating: 4.1⭐️

🔗udemy.com/course/python-…
➡️ First Step into Public Speaking

Rating: 4.3⭐️

🔗 udemy.com/course/first-s…
Read 5 tweets
16 Jul
10 VS Code extensions that will help you to be more productive 💪

A thread...

#100DaysOfCode #CodeNewbie #vscode #webdevelopment
1. Prettier

Prettier is the code formatter extension. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.

🔗marketplace.visualstudio.com/items?itemName…

#100DaysOfCode #CodeNewbie
2. Simple React Snippets

If you are a React developer, check out this extension that provides an essential collection of React Snippets and commands

🔗marketplace.visualstudio.com/items?itemName…

#100DaysOfCode #CodeNewbie #vscode #webdevelopment
Read 12 tweets
21 Jun
💡CSS - Attribute Selectors you probably don't know about.

A thread...

#webdevelopment #webdesign #webdeveloper #html #website #coding #programming #css #javascript #development
1. Select element(s) having attribute of name ‘attr’. No matter what the value is.
👉 [attr]
Try it on Codepen: codepen.io/junaidshaikh_j…

#webdevelopment #webdesign #webdeveloper #html #website #coding #programming #css #javascript #development Image
2. Select element(s) having the attribute of name ‘attr’ whose value is having an exact match to ‘value’
👉 [attr = value]
Try it on Codepen: codepen.io/junaidshaikh_j…

#webdevelopment #webdesign #webdeveloper #html #website #coding #programming #css #javascript #development Image
Read 10 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(