create CSS for a table

S

shank

I have the below table. Can someone layout the CSS to make the equivalent
appearance? I made the following CSS and for the most part it works. I need
the whole table to have a 2px border. With my CSS, only the outside 4
borders have a 2px border width. The top row/cell does not have any border
at all. I gotta have one.
thanks

/* TABLE CSS */
..hc {
border-style: solid;
border-width: 2px;
border-color: #CC0000;
width: 100%;
padding: 20px
}
/* TOP ROW CELL CSS */
..hctoprow {
background-color: #CC0000;
border-style: solid;
border-width: 2px;
border-color: #CC0000;
padding: 2px
}
-----------------------
<table width="100%" border="2" cellpadding="0" cellspacing="0"
bordercolor="#CC0000">
<tr align="center">
<td bgcolor="#CC0000">
<font color="#FFFFCC" size="2" face="Arial, Helvetica, sans-serif"><strong>
1st row stuff
HITS!</strong></font>
</td>
</tr>
<tr align="center">
<td >
2nd row stuff
</td>
</tr>
</table>
 
?

=?iso-8859-1?Q?brucie?=

I have the below table. Can someone layout the CSS to make the equivalent
appearance?

<style type="text/css" media="all">
table{width:100%;text-align:center;border-collapse:collapse;}
table,th,td{border:2px solid #CC0000;}
th{color:#FFFFCC;background-color:#CC0000;}
</style>

<table>
<thead><tr><th>1st row stuff HITS!</th></tr></thead>
<tbody><tr><td>2nd row stuff</td></tr></tbody>
</table>
 
S

shank

brucie said:
<style type="text/css" media="all">
table{width:100%;text-align:center;border-collapse:collapse;}
table,th,td{border:2px solid #CC0000;}
th{color:#FFFFCC;background-color:#CC0000;}
</style>

<table>
<thead><tr><th>1st row stuff HITS!</th></tr></thead>
<tbody><tr><td>2nd row stuff</td></tr></tbody>
</table>
This worked great! Thanks! Curious though... It does not display correctly
in DreamweaverMX, but does show correctly in the server.
thanks!
 
S

Sid Ismail

: This worked great! Thanks! Curious though... It does not display correctly
: in DreamweaverMX, but does show correctly in the server.
: thanks!


Dreamweaver's internal browser isn't suped-up.

Sid
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top