Answers for "table css"

CSS
11

table border css

table, th, td {
  border: 1px solid black;
}
Posted by: Guest on April-14-2020
4

css table border-collapse

.table1 {
  border-collapse: collapse;
}
Posted by: Guest on May-14-2020
9

html create a table

<html>
 <head>
   <title>Working with HTML Tables</title>
 </head>
 <body>
   <table>				<!-- create an table object -->
     <tr>				<!-- "tr" represents a row -->
       <th>Name</th>	<!-- use "th" to indicate header row -->
       <th>Date of Birth</th>
       <th>Weight</th>
     </tr> 
     <tr>				<!-- once again use tr for another row -->
       <td>Mary</td>	<!-- use "td" henceforth for normal rows -->
       <td>12/13/1994</td>
       <td>130</td>
     </tr>    
   </table>
 </body>
</html>
Posted by: Guest on March-10-2020
3

table css

tr , th , td  {
    border: 1px solid black;
    padding: 5%;
    text-align: center;
}
Posted by: Guest on October-06-2020
1

basic css table

table, td, th {
  border: 1px solid black;
}

table {
  border-collapse: collapse;
}
Posted by: Guest on June-17-2021

Browse Popular Code Answers by Language