www.webdeveloper.com
Results 1 to 5 of 5

Thread: Variable size tables?

  1. #1
    Join Date
    May 2003
    Posts
    373

    Question Variable size tables?

    I'm transferring a page from a framed format to a tabled format, but I'm running into a problem.

    How can you dynamically size a table so they work like frames? You know...with frames you can say (30,*,30), but how in cyberspace can you do that with tables?!

    Thanx muchly!!!

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Code:
    <table width="100%">
      <tr>
        <td width="30">&amp;nbsp;</td>
        <td>&amp;nbsp;</td>
        <td width="30">&amp;nbsp;</td>
      </tr>
    </table>
    Though many would say that tables are not for layout...

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  3. #3
    Join Date
    May 2003
    Posts
    373
    What would be the alternative to using tables for layout...keeping in mind not wanting to use frames either?

    Thanx.

    I would also like to make a comment on assistance through this forum.

    I've participated in many different forums on many different channels on many different sites, but I must say that this is the site in which I've received the most "educated" help and in the fastest amount of time. I just want to give everyone a big pat on the back for being both knowledgeable and quick to help others.

    Thanx again.

  4. #4
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270

    Re: Variable size tables?

    Originally posted by stmasi
    I'm transferring a page from a framed format to a tabled format...
    From the HTML 4.01 Specification
    Tables should not be used purely as a means to layout document content as this may present problems when rendering to non-visual media. Additionally, when used with graphics, these tables may force users to scroll horizontally to view a table designed on a system with a larger display. To minimize these problems, authors should use style sheets to control layout rather than tables.
    http://www.w3.org/TR/html4/struct/tables.html#h-11.1
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  5. #5
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Originally posted by stmasi
    What would be the alternative to using tables for layout...
    That is what CSS is for. http://www.w3.org/Style/CSS/

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles