Welcome Guest, Not a member yet? Register   Sign In
Styling anchor
#1

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> 
" If I looks more intelligence please increase my reputation."
Reply
#2

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

See http://www.codeigniter.com/user_guide/he...tml#anchor
Reply
#3

Simple CSS coding Gee
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB