Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html table padding and spacing

<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
  border: 1px solid black;
  border-collapse: collapse;
}
th, td {
  padding-top: 10px;
  padding-bottom: 20px;
  padding-left: 30px;
  padding-right: 40px;
}
</style>
</head>
<body>

<h2>Cellpadding - top - bottom - left - right </h2>
<p>We can specify different padding for all fours sides of the cell content.</p>

<table style="width:100%">
  <tr>
    <th>Firstname</th>
    <th>Lastname</th> 
    <th>Age</th>
  </tr>
  <tr>
    <td>Jill</td>
    <td>Smith</td>
    <td>50</td>
  </tr>
  <tr>
    <td>Eve</td>
    <td>Jackson</td>
    <td>94</td>
  </tr>
  <tr>
    <td>John</td>
    <td>Doe</td>
    <td>80</td>
  </tr>
</table>

</body>
</html>

Comment

HTML Table Padding & Spacing

th, td {
  padding-top: 10px;
  padding-bottom: 20px;
  padding-left: 30px;
  padding-right: 40px;
}
Comment

PREVIOUS NEXT
Code Example
Html :: pound symbol phone html 
Html :: pass method to composite jsf component 
Html :: html lag on scoll 
Html :: html load page at certain point 
Html :: disable browser autocomplete 
Html :: meta responsive 
Html :: bootstrap Badges Contextual variations 
Html :: cp_errordocument.shtml (port 443) 
Html :: html dropdown 
Html :: show timestamp as yyyy mm dd html angular 
Html :: country code for continents 
Html :: greta thunberg 
Html :: test image as base 64 string 
Html :: add frame to div 
Html :: html input checkbox unchecked 
Html :: html textbox pattern mobile number 
Html :: how to use custom domain name instead of localhost on xampp for linux 
Html :: bootsrp 
Html :: how to change tab icon in html 
Html :: angular raw html 
Html :: random image url 
Html :: align right bootstrap 
Html :: center htl 
Html :: down chevron unicode 
Html :: automatically refresh a web page 
Html :: yii2 csrf custom form 
Html :: html input datetime-local value from mysql date time 
Html :: click on toggle device toolbar page is not working 
Html :: html scroll div to top 
Html :: portfolio templates html 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =