Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE8 Developer Tools - add CSS style

Tags:

css

I use the Web Developer Toolbar in FireFox to test CSS-edits. I want to do the same in IE, and I can somewhat do that with IE8's Developer Tool.

However I can't add a style in Developer Tools, only edit existing styles - does any of you guys know of a way to edit the CSS like you can do with Chris Pedericks Web Developer Toolbar?

like image 672
timkl Avatar asked Jan 10 '10 17:01

timkl


2 Answers

You can:

  • add a style attribute (right click the html tag and click add attribute (with the name style, and then edit the style attribute once its added)
  • Click the CSS tab, right click the empty space, and add a rule (this is like adding a line to your css file)
like image 109
Gabriel McAdams Avatar answered Sep 26 '22 14:09

Gabriel McAdams


Adding to what Gabriel mentioned above.

For a quick addition to test and see the effect I do it a bit differently.

With the HTML tab selected choose the "Attributes" panel next to Style, Trace Styes and Layout.

Click the "+" button and begin typing the css style you would like to add. The new style attribute is added automatically in the DOM view panel.

Hope this helps.

like image 22
David Avatar answered Sep 22 '22 14:09

David