View Single Post
  #3 (permalink)  
Old 06-30-2007, 01:21 AM
happycoder's Avatar
happycoder happycoder is offline
Registered User
 
Join Date: Jun 2007
Posts: 4
Label and Table

I've never tried using <label> for a table. Interesting. I suppose you can try something like this:

'------------------------- HTML CODE
Code:
<ol>
<li>
  <label class="col1"></label>
  <label class="col2"></label>
  <label class="col3"></label>
</li>
<li>
  <label class="col1"></label>
  <label class="col2"></label>
  <label class="col3"></label>
</li>
</ol>

'------------------------- CSS CODE
Code:
ol {
  list-style: none;
}

li {
  float: left;
  display: inline;
}

li label .col1 {
  text-align: right;
  width: 20em;
}

li label .col2 {
  text-align: right;
  width: 10em;
}

li label .col3 {
  text-align: right;
}

Last edited by happycoder : 06-30-2007 at 01:24 AM.
Reply With Quote