I've got a table that looks like this:
<table class="resizer">
<tr>
<td class="handle"></td>
<td class="handle topedge"></td>
<td class="handle"></td>
</tr>
<tr>
<td class="handle leftedge"></td>
<td></td>
<td class="handle rightedge"></td>
</tr>
<tr>
<td class="handle"></td>
<td class="handle bottomedge"></td>
<td class="handle"></td>
</tr>
</table>
The CSS for the table looks like this:
.resizer {
background-color: #ddd;
width: 200px;
height: 140px;
}
.resizer .handle {
background-color: #500;
}
.resizer .topedge {
height: 2px;
cursor: n-resize;
}
.resizer .leftedge {
width: 2px;
cursor: w-resize;
}
.resizer .rightedge {
width: 2px;
cursor: e-resize;
}
.resizer .bottomedge {
height: 2px;
cursor: s-resize;
}
Unfortunately, it's not paying any attention to my size specifications. What I want is:
- The top and bottom row to have a height of
2px
- The left and right column to have a width of
2px
Something like this (the numbers represent the cell number):
1122222222222222222233 44 66 44 66 44 66 7788888888888888888899
Code
You can see a live demo and make corrections to the HTML / CSS here: