Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question how to set height to html table????

    Hi,

    I used nested table.Inside one table cell <td> i used other table ...I want to set height of that table 100% to <td> which contains this table

    Thanks .

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,851
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Quote Originally Posted by user123 View Post
    Hi,

    I used nested table.Inside one table cell <td> i used other table ...I want to set height of that table 100% to <td> which contains this table

    Thanks .
    Oh...NO! Know why using tables for layout is very bad!
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by abduraooft View Post
    I know this .....but for my condition table layout is necessary ....actually I tried with this height property ,it works in IE and firefox...but google crome not recognize table height property.

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,851
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    .but google crome not recognize table height property
    So what's your point in sticking with that? Nothing to wonder when a modern browser doesn't follow a deprecated rule.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #5
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by abduraooft View Post
    So what's your point in sticking with that? Nothing to wonder when a modern browser doesn't follow a deprecated rule.
    so is there any other solution for this...???
    actually i want to do vertically partition of <TD> OR suppose <DIV > into 2 parts.
    first part's height depends upon the contents .
    and in second part ,I want to align text bottom of that second part.
    how to do that??

    Thanks in advance.

  • #6
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Quote Originally Posted by user123 View Post
    I know this .....but for my condition table layout is necessary ....actually I tried with this height property ,it works in IE and firefox...but google crome not recognize table height property.
    Your condition? Geez, I hope I never catch that disease... Table-itis Necrosis.

    Anyway, if you're sticking with the garbage table layout method (not that there is anything wrong with that) then have you at least tried applying CSS height to the table? You could do it with "inline" CSS which looks like this:
    Code:
    <table style="height:100%;">
    But at this point I'm only able to guess at what's in the page right now. Really, tell us what you have tried that isn't working so we don't end up walking in circles around this...
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting


  •  

    Posting Permissions

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