www.webdeveloper.com
Results 1 to 8 of 8

Thread: tables

  1. #1
    Join Date
    May 2003
    Posts
    3

    tables

    ok im having some trouble with tables i want the text to be alignd across the top of the cell instead of the centre.or atleast be list left to right top down

  2. #2
    Join Date
    Nov 2002
    Posts
    4,473
    Table cells can be defined as
    Code:
    align="center"
    align="left"
    align="right"
    valign="top"
    valign="center"
    valign="bottom"
    The default for a TD is top left. The default for a TH is top center.

  3. #3
    Join Date
    May 2003
    Posts
    3
    that didnt work if i can make any more specific i want to align the text INSIDE of the cell to the top center here a sample of my current code

    <html>
    <head><title></title></head>
    <TABLE>
    <CAPTION></CAPTION>

    <TR>
    <Td><u>Links</u></Td>
    <Td><IFRAME SRC="index3.html" FRAMEBORDER="0"></IFRAME>
    </Td>

    </TR>


    </html>

  4. #4
    Join Date
    Nov 2002
    Posts
    4,473
    Code:
    <td align="center" valign="top"><u>Links</u></td>
    You did not indicate which cell you wanted to adjust, so I assumed it was the only one with text in it. You will not see any benefit to the centering since the TD is sized to the content.

  5. #5
    Join Date
    May 2003
    Posts
    3
    that work ty
    Last edited by xdeltax; 05-04-2003 at 10:22 AM.

  6. #6
    Join Date
    Jan 2003
    Location
    Jersey Girl
    Posts
    1,198
    ummm...
    i learned it as:

    align="center"
    align="left"
    align="right"
    valign="top"
    valign="middle"
    valign="bottom"

    are both ok
    k

  7. #7
    Join Date
    Nov 2002
    Posts
    4,473
    Good catch, Khaki!

    According to W3C recommendations (http://www.w3.org/TR/html4/struct/tables.html#alignment ), valign can be any of the following:
    Code:
    top|middle|bottom|baseline
    and align can be:
    Code:
    left|center|right|justify|char

  8. #8
    Join Date
    Jan 2003
    Location
    Jersey Girl
    Posts
    1,198
    Good catch, Khaki!
    well... as I've said on a number of occassions here in these forums...

    With 2 older brothers... I can catch pretty well...
    but I do throw like a girl (I just can't help that. lol)

    not center...
    not middle...
    not even all the way to the right..
    but just to the left of that...
    just a bit...
    but not too much...
    k

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