Welcome Guest, Not a member yet? Register   Sign In
CSS for pagination links
#1

[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!
#2

[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">';
#3

[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!




Theme © iAndrew 2016 - Forum software by © MyBB