Devin Rhode
Devin Rhode

Reputation: 25267

How to implement temporary edits

In the chrome developer tools here,

alt text

You can double click and edit these properties,

After editing, if I want my chrome extension to change 'padding-left' to 16px I use this line:

$('.tsf-p').css('padding-left', '16px');

What code would I use to change the position field to inherit?

Upvotes: 0

Views: 58

Answers (1)

Mike Samuel
Mike Samuel

Reputation: 120486

$('.tsf-p').css({ 'padding-left': '16px', 'position': 'inherit' }); should do it.

Upvotes: 1

Related Questions