I would like to create a CSS/HTML version of this notepad on my page:
I was thinking of using a simple table like this:
<div id="notepad">
<table>
<thead id="tbl_header">Comments</thead>
<tr></tr>
<tr>
<td class="col1">Dot</td>
<td class="col2">Text for column 2</td>
</tr>
<tr>
<td class="col1"></td>
<td class="col2"></td>
</tr>
<tr>
<td class="col1"></td>
<td class="col2"></td>
</tr>
<tr>
<td class="col1"></td>
<td class="col2"></td>
</tr>
<tr>
<td class="col1"></td>
<td class="col2"></td>
<td class="col3"></td>
</tr>
</table>
</div>
So what I was thinking was cutting up the graphic. Have the top part, be the bg img for the <thead>
.
Then just create one of the lines as the rows (there would be two graphics, one for col1 and col2 - so when a new row is created the bg of both columns would be populated), so that it can scale vertically as needed. Then, for the last set, I have two more graphics. One is for col1. One for col2 (which is the regular row but a little narrower in width) and the curl would be col3.
Is there a scalable way I can do this, using CSS & HTML only (no JS or jQuery) ?
Thanks.
P.S. Or is there another way to create this same thing without having to use bg images - and just using CSS?