Autor | Zpráva | ||
---|---|---|---|
Michales Profil |
Ahoj všem,
prosím o radu jak upravit css, tak aby paginace, byla pod obrázky, viz.: http://testmichales.comehere.cz/web/show.php?region=o CSS style: http://testmichales.comehere.cz/web/style.css if (isset($_GET['region'])) { $where = 'WHERE region = "'.$_GET['region'].'"'; } $pole = $this->db('SELECT * FROM interprets '.$where.' ORDER BY name ASC LIMIT '.$pocet.' OFFSET '.$offset); for ($i=0; $i<count($pole); $i++) { $interpret = $pole[$i]; echo'<div class="card-left">'; echo '<a href="'.$this->domena.'?interpret='.$interpret['id'].'"><p class="card-photo"><img alt="'.$interpret['name'].'" width="150" height="150" src="images/'.$interpret['id'].'.png"></p>'; echo $interpret['name'].'</a>'; echo'</div>'; } $celkem_db = $this->db('SELECT COUNT(*) as pocet FROM interprets '.$where.''); $celkem = $celkem_db[0]['pocet']; $stran = ceil($celkem/$pocet); if ($stran > 0) { echo '<ul class="paginace">'; for ($i=0; $i<$stran; $i++) { echo '<li><a href="'.$this->domena.'?region='.$_GET['region'].'&stranka=interpreti&strana='.($i+1).'"> '.($i+1).'</a></li>'; } echo '</ul>'; } } Díky moc za pomoc. |
||
Taps Profil |
#2 · Zasláno: 28. 6. 2015, 19:45:49
Michales:
možná by stačilo přidat níže uvedené ul.paginace{ clear:both; } |
||
Michales Profil |
#3 · Zasláno: 28. 6. 2015, 21:11:23
Taps:
Ano to by stačilo, díky ;-) |
||
Časová prodleva: 10 let
|
0