Results 1 to 7 of 7

Thread: No Table Row Border

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Resolved No Table Row Border

    I've tried to set a border for a table row, even in a style sheet and can't seem to get it to work. Is it possible? I CAN set a row background.
    Last edited by wey97; Apr 22nd, 2005 at 08:52 AM.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: No Table Row Border

    Show your code.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Re: No Table Row Border

    HTML:
    PHP Code:
    <TABLE id="Table1">
        <
    TR class="rowStyle">
            <
    TD>Item</TD>
            <
    TD>Item</TD>
            <
    TD>Item</TD>
        </
    TR>
        <
    TR>
            <
    TD>Item</TD>
            <
    TD>Item</TD>
            <
    TD>Item</TD>
        </
    TR>
    </
    TABLE
    CSS:
    PHP Code:
    .rowStyle
    {
        
    background-color#6699CC;
        
    border-stylesolid;
        
    border-width1px;
        
    border-color#000000;



  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: No Table Row Border

    I see what you're trying to do.

    Set the borders either on the table or on the <TD>s themselves.

    Take a look here (bottom links) for some examples as well... You can use the cols and frames attributes to control table borders as well.

    http://www.w3schools.com/html/html_tables.asp

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Re: No Table Row Border

    I was hoping there was a way to put a border around a single row, or outline it in other words.

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: No Table Row Border

    Then use a single <td> containing a table with the x cells in a single row and place a border around that.

    Or, use DIVs.

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Re: No Table Row Border

    Awesome...
    I had to add a colspan attribute to make the <td> span the width of the top three <td>s and make the table width 100% of the <td>

    PHP Code:
    <table>
        <
    tr>
            <
    td>Item 1</td>
            <
    td>Item 2</td>
            <
    td>Item 3</td>
        </
    tr>
        <
    tr>
            <
    td colspan="3">
                <
    table width="100%">
                    <
    tr>
                        <
    td>Span Item Text</td>
                    </
    tr>
                </
    table>
            </
    td>
        </
    tr>
    </
    table

Posting Permissions

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



Click Here to Expand Forum to Full Width