Log in

View Full Version : Links appearing vertically in IE



e1seix
09-11-2007, 05:21 PM
Bit confused why this is happening...



echo "<table class='pag_table'>";
echo "<tr><td>";
$limitrow = $_GET['startrow'];

$max = intval($numrows/$limit);

if ($numrows&#37;$limit) {
// has remainder so add one page
$max++;
}

if ($startrow>=2) {

echo '<a href="'.$_SERVER['PHP_SELF'].'?Cat='.$_GET['Cat'].'&startrow='.($startrow-$limit).'"><img src="/PREV.gif" /></a>';

}

if ($limitrow<(($max*$limit)-$limit)) {
// not last page so give NEXT link

echo '<a href="'.$_SERVER['PHP_SELF'].'?Cat='.$_GET['Cat'].'&startrow='.($startrow+$limit).'"><img src="/NEXT.gif" /></a><br /><br />';
}
echo "</td></tr>";

echo "<tr><td>";
print '<div id="pagmenu">';

$startrow = $_GET['startrow'];
$mid = ($startrow/$limit);
$result = ($mid+1);

echo "Page ".$result." of ".$max."<br /><br />";

print "</div>";
echo "</td></tr>";

echo "<tr><td>";
print '<span class="nummenu2">';

$max = intval($numrows/$limit);

if ($numrows%$limit) {
// has remainder so add one page
$max++;
}

for ($i=1;$i<=$max;$i++) {
echo '| <a href="'.$_SERVER['PHP_SELF'].'?Cat='.$_GET['Cat'].'&startrow='.($limit*($i-1)).'">'.$i.'</a> |';
}

print "</span>";
echo "</td></tr>";
echo "</table>";

It seems to stack every digit vertically ie.

|
1
||
2
||
3
|

instead of | 1 | 2 | 3 |

why is this? it works fine in Firefox, but not in IE. what could be causing it?

littleEd
09-22-2007, 04:27 PM
i'm not fully sure here...

however at the beginning and end of your echo command... i see you have a "|"
thats why you are getting 2 in a row then a number.


Perhaps the width of the div/span they are in is not wide enough so its forcing it to go to the next line?

djr33
09-22-2007, 07:51 PM
This is an issue with the output code (maybe from the PHP, but not directly related to it), so we'd need to see that.
Link to your page, please.

insanemonkey
09-22-2007, 07:56 PM
It has something todo with your css file, becuase you are using div, and span classes, so look at your css file or post your url..