CSS Table | Coding Tag
×

CSS Tables

3586

CSS Table layout can be used to represent tabular relationships between data.

Code:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<style type="text/css">
table, td, th {
border: 1px solid #eee;
text-align: center;
}

table {
border-collapse: collapse;
width: 50%;
margin:0 auto;
}

th, td {
padding: 10px;
}
</style>
</head>
<body>

<h2> CSS Tables </h2>
<table>
<tr>
<th> lorem ipsum </th>
<th> lorem ipsum </th>
</tr>
<tr>
<th> lorem ipsum </th>
<th> lorem ipsum </th>
</tr>
<tr>
<th> lorem ipsum </th>
<th> lorem ipsum </th>
</tr>
<tr>
<th> lorem ipsum </th>
<th> lorem ipsum </th>
</tr>
<tr>
<th> lorem ipsum </th>
<th> lorem ipsum </th>
</tr>
</table>

</body>
</html>



Best WordPress Hosting


Share:


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price



Leave a Reply


Comments
    Waiting for your comments