When you read CSS code and find some weird code like :

-webkit-,
-moz-,
-o-,
-ms-

Let's understand about themβš‘πŸ‘‡
What we're going to cover:-

β—Ό What is the vendor prefix.
β—Ό Prefixes used by major browsers
β—Ό Why we Use?
β—Ό property supported by browsers or not
β—Ό How we can use vendor prefixes?
β—Ό automate the vendor prefix writing
πŸ“Œ What is the vendor prefix?

CSS properties starting with -webkit-, -moz-, -ms- or -o- are called vendor prefixes.

These are the vendor-prefixed offered by the relevant rendering engines.
Typically they're used to implement new, or proprietary CSS features,

prior to final clarification by the W3.
πŸ“Œ Prefixes used by major browsers :

1. -webkit- :- Chrome, Safari, newer versions of Opera, almost all iOS browsers.
2. -moz- :- Firefox
3. -ms- :- Internet Explorer and Microsoft Edge
4. -o- :- Old versions of Opera.
πŸ“Œ Why we Use?

Sometimes websites behave weirdly in different browsers just like,

animation property working fine in the latest firefox,

But not working in the older version of firefox.
This happens because these properties are still not supported by browsers.

To get rid of this behavior we need to specify vendor prefix or,

you can say browser prefix is used to work the property in all browsers.
When using prefixes, keep in mind that they are only temporary.

A lot of properties that needed to have vendor prefixes attached to them are now fully supported and don’t need them.
πŸ“Œ How we can know whether the property is supported by browsers or not?

you can use tools like caniuse.com to check the support of property across all major browsers and versions.
πŸ“Œ How we can use vendor prefix?

You just need to add a vendor prefix in front of the CSS property name.

just like this πŸ‘‡
πŸ“Œ automate the vendor prefix writing

Writing Prefix by hand is time-consuming and error-prone.

To solve this problem we've amazing online tools like autoprefixer.github.io
you can also configure PostCSS in your project to add vendor prefixes to CSS.

opencollective.com/postcss
Thanks for stopping and checking these resources, I'm sure it's going to help you at some point in time.

1. Follow @Ali6nX404 for more such content.

2. Quote retweet the first and share what do you think of this?

Cheers! πŸ₯‚

β€’ β€’ β€’

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

Keep Current with Mahesh πŸ‘½πŸ›Έ

Mahesh πŸ‘½πŸ›Έ 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 @Ali6nX404

5 Dec
I wasted 2 months in tutorial hellπŸ˜–πŸ˜«

But WTF is Tutorial Hell? πŸ€·β€β™€οΈ

How to escape it?πŸ™„

Thread πŸ§΅πŸ‘‡
As I started learning to code, I was stuck in tutorial hell. It felt like, I am learning a lot of the stuff.

I have mastered CSS and JS.
After Creating a lot of projects while watching tutorials.

One day I decided to create a project of my own.
Read 21 tweets
3 Dec
Level up your CSS With These Generators and tools✨

threadπŸ§΅πŸ‘‡ Image
1️⃣ This is the best generator to design your next project grid layout visually.

Copy the CSS code directly.
grid.layoutit.com
2️⃣ This Generator allows you to create complex shapes easily.

bennettfeely.com/clippy/
Read 11 tweets
22 Oct
Cheat Sheets that always save my time during development πŸš€

Thread πŸ‘‡
1️ HTML cheatsheet -
htmlcheatsheet.com
2️⃣ CSS cheat sheet -

htmlcheatsheet.com/css/
Read 10 tweets
21 Oct
Confused between boxes and box model πŸ™„πŸ€”

π˜‰π˜°π˜Ήπ˜¦π˜΄ - π˜‰π˜°π˜Ήπ˜¦π˜΄ 𝘳𝘦𝘀𝘡𝘒𝘯𝘨𝘢𝘭𝘒𝘳 π˜‰π˜°π˜Ήπ˜¦π˜΄ 𝘌𝘷𝘦𝘳𝘺𝘸𝘩𝘦𝘳𝘦 πŸ€·β€β™‚οΈπŸ˜…

Let's learn the most important concept 𝑩𝒐𝒙 𝑴𝒐𝒅𝒆𝒍 π’Šπ’ π‘ͺ𝑺𝑺.

Thread πŸ‘‡ Image
The first thing you need to understand is that,

Everything displayed is just a box.

Everything you see on a web page is made up of rectangles boxes.
on a website, you will see all the content is just a combination of boxes,

Arranged on top to, on next to, bottom, or nested in each other.

Header, nav, footer everything made up with boxes.

Usually, we called it HTML elements instead of rectangles boxes.
Read 21 tweets
8 Oct
Confused About rem and em units in CSS?

Which is better to use in CSS πŸ™„

Let's understand both units ✨

threadπŸ§΅πŸ‘‡
em and rem both are known as relative units in CSS.

You've probably been using em and rem units now for a while already,

but still, you might be confused about which unit is best in which scenario.
1️⃣ What is em?

An em value is equal to the computed font size of the parent of that element.

example if font size of parent element is 20 px then 1em is equal to 20px.
Read 15 tweets
6 Oct
Total 1k Views, 100+ reactions, and 30 comments on my first blog from various platforms. 😎😍

5 things I learned during the creation of that article.

threadπŸ§΅πŸ‘‡
1️⃣ Research before write:-

I chose gradient because I use gradient a lot in my CSS art creation and,

I noticed there are not many well-detailed blogs available on the internet.

So I decided to go with it 🀠
Key point -

1. always do research about your blog topic.

2. Nothing is 100% new but we can improve at least 1% for easy understanding of readers.

3. Don't fall into research hell.

how to avoid research hell thread by @akoskm
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

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(