Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug CSS with Firebug for an element that only appears when clicked?

Tags:

css

firebug

I want to debug the CSS for a DHTML menu, but the element I want to debug is a submenu, so it only appears when the top element in the menu is clicked.

So I can't use that button on Firebug that shows the CSS for the next element clicked, because when I click on the top menu item it will show the CSS for that element, not its child, and if I expand the menu first and then click on the Firebug button the submenu disappears (it disappears when it loses focus).

Any tips on how to get out of this catch-22?

like image 557
rodbv Avatar asked Feb 08 '10 15:02

rodbv


1 Answers

Use firebug console command line to run click event. Like $('#menutab a').click(); If it's needed, you could also set breakpoint to avoid hidding.

Read more in firebug documentation

like image 73
Jan Dudulski Avatar answered Oct 16 '22 04:10

Jan Dudulski