Dave819
Dave819

Reputation: 601

CSS why doesn't this work?

its not showing the right border

<th style="border-style:solid; border-right:1px; border-left:0px; border-bottom:0px; border-top:0px;">s
  </th>

Upvotes: 0

Views: 82

Answers (3)

mickthompson
mickthompson

Reputation: 5512

in you css

th.giveaclassname {border:0 1px 0 0 solid black;}

in your html

<th class="giveaclassname">..</th>

or it might be that the borders are collapsing, and the thicker one prevails (see this post)

Upvotes: 0

Arun
Arun

Reputation: 3077

Just try

<th style="border-right:solid 1px gray"></th>

Upvotes: 1

adarshr
adarshr

Reputation: 62583

You should give border-color as well.

Upvotes: 1

Related Questions