+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Tables reaching Top and Bottom

  1. #1
    N2PGames's Avatar
    N2PGames is offline x10 Sophmore N2PGames is an unknown quantity at this point
    Join Date
    Feb 2006
    Posts
    235

    Question Tables reaching Top and Bottom

    Over the years i was never able to make a html version of a website thats why i never made any of my PSD Images into a usable theme but now i have learned that all it takes is tables :D but i want to make the top of the webiste and the footer of the website reach the top and bottom of the website

    heres a easer way to explain what i want



    is their any simple codes for this?

    thnx.
    Last edited by N2PGames; 04-03-2007 at 03:20 AM.

  2. #2
    Zenax's Avatar
    Zenax is offline Lord Of The Keys Zenax is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    The Brilliant United Kingdom
    Posts
    1,339

    Re: Tables reaching Top and Bottom

    There aint any diffence in those pictures! well as far as I can tell there aint!

    And to create the code, you simple, have to slice the image up into the relevant parts, and then code it so that they sit as the background image of the cell, or as the image contained within the cell.

    Regards,
    Zenax
    Last edited by Zenax; 04-03-2007 at 08:13 AM.
    Regards,
    Zenax

  3. #3
    N2PGames's Avatar
    N2PGames is offline x10 Sophmore N2PGames is an unknown quantity at this point
    Join Date
    Feb 2006
    Posts
    235

    Re: Tables reaching Top and Bottom

    the one on the left has spaces on the top and bottom... and the one of the right forces the website top abd bottom to reach the top/bottom of the browser no matter how big or small it is

    i know how to code it now :D but i want the header and footer to be resized by the users resolution

    if the website was designed on for ex 800x600 a user on 1600x1200 will have the websites footer/ body reach the end of the browser if you view the game by right click > view image

    you'll see what i mean :D

  4. #4
    Zenax's Avatar
    Zenax is offline Lord Of The Keys Zenax is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    The Brilliant United Kingdom
    Posts
    1,339

    Re: Tables reaching Top and Bottom

    if you want it to fit the users resolution, then you have to code it so the widths are done in percentages. That way when ever you resize the width is set to that percentage of the screen.

    15% = 15% on all screen resolutions.

    Regards
    Zenax
    Regards,
    Zenax

  5. #5
    Chris Z's Avatar
    Chris Z is offline x10 Spammer Chris Z is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Alabama, USA
    Posts
    2,802

    Re: Tables reaching Top and Bottom

    yup, Zenax is right, so if you want to do table width's in percentages or w/e, you'd do
    HTML Code:
    <table style="width:15%;">
    you can also use this on <tr>'s and <td>'s
    Last edited by Chris Z; 04-04-2007 at 07:24 AM.
    -Chris Z
    Retired Account Manager


  6. #6
    t2t2t's Avatar
    t2t2t is offline x10 Elder t2t2t is an unknown quantity at this point
    Join Date
    Sep 2006
    Location
    Europe, Estonia
    Posts
    690

    Re: Tables reaching Top and Bottom

    Quote Originally Posted by Chris Z View Post
    yup, Zenax is right, so if you want to do table width's in percentages or w/e, you'd do
    HTML Code:
    <table style="width:15%;">
    you can also use this on <tr>'s and <td>'s
    only good idea to use height(because he is talking about height) for table, is if you have only one free-height row:

    HTML Code:
    <table style="height:100%; width:400 px;">
    <tr style="height:200px;">
    <td>Header</td>
    </tr>
    <tr> <!-- Free height, will be [height of window] - [fixed heights] -->
    <td>Content</td>
    </tr>
    <tr style="height: 100px;">
    <td>Footer</td>
    </tr>
    </table>
    This should work... (Not guaranteed)
    This post has been marked spam 52 times.


  7. #7
    N2PGames's Avatar
    N2PGames is offline x10 Sophmore N2PGames is an unknown quantity at this point
    Join Date
    Feb 2006
    Posts
    235

    Re: Tables reaching Top and Bottom

    Thanks for all the help from everyone but, I still have that issue

    I'll upload the HTML file so you all can see what I'm talking about :D

    heres how i want mine to act :
    Code:
    http://www.clantemplates.com/templates/frontline:fieldsofthunder_obscurity/
    Attached Files
    Last edited by N2PGames; 04-04-2007 at 04:32 PM.

  8. #8
    Chris Z's Avatar
    Chris Z is offline x10 Spammer Chris Z is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Alabama, USA
    Posts
    2,802

    Re: Tables reaching Top and Bottom

    Quote Originally Posted by Chris Z View Post
    yup, Zenax is right, so if you want to do table width's in percentages or w/e, you'd do
    HTML Code:
    <table style="width:15%;">
    you can also use this on <tr>'s and <td>'s
    Quote Originally Posted by t2t2t View Post
    only good idea to use height(because he is talking about height) for table
    ya..sorry about that, i was thinking about the way i usually use it, i have never used percentages for height
    -Chris Z
    Retired Account Manager


  9. #9
    N2PGames's Avatar
    N2PGames is offline x10 Sophmore N2PGames is an unknown quantity at this point
    Join Date
    Feb 2006
    Posts
    235

    Re: Tables reaching Top and Bottom

    I figured out the how to make the top header reach the top :D

    But the footer still doesn't

    In Dreamweaver i selected all teh tables and did the Page Props

    and put 1 in Top margin= 1, and Bottom margin= 1

    the top part works but the bottom still doesn't reach down
    Last edited by N2PGames; 04-04-2007 at 05:40 PM.

  10. #10
    Chris Z's Avatar
    Chris Z is offline x10 Spammer Chris Z is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Alabama, USA
    Posts
    2,802

    Re: Tables reaching Top and Bottom

    try more than 1 for the bottom margin, see if it does anything
    -Chris Z
    Retired Account Manager


+ Reply to Thread
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers