How to align table with some left padding?

Discussion in 'ASP .Net' started by RA, Feb 19, 2004.

  1. RA

    RA Guest

    Hi

    When I create a table and aligned it to the left, how can I have some
    padding added from the left so that the user will see the table border on
    the left? I don't want to use the vs style builder.


    Thanks
    RA, Feb 19, 2004
    #1
    1. Advertising

  2. RA

    Jon Guest

    Hi,
    you can either set a left margin on the table
    #yourTable{
    margin-left:20px;
    }
    <table id="yourTable"....
    or set padding/margin on the containing element (body/table cell etc)
    body{
    padding:0;
    margin-left:20px;
    }
    <table......

    Jon

    "RA" <> wrote in message
    news:...
    > Hi
    >
    > When I create a table and aligned it to the left, how can I have some
    > padding added from the left so that the user will see the table border on
    > the left? I don't want to use the vs style builder.
    >
    >
    > Thanks
    >
    >
    Jon, Feb 19, 2004
    #2
    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. Kay
    Replies:
    2
    Views:
    7,122
  2. Mark Parnell

    Re: <table align=left>

    Mark Parnell, May 31, 2005, in forum: HTML
    Replies:
    1
    Views:
    422
    solitaire
    Jun 5, 2005
  3. DU

    Re: <table align=left>

    DU, May 31, 2005, in forum: HTML
    Replies:
    2
    Views:
    515
    Lauri Raittila
    Jun 4, 2005
  4. Paul Lautman

    left align within centre align

    Paul Lautman, Mar 3, 2006, in forum: HTML
    Replies:
    3
    Views:
    552
    Paul Lautman
    Mar 3, 2006
  5. =?iso-8859-1?q?Jean-Fran=E7ois_Michaud?=

    Help on table align on left of page vs left hanging indent

    =?iso-8859-1?q?Jean-Fran=E7ois_Michaud?=, Jul 10, 2007, in forum: XML
    Replies:
    2
    Views:
    977
    =?iso-8859-1?q?Jean-Fran=E7ois_Michaud?=
    Jul 16, 2007
Loading...

Share This Page