[SalesForce] How to add icon of tab to layout

I'm trying to mimic standard approval page and to be even more similar to origin I want to add icon of approving object. What element I need to add or what attribute to put?

Best Answer

There is a visualforce <apex:SectionHeader> element that displays default header with icon. Alternatively you can use some css magic, find the icons you're interested in with your browser's inspector tool (make sure to look after inside the css, not the src attribute, see the picture below) and use it as you like. Good luck!

img source

Related Topic