Page not OK in IE but Ok in Firefox. Please Help + Rep

Discussion in 'HTML & Website Design' started by haynesey, Jul 25, 2007.

  1. #1
    haynesey, Jul 25, 2007 IP
  2. DidierE

    DidierE Well-Known Member

    Messages:
    1,815
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    145
    #2
    Instead of using % use a fixed value for your tables.

    So this:

    will become this:

    Hope it helps ;)
     
    DidierE, Jul 25, 2007 IP
    haynesey likes this.
  3. haynesey

    haynesey Peon

    Messages:
    1,677
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you. Do you know what width i need? Roughly?
     
    haynesey, Jul 25, 2007 IP
  4. DidierE

    DidierE Well-Known Member

    Messages:
    1,815
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    145
    #4
    hmmm...
    Try 693
     
    DidierE, Jul 25, 2007 IP
  5. haynesey

    haynesey Peon

    Messages:
    1,677
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    0
    #5
    OK Will try later, rep added :)
     
    haynesey, Jul 25, 2007 IP
  6. DidierE

    DidierE Well-Known Member

    Messages:
    1,815
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    145
    #6
    Thanks!
    I hope it solved your problem
     
    DidierE, Jul 25, 2007 IP
  7. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #7
    You may also want to just ease up on the tables - using tables for a single column is a /fail/... using tables for a single TD is an even BIGGER fail.

    VALIDATING your code may also be of great assistance - though if I was to guess as to the reason for the behavior in IE, it's on line 113.

    <table width="100%" cellspacing="0" cellpadding="4" border="0" align="center">
    <tr><td valign="top" width="200">


    You are telling it to ONLY be 200px wide... frankly I'm trying to figure out why it isn't only 200px wide in other browsers.... remove that width="200" and you should be fine.

    Either way it's in desparate need of code reduction as you've got probably four times the html that's needed for that layout from wrapping tables around EVERYTHING - *** NOTE *** I'm not saying don't use tables for layout like some other people, but looking at your site it only needs one table to make the columns, not the eight or so you are using.

    for example where you have:
    
    <table border="0" width="100%" cellspacing="1" cellpadding="4" class="tborder">
    <tr>
    <td class="thead"><strong>StakeAShark.Com</strong></td>
    </tr>
    <tr>
    <td class="trow2">
    
    <!-- add some stuff here: -->
    
    StakeAShark.Com provides the ultimate online poker
    staking experience. Incorporating the security of a full
    database of results of previous stakes showing money
    won, return on investment and the amount of stakes the
    user has completed.
    
    <!-- stop adding here :p -->
    
    
    </td>
    </tr>
    </table>
    
    Code (markup):
    That's a total waste as there is NO REASON to be using a table there. Even IF you kept the table, you should be classing the table NOT the TD since you should be using a TH instead of a class and presentational markup for the header, leaving only one TD in the html.... Not that a table for a single column is EVER worth the waste of code - That should probably simply be:

    
    <div class="content_box">
    	<h2>StakeAShark.Com</h2>
    	<p>
    		StakeAShark.Com provides the ultimate online poker
    		staking experience. Incorporating the security of a full
    		database of results of previous stakes showing money
    		won, return on investment and the amount of stakes the
    		user has completed.
    	</p>
    </div>
    
    Code (markup):
    Which is ALL the HTML you need for that section.
     
    deathshadow, Jul 25, 2007 IP