CodingCSS Trick You Did Not Know About

Domenico SolazzoDomenico Solazzo | Developer & Engineering manager

Domenico Solazzo

 - undefined min

Let's me show a simple trick that could speed up your workflow while working with CSS.

Sometimes, you need the CSS of a component that you might have found on a website you like. Many times, I am looking for design inspiration and when I find something that I like, I get curious about how the styling was made...

Help Junior Developers

This simple trick that I am going to show you, it is going to help you to extract the CSS from any given website.

I felt in love with this feature as soon as I discovered its existence.

It is super easy!

  1. Go to the website you like.
  2. Open the Chrome DevTools
  3. Select the component that you want to extract the CSS.
  4. Right-click on the element in the Chrome DevTools and...
  5. Click the Copy -> Copy Styles
  6. Copy the CSS in your code!

Image

Done. That's all you really need to copy the CSS styles from any part of any given website!

Pretty amazing!

FOLLOW ME

Do you know that I have a YouTube channel? Subscribe!

Where can you find me?

Where you can find me online