How to style the SharePoint "Site Actions Menu" with Firebug

The site actions menu in SharePoint is generated automatically by JavaScript so you cannot look at the source code which classes are used to style the menu. I often use Firebug to check the classes and manipulate on the fly the css. But this is hard to do with the site actions menu because it disapears after a while. A little trick helps here (works in SP2010 and SP2007) Open the site in Firefox and open Firebug. Click the selection arrow and select the "Site Action" menu. Firebug Objekt Picker You will see a html code like show above. An <a> Tag surrounded by a <span> or <div>. The trick is to copy the onclick code of the <span> or <div> tag. The javascript code can vary in each enviroment. The code can be easily copied from firebug or from the html code. In my case the code is: In SP 2010 CoreInvoke('MMU_Open',byid('zz8_FeatureMenuTemplate1'), MMU_GetMenuFromClientId('zz16_SiteActionsMenu'),event,f...