SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast navtej's Avatar
    Join Date
    May 2006
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    problem making table height maximum in IE

    Hi anybody
    have clue how to make a table height 100% cause height=100% not working in ie though the same is working in fireox here is the sample code ,what I am tring to do make the table with consentrate here to appear as is appearing in fireox.

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
    <title>Untitled Page</title>
    </head>
    <body>
    <form id="form1" runat="server">
    <table border="1">
    <tr>
    <td valign='top' height='100%'> <table border='1' cellpadding='0' width='150' height="150">

    <tr><td colspan="2" align="center">
    <img id='Img3' src=' + MainSitePath + "Admin/images/user_images/ + image + ' border='0' Class='drag' width='75' height='75'/>
    </td></tr>
    <tr><td colspan="2" class='blueText' align="center"> + name.ToString() + </td></tr><tr><td class='SmallText' colspan="2" align="center">Price :$ + price + "</td></tr>
    <tr valign="bottom"><td valign="bottom"><input type='image' value='View' id='Image5' OnClick='return ViewSearchItem(\"" + ds.Tables[0].Rows[i]["item_id"].ToString() + "\",event)' src=" + strPath + /Templates/uc/Images/view1.gif\" /></td>
    <td valign="bottom"><input type='image' value='Add to Cart' id='Image6' OnClick='return Item_Details(\"A\",\"I_" + ds.Tables[0].Rows[i]["item_id"].ToString() + "\")' src=\"" + strPath + "/Templates/uc/Images/add-to-cart.gif\" /></td></tr>


    </table></td>


    <td valign=top height='100%'><table border='1' cellpadding='0' height='100%'>

    <tr><td colspan="2">
    <img id='Img4' src=' + MainSitePath + "Admin/images/user_images/ + image + ' border='0' Class='drag' width='75' height='75'/>
    </td></tr>
    <tr><td colspan="2" class='blueText'> CONSENTARTE HERE</td></tr><tr><td class='SmallText' colspan="2"></td></tr>
    <tr><td><input type='image' value='View' id='Image7' OnClick='return ViewSearchItem(\"" + ds.Tables[0].Rows[i]["item_id"].ToString() + "\",event)' src=" + strPath + /Templates/uc/Images/view1.gif\" /></td>
    <td><input type='image' value='Add to Cart' id='Image8' OnClick='return Item_Details(\"A\",\"I_" + ds.Tables[0].Rows[i]["item_id"].ToString() + "\")' src=" + strPath + /Templates/uc/Images/add-to-cart.gif" /></td></tr>


    </table></td>


    <td valign='top' height='100%'> <table border='1' cellpadding='0' width='150' height=100%>

    <tr><td colspan="2" align="center">
    <img id='Img5' src=' + MainSitePath + "Admin/images/user_images/ + image + ' border='0' Class='drag' width='75' height='75'/>
    </td></tr>
    <tr><td colspan="2" class='blueText' align="center">sd ds s d sd s d sd s d s d s d sd s d s d sd s d s d s d s d s d s d s d s d sd s d s d s d s d sd s d s d sd s d sd s d + name.ToString() + </td></tr><tr><td class='SmallText' colspan="2" align="center">Price :$ + price + "</td></tr>
    <tr valign="bottom"><td valign="bottom"><input type='image' value='View' id='Image9' OnClick='return ViewSearchItem(\"" + ds.Tables[0].Rows[i]["item_id"].ToString() + "\",event)' src=" + strPath + /Templates/uc/Images/view1.gif\" /></td>
    <td valign="bottom"><input type='image' value='Add to Cart' id='Image10' OnClick='return Item_Details(\"A\",\"I_" + ds.Tables[0].Rows[i]["item_id"].ToString() + "\")' src=\"" + strPath + "/Templates/uc/Images/add-to-cart.gif\" /></td></tr>


    </table></td>
    </tr></table>
    </form>
    </body>
    </html>

  2. #2
    SitePoint Wizard silver trophybronze trophy Nadia P's Avatar
    Join Date
    Oct 2004
    Location
    NSW Australia
    Posts
    3,564
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    100% table height is invalid code. It normally works if you don't use a valid and full doctype (usually IE).

    Take a look at this article it may help:
    http://apptools.com/examples/tableheight.php

    Nadia

  3. #3
    SitePoint Enthusiast navtej's Avatar
    Join Date
    May 2006
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks nadia height="100px" works !


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
  •