Title: html spacing inside the table
Tags: html;spacing
Question: how can i increase the space in this table "Row 1, cell 1"?
<html&gt;
<table border="1"&gt;
<tr&gt;
<td&gt;Row 1, cell 1</td&gt;
<td&gt;Row 1, cell 2</td&gt;
</tr&gt;
</table&gt;
</html&gt;
pls check here for the image:
http://img227.imageshack.us/img227/6166/htmln.png
is this correct:
<table border="1" td.my-cell { padding:100px; }&gt;
<tr&gt;
<td class="my-cell"&gt;Row 1, cell 1</td&gt;
<td&gt;Row 1, cell 2</td&gt;
</tr&gt;
</table&gt;
Comment: yes. sorry for not being clear

Comment: What do you mean by "increase the space"? Do you want the first table cell to be wider?

Here is the accepted answer: You can either use cellpadding or using css
.cellpadding {
padding-left: 5px;
padding-right: 5px;
<td class="cellpadding"&gt;Row 1, cell 1</td&gt;
EDIT Your edited post is wrong....do this:
<table border="1"&gt;
<tr&gt;
<td style="padding-left: 5px; padding-right: 5px;"&gt;Row 1, cell 1</td&gt;
<td&gt;Row 1, cell 2</td&gt;
</tr&gt;
</table&gt;
Comment for this answer: this is great help The Elite Gentleman ;-) Can I also use padding-bottom here?

Here is another answer: You can add a class to that specific cell and then use that class-name to apply css:
.larger {
height: 2em;
width: 4em;
padding: 2em;
<!-- rest of table --&gt;
<td class="larger"&gt;Row 1, cell 1</td&gt;
<!-- rest of table --&gt;
Or you could use specific style-rules to apply a particular style:
tr td:first-child /* selects the first td within a tr */
Though this would apply to the first td of every row.

Here is another answer: elaborate on "space"? you can add padding to the td if thats what you mean by "space"
table td { padding:5px; }
if you just want that cell bigger, add a calss
table td.my-cell { padding:5px; }
<td class="my-cell"&gt;Row 1, cell 1</td&gt;
or do you mean
<td&gt;Row 1,cell1</td&gt;
you can increase the space between words like this:
table td { word-spacing: 20px; /* adjust */ }

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 3, 'CommentCount': 2, 'ContentLicense': 'CC BY-SA 2.5', 'CreationDate': '2010:00:10/06/10', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<html><spacing>', 'Title': 'html spacing inside the table', 'ViewCount': 23828, 'id': 3871237, 'user_AboutMe': '<p>NewBie in a programming world</p>\n\n<p>New to Java World :-) Just started </p>\n\n<p>googletalk:athens143</p>\n', 'user_AccountId': 26312.0, 'user_DisplayName': 'tintincutes', 'user_Reputation': 5498.0, 'user_Views': 1105.0, 'user_id': 68348.0}}