adding font awesome image to form_submit - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: adding font awesome image to form_submit (/showthread.php?tid=64827) |
adding font awesome image to form_submit - doomie22 - 03-30-2016 Hi there, I am just trying to add the fa-search image to the following button but I just cannot figure out how. PHP Code: <?php echo form_submit(array('id' => 'submit', 'value' => 'Search', 'class' => 'btn btn-default')); ?> Does anyone have any ideas please? Thanks, Doomie RE: adding font awesome image to form_submit - shellroot - 03-30-2016 I would do so: Code: <button type="submit" id="submit" class="btn btn-default"> attachment result image Sin título.png (Size: 1.24 KB / Downloads: 209) RE: adding font awesome image to form_submit - ivantcholakov - 03-30-2016 Code: <?php echo form_button(array('name' => 'form_submit', 'type' => 'submit', 'class' => 'btn btn-default', 'content' => '<i class="fa fa-search fa-fw"></i> Search')); ?> |