Ajay Yadav Profile picture
โ€ข Technical Writer @Talent_500 โ€ข No-Code AI Tools โ€ข Mission on Simplified Web โ€ข See my passion on YT ๐Ÿ’š โ€ข DM for collab or mail ๐Ÿ“ฉ: partnership.aj@gmail.com

Feb 27, 2022, 11 tweets

๐Ÿ“Œ Do you want to learn

โ†’ What is a box-shadow?

โ†’ How to use box-shadow?

โ†’ What is X offset?

โ†’ What is Y offset?

โ†’ Multiple values with box-shadow?

โ›” So, this thread is for you!

๐Ÿ’š Learn step by step with me :)

#webdev

A Thread ๐Ÿงต โ†“

โ“ First of all, we have to know, what is the syntax of the box-shadow?

๐Ÿ“Œ ๐’ƒ๐’๐’™-๐’”๐’‰๐’‚๐’…๐’๐’˜ : ๐‘ฟ-๐’๐’‡๐’‡๐’”๐’†๐’• ๐’€-๐’๐’‡๐’‡๐’”๐’†๐’• ๐’ƒ๐’๐’–๐’“ ๐’„๐’๐’๐’๐’“;

๐Ÿ“Œ ๐‘ฟ-๐’๐’‡๐’‡๐’”๐’†๐’•

โ†’ Distance in the X-axis from the left edge of the box.

๐Ÿ‘€ See the "white" part!

๐Ÿ“Œ ๐’€-๐’๐’‡๐’‡๐’”๐’†๐’•

โ†’ Distance in the Y-axis from the top edge of the box.

๐Ÿ‘€ See the "white" part!

๐Ÿ“Œ ๐’€-๐’๐’‡๐’‡๐’”๐’†๐’•

โ†’ But when we set the values as Y offset then the shadow of that box has moved down as they specified.

โ†’ Or, moved 100px from the top to down.

๐Ÿ‘€ See the image!

๐Ÿ“Œ ๐‘ฟ-๐’๐’‡๐’‡๐’”๐’†๐’•

โ†’ Similarly, when we set the values as X offset then the shadow of that box has moved right as they specified.

โ†’ Or, moved 100px from the left to right.

๐Ÿ‘€ See the image!

โ†’ But, when we set ๐“ซ๐“ธ๐”-๐“ผ๐“ฑ๐“ช๐“ญ๐“ธ๐”€ : 0 0 0 ๐”€๐“ฑ๐“ฒ๐“ฝ๐“ฎ;

โ†’ Then the shadow of the box will not be visible to the user.

๐Ÿ‘€ See the image!

โ†’ Now, if we set the blur value then the shadow of the box will be visible to the user.

๐Ÿ‘€ See the image!

โ†’ We can also set multiple values as the values of the box-shadow.

โ†’ Do not forget to separate these values with a comma( , )

โ†’ Remove comma( , ) from the last value.

๐Ÿ‘€ See the image!

๐Ÿ‘€ See the result in the next thread!

๐Ÿคฉ Result of the above image.

If you like this make sure to:

1. Follow me @ATechAjay

2. Retweet the first tweet.

3. Turn on the notification to never miss these amazing tweets.

Thank you so much for staying to the end of this thread.

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling