Page 1 of 1

How to add an image to a html button (works in fbml too)

Posted: Sun Oct 03, 2010 5:38 pm
by Saman
Simple method:

Code: Select all

<input type="image" src="https://robot.lk/styles/prosilver_se/imageset/ROBOT.LK-logo3.png" alt="Submit button">
CSS method:

Code: Select all

<input type="button" value="Give Me Instant Access Now" style="background: url('https://robot.lk/styles/prosilver_se/imageset/ROBOT.LK-logo3.png'); height: 50px; font-size: 30px; font-weight: bold;">
CSS method has more control. Both methods are working fine in fbml (At least on FBML test console).

Re: How to add an image to a html button (works in fbml too)

Posted: Wed Mar 02, 2011 9:06 am
by Face
Thanks saman.This thing works with FBML :)