• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

html table issue

I am trying to set a border on two sides of an html table cell in visual studio 2005.  I can get one side of the cell to display a border.  It shows up in design view as well as the when I compile the code.  But, when I try to get the other side of the border displayed, it shows up in design view, but then no border appears when I compile the code.  Here is the code:

  <td style="width: 100px; height: 21px; border-left-color: black; border-top-style: solid; border-top-color: black; border-left-style: solid;">
1 Solution
Does the cell in quesion contain any "contents" if not try adding "&nbsp;" to the cell contents
I don't know about visual studio, but the HTML/CSS for this could be (for a border left and top):

<td style="width: 100px; height: 21px;   border-left: 1px solid #000;  border-top: 1px solid #000; ">
Mark GilbertSenior Performance EngineerCommented:
Try this:

<td style="width: 100px; height: 21px; border-left: #000000 solid 1px; border-top: #000000 solid 1px;">

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now