Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6339763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:42:29+00:00 2026-05-24T19:42:29+00:00

I am using Google Chrome’s developer tools to inspect CSS styles. Sometimes I need

  • 0

I am using Google Chrome’s developer tools to inspect CSS styles. Sometimes I need to compare the styles of 2 elements on the page, or 2 elements on different pages.

Is there a tool or add-on that would allow me to easily compare? Right now I have to visually look, switching back and forth, comparing one thing at a time. I wish there was a tool that would highlight the differences in styles, source, …

I am open to use another browser if such a tool exists.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T19:42:30+00:00Added an answer on May 24, 2026 at 7:42 pm

    This should help you compare computed style differences, for two elements, on the same page (I’m not sure about how to approach two elements on different pages):

    function styleDifferences(a, b) {
        var as = getComputedStyle(a, null);
        var bs = getComputedStyle(b, null);
        var r = [];
        for (var i in as)
            if (as[i] !== bs[i])
                r.push(i + ' differs: ' + as[i] + ' | ' + bs[i]);
        return r.join('\n');
    }
    

    Example:

    >>> styleDifferences(document.body, document.querySelector('pre'));
    backgroundColor differs: rgb(255, 255, 255) | rgb(238, 238, 238)
    borderCollapse differs: separate | collapse
    fontFamily differs: Arial,Liberation Sans,DejaVu Sans,sans-serif | Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif
    fontSize differs: 12.8px | 13.7px
    height differs: 1928.28px | auto
    lineHeight differs: 12.8px | 17.8px
    marginBottom differs: 0px | 10px
    maxHeight differs: none | 600px
    overflow differs: visible | auto
    paddingTop differs: 0px | 5px
    paddingRight differs: 0px | 5px
    paddingBottom differs: 0px | 5px
    paddingLeft differs: 0px | 5px
    textAlign differs: center | left
    whiteSpace differs: normal | pre
    width differs: 1423px | auto
    MozColumnGap differs: 12.8px | 13.7px
    overflowX differs: visible | auto
    overflowY differs: visible | auto
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When debugging browser-based apps using Google Chrome's Developer Tools, is there a way to
Here's what I need to do. I'm using Google Chrome. I have page that
I'm debugging my ASP.NET MVC 3 web app using Google Chrome Developer Tools, and
Note: I'm using Google Chrome Currently I have this test page http://www.evecakes.com/doodles/canvas_size_issue.htm It should
I would like to debug my javascript application using Google Chrome 3 's developer
When using Google Chrome, I want to debug some JavaScript code. How can I
Have just started using Google Chrome , and noticed in parts of our site,
My drupal site (internal) will not display the TinyMCE editor when using Google Chrome
When using a browser to transform XML (Google Chrome or IE7) is it possible
From what I gather, Google Chrome can run browser plugins written using NPAPI .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.