CodeIgniter Forums
Styling anchor - 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: Styling anchor (/showthread.php?tid=66042)



Styling anchor - davy_yg - 08-27-2016

Hello,

I have a question about style this CI codes.  How to style the link ID, Content Name, etc.

I would like to take off the underline and change the font color into black.  I already try to add css to <td> and it does not change the font.  I know css but do not know how to integrate it with CI codes.  Please help.

views/contents.php


PHP Code:
<table border="0" style="width: 100%; height: 90px;">
                            <tr>
                                <td><?php echo anchor('''ID'); ?></td>
                                <td><?php echo anchor('''CONTENT NAME'); ?></td>
                                <td><?php echo anchor('''CREATE DATE'); ?></td>
                                <td><?php echo anchor('''EDIT'); ?></td>
                                <td><?php echo anchor('''DELETE'); ?></td>    
                            </tr> 



RE: Styling anchor - ciadmin - 08-28-2016

Have you tried anchor('', 'ID', array('style' => 'font-color:black')) ?

See http://www.codeigniter.com/user_guide/helpers/url_helper.html#anchor


RE: Styling anchor - InsiteFX - 08-28-2016

Simple CSS coding Gee