How set border thickness of table?

Discussion in 'ASP .Net' started by VB Programmer, Dec 15, 2004.

  1. How do you set the thickness of a <TABLE> border? I know that the MOST
    OBVIOUS answer would be to do it through the properties window, but it's NOT
    WORKING.

    I tried this:
    <TABLE id="Table2" style="HEIGHT: 553px" cellSpacing="0" cellPadding="5"
    width="730" border="5" borderColor="#ff9900">

    It doesn't matter if I set border to "1" or "100" - IT LOOKS THE SAME!

    Any ideas?

    Thanks
    VB Programmer, Dec 15, 2004
    #1
    1. Advertising

  2. <TABLE id="Table2" style="HEIGHT: 553px" cellSpacing="0" cellPadding="5"
    width="730" border="1" borderColor="#ff9900">

    and
    <TABLE id="Table2" style="HEIGHT: 553px" cellSpacing="0" cellPadding="5"
    width="730" border="10" borderColor="#ff9900">

    working fine no problem different border widths
    --
    rajagopal

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Rajagopal Pasupuleti, Dec 15, 2004
    #2
    1. Advertising

  3. It looks like the CSS was messing with it. But, I thought that INLINE HTML
    takes precendence over CSS settings.... Hmmm....

    Thanks!

    "Rajagopal Pasupuleti" <> wrote in message
    news:%...
    >
    > <TABLE id="Table2" style="HEIGHT: 553px" cellSpacing="0" cellPadding="5"
    > width="730" border="1" borderColor="#ff9900">
    >
    > and
    > <TABLE id="Table2" style="HEIGHT: 553px" cellSpacing="0" cellPadding="5"
    > width="730" border="10" borderColor="#ff9900">
    >
    > working fine no problem different border widths
    > --
    > rajagopal
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!
    VB Programmer, Dec 15, 2004
    #3
  4. VB Programmer

    Jo Inferis Guest

    VB Programmer wrote:
    > It looks like the CSS was messing with it. But, I thought that
    > INLINE HTML takes precendence over CSS settings.... Hmmm....


    CSS (from a stylesheet) is applied *after* the html is parsed, so it will
    override anything you've specified inline.

    --
    jo inferis
    Jo Inferis, Dec 15, 2004
    #4
  5. VB Programmer

    bruce barker Guest

    not quite right. CSS from a stylesheet overrides attributes, but not inline
    style. the logic is the attributes will be used no browser that do not
    support CSS. try:

    <TABLE id="Table2" style="HEIGHT: 553px;border 5 solid red;"
    cellSpacing="0" cellPadding="5"
    width="730" border="5" borderColor="#ff9900">

    and you will get a 5pt red border.

    -- bruce (sqlwork.com)


    "Jo Inferis" <> wrote in message
    news:...
    | VB Programmer wrote:
    | > It looks like the CSS was messing with it. But, I thought that
    | > INLINE HTML takes precendence over CSS settings.... Hmmm....
    |
    | CSS (from a stylesheet) is applied *after* the html is parsed, so it will
    | override anything you've specified inline.
    |
    | --
    | jo inferis
    |
    |
    bruce barker, Dec 15, 2004
    #5
    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. tshad
    Replies:
    0
    Views:
    2,235
    tshad
    Jan 31, 2005
  2. PJ6
    Replies:
    2
    Views:
    442
  3. Dag Sunde
    Replies:
    3
    Views:
    3,946
    Dag Sunde
    May 24, 2006
  4. phl
    Replies:
    1
    Views:
    4,323
    Martin Jay
    Jun 8, 2006
  5. Coder
    Replies:
    1
    Views:
    678
    Cowboy \(Gregory A. Beamer\)
    Jun 24, 2006
Loading...

Share This Page