Welcome Guest, Not a member yet? Register   Sign In
[SOLVED]Pagination Current Link issue
#1

[eluser]Marlbor0[/eluser]
Hello,
I have a pagination working on a sandbox blog site http://wips.net.br/johnny/blog/main/content/
i use custom configs on the pagination:
Code:
$config['cur_tag_open'] = '<li>';
        $config['cur_tag_close'] = '</li>';
        $config['next_tag_open'] = '<li>';
        $config['next_tag_close'] = '</li>';
        $config['prev_tag_open'] = '<li>';
        $config['prev_tag_close'] = '</li>';
        $config['first_link'] = FALSE;
        $config['last_link'] = FALSE;
        $config['num_tag_open'] = '<li>';
        $config['num_tag_close'] = '</li>';
But as you can see on the website the current page link is out of order, its after the 'next' link.
Is anything wring with my code?
Thanks alot.
#2

[eluser]byde[/eluser]
Your CI code is ok but you have to work with CSS

you have this
Code:
.templatemo_paging ul li a { float: left; display: block; color: #666; text-decoration: none; margin-right: 5px; padding: 5px 10px; background-color: #ccc; border: 1px solid #999; }
It says that its going to be at left, in the other hand you also have
Code:
.templatemo_paging ul li { margin: 0; padding: 0; display: inline }
it doesnt have float attibute, and your final print is:

Code:
<div class="templatemo_paging">
<ul>
<li>1</li>
<li><a >2</a></li>
<li><a >3</a></li>
<li><a >&gt;</a></li>
</ul>
<div class="cleaner"></div>
</div>
my advice is:

Code:
.templatemo_paging ul li a {  text-decoration: none; background-color: #ccc; }
.templatemo_paging ul li { float: left; display: block; color: #666; margin: 0; padding: 0; margin-right: 5px; padding: 5px 10px; border: 1px solid #999; }

This may help you but im sure your CI code is ok.
#3

[eluser]Marlbor0[/eluser]
Hey Byde that fixed it, i downloaded this template and well....its a free one :p
Thanks alot for your help.




Theme © iAndrew 2016 - Forum software by © MyBB