|
-
Mar 14th, 2005, 02:36 PM
#1
Thread Starter
Frenzied Member
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.
-
Mar 14th, 2005, 11:30 PM
#2
-
Mar 15th, 2005, 10:51 AM
#3
Thread Starter
Frenzied Member
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-style: solid;
border-width: 1px;
border-color: #000000;
}
-
Mar 15th, 2005, 11:18 AM
#4
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
-
Mar 15th, 2005, 11:35 AM
#5
Thread Starter
Frenzied Member
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.
-
Mar 15th, 2005, 07:39 PM
#6
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.
-
Mar 16th, 2005, 12:08 PM
#7
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|