[eluser]Ifan Yozari[/eluser]
I am using codeigniter and its pagination class. It has a problem and it looks something like this:
Quote: 1<br>
2<br>
next last
Here is my code for controller:
Quote: Code:
$this->db->select('*');
$this->db->from('subkategori');
$getData = $this->db->get('');
$a = $getData->num_rows();
$config['base_url'] = site_url().'/admin/seesubcategory/'; //set the base url for pagination
$config['total_rows'] = $a; //total rows
$config['per_page'] = '12'; //the number of per page for pagination
$config['uri_segment'] = 3; //see from base_url. 3 for this case
$this->pagination->initialize($config); //initialize pagination
$config['num_tag_open'] = '<div id="pagination">';
$config['num_tag_close'] = '</div>';
i have this code as my view:
Quote:Code:
<?php echo $this->pagination->create_links(); ?>
and here is my css:
Quote:Code:
#pagination a, #pagination strong {
background: #e3e3e3;
padding: 4px 7px;
text-decoration: none;
border: 1px solid #cac9c9;
color: #292929;
font-size: 13px;
}
#pagination strong, #pagination a:hover {
font-weight: normal;
background: #cac9c9;
display: inline-block;
}
can anyone tell me what i have to do to make the page link can be in one line.<br>
Thanks all for any help.