Solved

border between rows

Posted on 2011-03-01
6
331 Views
Last Modified: 2012-05-11
<tr style="border-color: blue; border-style: solid;border-width:30px;">

want a border between rows

this does not work

please do answer within tr tag and not use css
0
Comment
Question by:rgb192
  • 3
  • 2
6 Comments
 
LVL 6

Expert Comment

by:MISOperations
ID: 35012176
<table border="1">
<tr><td>Row 1 Cell 1</td><td>Row 1 Cell 2</td></tr>
<tr><td>Row 2 Cell 1</td><td>Row 2 Cell 2</td></tr>
</table>
0
 
LVL 7

Accepted Solution

by:
jrwarren earned 500 total points
ID: 35012229
The other option, if you want a blue bar border, is to create a single pixel inage that is blue.
   call it blue.png

<table border="0">
  <tr>
     <td>Row 1 Cell 1</td>
     <td>Row 1 Cell 2</td>
  </tr>
  <tr>
     <td>
         <img src="blue.png" width="30" height="3">
     </td>
     <td>
         <img src="blue.png" width="30" height="3">
     </td>
  </tr>
  <tr>
     <td>Row 1 Cell 1</td>
     <td>Row 1 Cell 2</td>
  </tr>
</table>

Open in new window

0
 
LVL 6

Expert Comment

by:MISOperations
ID: 35012276
Or you could just put this in.

<div style="border-width:4pt;border-style:solid;border-color:green;">
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 7

Expert Comment

by:jrwarren
ID: 35012296
Quoting the request:
please do answer within tr tag and not use css
0
 
LVL 6

Expert Comment

by:MISOperations
ID: 35012352
@jrwarren

Thanks, like I didn't read it already...
0
 

Author Closing Comment

by:rgb192
ID: 35020455
thanks
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How do I set diff properties in a table row? 3 27
Flex container exceeding stated width in IE11 4 15
Css regex 6 39
CSS DIV Height in Percent 1 9
When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question