CodeIgniter Forums
CSS for pagination links - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: CSS for pagination links (/showthread.php?tid=37488)



CSS for pagination links - El Forum - 01-11-2011

[eluser]bertcarremans[/eluser]
Hi,

I am trying to create some CSS for the pagination links on my website, but unfortunately I can't get it to work.

In my controller I put

Code:
$config['num_tag_open'] = '<span class="pg_digit_link>';
$config['num_tag_close'] = '</span>';

and when I check the generated HTML code I see

Code:
... some code ...
<span class="pg_digit_link><... "http://localhost/smeets/index.php/site/voorraad/12">2</a></span>
... some code ...

in my CSS I put

Code:
.pg_digit_link {
    border:1px solid #CDCDCD;
    padding:5px;
}

But when I check in Firebug, I see the following code

Code:
<span class="pg_digit_link><... 12="" voorraad="" site="" index.php="" smeets="" localhost="" http://="">2</span>



Does anyone know whether this is normal, because I think the CSS does not work because the a tag is not ended.

PS: I replaced the anchor tags with ... because apparently we are not allowed to add links anymore.

Thanks!


CSS for pagination links - El Forum - 01-11-2011

[eluser]sean_THR[/eluser]
Code:
$config['num_tag_open'] = '<span class="pg_digit_link>';

You didn't close your class attribute:

Code:
$config['num_tag_open'] = '<span class="pg_digit_link">';



CSS for pagination links - El Forum - 01-11-2011

[eluser]bertcarremans[/eluser]
Oh dear Wink

Thanks for that Sean_THR!!!
After gazing hours at the screen you don't see these dumb mistakes anymore.
Thanks!