Center Table Horizontally

Discussion in 'ASP .Net Web Controls' started by Thom Little, Jul 19, 2004.

  1. Thom Little

    Thom Little Guest

    I need to have a table centered horizontally on an aspx page. I would
    assume that setting the
    HorizontalAlign property of the table to Center would do what I want. It
    does not. After fiddling with it for quire a while (without success) I have
    to ask ...



    What's the"trick" for centering a table horizontally on a .aspx page in
    Visual Studio .NET 2003?

    --
    -- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd.
    --
    Thom Little, Jul 19, 2004
    #1
    1. Advertising

  2. Thom Little

    Jos Guest

    Thom Little wrote:
    > I need to have a table centered horizontally on an aspx page. I would
    > assume that setting the
    > HorizontalAlign property of the table to Center would do what I want.
    > It does not.


    It does not in the designer, but it does in the resulting page.
    If not, change the page to FlowLayout.

    --

    Jos
    Jos, Jul 19, 2004
    #2
    1. Advertising

  3. Thom Little

    Thom Little Guest

    That's exactly what I needed. That solution (turn on FlowLayout) would
    never have dawned on me.

    Thanks for the help.

    --
    -- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd.
    --

    "Jos" <> wrote in message
    news:%...
    > Thom Little wrote:
    > > I need to have a table centered horizontally on an aspx page. I would
    > > assume that setting the
    > > HorizontalAlign property of the table to Center would do what I want.
    > > It does not.

    >
    > It does not in the designer, but it does in the resulting page.
    > If not, change the page to FlowLayout.
    >
    > --
    >
    > Jos
    >
    >
    Thom Little, Jul 19, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stuart Miller
    Replies:
    5
    Views:
    432
    Stuart Miller
    Jun 25, 2004
  2. Haydn Williams

    Sorting datalist records horizontally

    Haydn Williams, Sep 9, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    591
    Frank Mamone
    Sep 9, 2004
  3. shank

    line up images horizontally

    shank, Oct 1, 2003, in forum: HTML
    Replies:
    7
    Views:
    903
    brucie
    Oct 1, 2003
  4. David Stiles

    center image horizontally??

    David Stiles, Nov 19, 2005, in forum: HTML
    Replies:
    11
    Views:
    1,040
    dorayme
    Nov 21, 2005
  5. Scott
    Replies:
    5
    Views:
    1,408
    Jan C. Faerber
    Oct 29, 2009
Loading...

Share This Page