Need help with code having issues.

Discussion in 'HTML & Website Design' started by paidhosting, May 5, 2007.

  1. #1
    Hello,
    I am trying to stretch my site www.h-log.com and am trying to put witdh as 100% instead of defined width so it adapts according to users resolutions.

    But right now this code controls the width :

    <table height="62" border="0" cellpadding="0" cellspacing="0" style="padding-top:2px; margin-left:0px; padding-left:5px; clear:both; width:680px; margin-left:7px;">

    Now when i put and code it like this

    <table height="62" border="0" cellpadding="0" cellspacing="0" style="padding-top:2px; margin-left:0px; padding-left:5px; clear:both; width:100%; margin-left:7px;">

    It does not work at all , the width: 100% is not working that is , but i have in another place using css for div which uses the width :100% code and it works but not inline code on the main page .

    Any ideas how i can go about it ?

    Thanks
     
    paidhosting, May 5, 2007 IP
  2. clicyu

    clicyu Peon

    Messages:
    22
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In that css file u use it now add:
    table{
    width: 100%;
    }
    and remove width from html for table.
     
    clicyu, May 6, 2007 IP
  3. kkoder2007

    kkoder2007 Peon

    Messages:
    172
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try this:

    <table width=100% height="62" border="0" cellpadding="0" cellspacing="0" style="padding-top:2px; margin-left:0px; padding-left:5px; clear:both; margin-left:7px;">
     
    kkoder2007, May 6, 2007 IP
  4. paidhosting

    paidhosting Peon

    Messages:
    4,822
    Likes Received:
    483
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks guys, i managed to fix it, just changed table width for another line / code.

    Cheers
     
    paidhosting, May 6, 2007 IP