chriswiec
chriswiec

Reputation: 1211

Cell Border style with CSS not HTML

is there a way to set up the inner border or the cell borders of a table with css like you can do with html?

I can only get this far and then have to finish with html for the inner border or the cell borders.

html `

<table class="DrawRow2" table border="1">
<script type="text/javascript">
DR2 ("",Dummy1","Dummy2","Dummy3","Dummy4","Dummy5",1,-1,"Dummy6",1,0,0,"Dummy7");
[ResultItemsHTML]
</script>
</table>

css table.DR2{ border:5px; border-style:outset; border-color:#E80000; width:850px; height:18px; border-spacing:0; border-collapes:collapse; }

The only way to get the inner border to display is to add the table border="1" is there a way to draw the cell border without having to do it on each tr or td tag?

Upvotes: 0

Views: 241

Answers (2)

Hushme
Hushme

Reputation: 3144

you can use css for that

simpply

  table {
      border: 1px solid black;
  }
  th {
      border: 1px dotted green;
  } 
  td {
      border: 1px dashed red;
  }

Upvotes: 3

user1721135
user1721135

Reputation: 7092

td {
border:solid black 1px;
}

Upvotes: 1

Related Questions