×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Table's title row's rounded corners border

Table's title row's rounded corners border

Table's title row's rounded corners border

(OP)
Hi everyone
Here is my table's css disign:

CODE

<!DOCTYPE html>
<html>
<head>
  <title>To forum</title>
  <style>
    table
    {
	width: 80%;
	margin: auto;
	border-collapse: collapse;
			
    }
    tr.title 
    { 
      border-radius: 15px 15px 0px 0px;
      border: 3px solid #6b8e23;; 
    }	
  </style>
</head>
<body>
  <table>
    <tr class="title">
      <th>A</th>
      <th>B</th>
      <th>C</th>
      <th>D</th>
      <th>E</th>
      <th colspan="3">F</th>
    </tr>
    <tr>
      <td>a</td>
      <td>b</td>
      <td>c</td>
      <td>e</td>
      <td>d</td>
      <td>e</td>
      <td>f</td>
    </table>
</body>		
</html> 

Why do I not get rounded corners?
Why table's cell's borders has been vanished ?
Thanks

RE: Table's title row's rounded corners border

Hi

If I get your intentions right, this is the only way I know :

CODE --> CSS

table {
  width: 80%;
  margin: auto;
  border-spacing: 0;
}
tr.title th {
  border-top: 3px solid #6b8e23;
  border-bottom: 3px solid #6b8e23;
}
tr.title th:first-child {
  border-left: 3px solid #6b8e23;
  border-top-left-radius: 15px;
}
tr.title th:last-child {
  border-right: 3px solid #6b8e23;
  border-top-right-radius: 15px;
} 

Feherke.
feherke.github.io

RE: Table's title row's rounded corners border

(OP)
Thanks a lot Feherke !
Title header is exactly what I want as for the rest of the table's borders, I'll try to see if I can make progress.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close