At times, we need to test many CSS values of an element on the page and look for a quick option to copy every attribute at once. Going to Styles tab in Dev Tools and copying 1 by 1 is a tedious thing.
You can follow below-mentioned steps to extract all the CSS for any selected element using Chrome Dev Tool in one shot:
1. Right-click on a DOM node in the Elements Panel
2. Select Copy > Copy styles
Sample for the image given below:
font-style: inherit;
font-family: "Open Sans",Helvetica,Arial,sans-serif;
font-size: 18px;
font-weight: 400;
color: #333;
display: inline-block;
max-width: 170px;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
white-space: nowrap;
text-decoration: none;
height: 24px;
line-height: 24px;
Comments
Post a Comment