Click here to Skip to main content
15,914,384 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
HI everyone,

i want the round shape line in my table.i search in google ,i found as follows.but how to use it i am confused??
i want to use this code in my table:
XML
<svg height="80" width="300">
  <g fill="none" stroke="black" stroke-width="6">
    <path stroke-linecap="round" d="M5 40 l215 0" />
   </g>
  </svg>


i have the table as follows:
XML
<table width="600"  cellpadding="0" cellspacing="0" align="center" class="deviceWidth" bgcolor="" style="margin-top:1%">
<tr>
<td align="center">
 <p3 class="center">────────── Lets begin ──────────</p3>
</td>
</tr>
</table>
Posted
Comments
Krunal Rohit 2-Nov-15 9:05am    
You can do it using CSS only.

border: solid 1px #f90;
border-radius: 50%;
height:50px;
width:50px

-KR
[no name] 2-Nov-15 9:11am    
i dont want the curved shape.i want the round to the line

XML
<table width="600"  cellpadding="0" cellspacing="0" align="center" class="deviceWidth" bgcolor="" style="margin-top:1%">
<tr>
<td align="center">
 <p3 class="center"><svg height="80" width="300">
  <g fill="none" stroke="black" stroke-width="6">
    <path stroke-linecap="round" d="M5 40 l215 0" />
   </g>
  </svg> Lets begin<svg height="80" width="300">
  <g fill="none" stroke="black" stroke-width="6">
    <path stroke-linecap="round" d="M5 40 l215 0" />
   </g>
  </svg></p3>
</td>
</tr>
</table>
 
Share this answer
 
Comments
[no name] 2-Nov-15 10:05am    
how can i give round shape to end of the line(considering for both the lines.)
Sergey Alexandrovich Kryukov 2-Nov-15 10:31am    
Replace first </svg> with <svg>.
—SA
[no name] 2-Nov-15 10:46am    
if i replace with <svg>. its gives me one single line which i dont want. i want both lines it should be curve from end point that is starting point and ending point.
the answer from varun is right but problem is i want curve shape from one point to another point for both the lines that is before Lets begin and after Lets Begin.Please let me know.
[no name] 2-Nov-15 10:47am    
if i replace with with <svg>
the answer from varun is right but problem is i want curve shape from one point to another point for both the lines that is before Lets begin and after Lets Begin.Please let me know.
[no name] 2-Nov-15 10:43am    
the answer from varun is right but problem is i want curve shape from one point to another point for both the lines that is before Lets begin and after Lets Begin.Please let me know.
Use the code for round shape
XML
<table width="600"  cellpadding="0" cellspacing="0" align="center" class="deviceWidth" bgcolor="" style="margin-top:1%">
<tr>
<td align="center">
  <svg height="100" width="100">
  <circle cx="50" cy="50" r="40" stroke="red" stroke-width="3" fill="white" />
</svg>
</td>
</tr>
</table>


of
follow the link
http://www.w3schools.com/svg/svg_circle.asp[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900