-1
I want to leave paginations in the center of the div and grow centrally, but this div has to be fixed so I thought to leave inside another div
relative inside other relative does not fit with the content size, when placing "max-width:100%, width:auto" even if there is little content it will show the value of max-width.
placing relative inside a Fixed does not center already lost a lot of time in it and I’m with a horrible system without hard drive
<?php
function paginacoes() {
echo "<center>";
echo "<div style='background:black;
color: white;
width:auto;
height: 18px;
border: 3px solid blak;
position: relatived; or fixed;
top: 100px;
max-width:90%;
'>";
$i=1;
while($i !=26) {
echo "<div style='background:black;
color: white;
padding-left: 10px;
padding-right: 10px;
height: 18px;
float: left;
border: 3px solid blak;
position: relative;
'>$i</div>";
$i++;
}
echo "</div>";
echo "</center>";
}
paginacoes();
?>
Happy New Year!