Results 1 to 4 of 4

Thread: Links appearing vertically in IE

  1. #1
    Join Date
    Jul 2007
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Links appearing vertically in IE

    Bit confused why this is happening...

    Code:
    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?
    Last edited by tech_support; 09-12-2007 at 07:01 AM.

  2. #2
    Join Date
    Jul 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #4
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    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..
    Hey new design new look, goto xudas for personal webdsign help.. (:

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •