May 5, 2009

0 CSS Padding

the CSS padding properties define the space between the element border and the element content

Set the left padding

<html>
<head>
<style type="text/css">
td {padding-left: 2cm}
</style>
</head>
<body>
<table border="1">
<tr>
<td>
This is a table cell with a left padding. This is a table cell with a left padding.
</td>
</tr>
</table>
</body>
</html>



0 comments:

Post a Comment

Blogger Themes

 
Powered by Blogger