www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Server-Side Development > PHP

    PHP Discussion and technical support for using and deploying PHP based websites.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 05-03-2007, 12:24 PM
    oo7ml oo7ml is offline
    Registered User
     
    Join Date: Jul 2006
    Posts: 466
    Why oh Why oh Why...

    If you look at he code below you can see that 1 image is shown if the user is not logged in, and if the user is logged in different images are shown, however, all of this is working perfect, but when i check the site out in IE the yes.jpg & no.jpg are not centered but in FF they are perfect. Can anyone fiqure this out...

    PHP Code:
    <?php   
                
    if (!isset($_SESSION['loggedIn_s']))
                echo
    ' <tr>
        <td align=center><a href="sign.php" target="_self"><img src=Images/headers/well_then.jpg width=490 height=55 border=0></a></td>
        </tr>'
    ;
             else
                echo
    '<tr>
        <td width=50 align=center><img src=Images/yes.jpg width=100 height=55></td>
        <td width=50 align=center><img src=Images/no.jpg width=100 height=55></td>
      </tr>'
    ;
                  
    ?>
    Reply With Quote
      #2  
    Old 05-03-2007, 01:15 PM
    hastx's Avatar
    hastx hastx is offline
    Registered User
     
    Join Date: May 2003
    Posts: 421
    differences in browser rendering are usually due to styles...
    __________________
    We do precision guesswork
    Reply With Quote
      #3  
    Old 05-03-2007, 01:22 PM
    NogDog's Avatar
    NogDog NogDog is offline
    High Energy Magic Dept.
     
    Join Date: Aug 2004
    Location: Ankh-Morpork
    Posts: 14,009
    In the if condition you output a table row with one cell of width 490, while in the else condition you output a table row with two cells, each of only 50 width. Not knowing exactly what effect you want and not having a link to the actual end result, it's hard to know exactly what you are after; but I'm certainly not surprised that they do not consistently give the same result.
    __________________
    "That's what the gods are! An answer that will do! Because there's food to be caught and babies to be born and life to be lived and so there is not time for big, complicated, and worrying answers! Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be." -- from Nation, by Terry Pratchett
    freelancer.internet.com
    Email me
    Reply With Quote
      #4  
    Old 05-03-2007, 02:22 PM
    oo7ml oo7ml is offline
    Registered User
     
    Join Date: Jul 2006
    Posts: 466
    your a genious, well you know what i mean, thanks a million...
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 04:07 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.