DEV Community

Cover image for How to Check for Changes in Inline Styling
Jeannie Nguyen
Jeannie Nguyen

Posted on

How to Check for Changes in Inline Styling

I was looking through some code the other day and couldn't pinpoint where the inline styling was being set.

I wasn't able to follow the code back to the initial inline styling modification and doing a search through all the files for the inline styling wasn't helpful.

Here's one way to check for changes in your inline styling:

  1. Find and select the element whose inline styling you're trying to check for.
  2. Click on the ellipsis ... to the left of the element, scroll down to the Break on menu, and select attribute modifications. Alt Text
  3. Interact with what you think is causing the inline styling to be set (in my case, it was being set on load so I refreshed the page) and the code will break on your element and show you the file / line of code that's setting the inline style.

That's it! Let me know if this was helpful - feel free to drop a line below for other topics you'd like to see covered.

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay