navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

CSS replacement for bordercolor

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> CSS replacement for bordercolor
Page: [1]
 
sphere

 

Posts: 2
Joined: 10/19/2003
Status: offline

 
CSS replacement for bordercolor - 10/19/2003 21:56:06   
Hello,
I was wondering if someone could help me with a problem, how can I replace the IE specific attribute bordercolor with CSS. Here's the table I'm working on below with the bordercolor.

<table rules="groups" frame="void" cellspacing="0" cellpadding="2" border="1" bordercolor="black">
<colgroup span="3"></colgroup>
<colgroup span="4"></colgroup>
<colgroup span="1"></colgroup>
<colgroup span="2"></colgroup>
<colgroup span="1"></colgroup>
<colgroup span="1"></colgroup>
<colgroup span="3"></colgroup>
<colgroup span="1"></colgroup>

<thead>
<tr>
<th colspan="3">SIU</th><th colspan="4">ATTACK</th><th>SET</th><th colspan="2">SERVE</th><th>SRV</th><th>DEF</th><th colspan="3">BLOCK</th><th>GEN</th>
</tr>
<tr>
<th>##</th><th>Name</th><th>GP</th><th>K</th><th>E</th><th>TA</th><th>PCT</th><th>A<th>SA</th><th>SE</th><th>RE</th><th>DIG</th><th>BS</th><th>BA</th><th>BE</th><th>BHE</th>
</tr>
</thead>

<tfoot>
<tr>
<td></td><th>Totals</th><td>5</td><td>63</td><td>23</td><td>182</td><td>.220</td><td>58</td><td>6</td><td>6</td><td>9</td><td>73</td><td>3</td><td>22</td><td>3</td><td>0</td>
</tr>
</tfoot>

<tbody>
<tr>
<th>1</th><th>Pulliam, Jene'</th><td>5</td><td>11</td><td>3</td><td>37</td><td>.216</td><td>3</td><td>0</td><td>0</td><td>3</td><td>10</td><td>0</td><td>2</td><td>0</td><td>0</td>
</tr>
<tr style="background-color: #cccccc;">
<th>3</th><th>Marita, Holly</th><td>5</td><td>2</td><td>0</td><td>9</td><td>.222</td><td>31</td><td>2</td><td>1</td><td>0</td><td>11</td><td>0</td><td>0</td><td>0</td><td>0</td>
</tr>
</tbody>
</table>


I'm aware that I can use a style="border-DIRECTION-color: black" in each cell, but that seems to miss the point of defining the row groups (thead etc.) and the colgroups.

Thanks ahead,
sphere
Nancy

 

Posts: 3626
Joined: 11/9/1999
From: Nebraska
Status: offline

 
RE: CSS replacement for bordercolor - 10/20/2003 0:19:28   
put the following in the head section of your document:

<style type="text/css">
<!--
td {
border: 1px solid #000000;
}
-->
</style>

that will put a 1 px border around each cell. It you want a border only around the outer border of the table put the follwing instead:

<style type="text/css">
<!--
table {
border: 1px solid #000000;
}
-->
</style>

Nancy

_____________________________

Easy Estimates -- is a simple to use tool to quickly build a Web site page enabling visitors to quickly and easily create an estimate of the cost of services that you provide.

(in reply to sphere)
sphere

 

Posts: 2
Joined: 10/19/2003
Status: offline

 
RE: CSS replacement for bordercolor - 10/20/2003 9:41:05   
I apologize maybe I didn't explain it well. The rules only go along the column and row groups (rules=groups), that means there is only a rule between each of the items in the first tr of thead, and each of the table groups (thead, tfoot, tbody).

If you render the table in IE 6 you'll see how I'd like it. The only change I'd like to make is replacing the bordercolor attribute with a style.

Thanks ahead,
sphere

(in reply to Nancy)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> CSS replacement for bordercolor
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts