View Single Post
  #1 (permalink)  
Old Apr 19th, 2008, 12:07
harryajh harryajh is offline
New Member
Join Date: Apr 2008
Location: bristol
Age: 37
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
How best to do this using CSS?

Presentation within my jsp file is entirely done using class attributes except column width settings on a table. There 2 tables with 11 columns in each all have different widths!

Currently I have inline style attributes like this -
HTML: Select all
  <td style="width: 30%;">Local Authority</td>
Can anyone please suggest how best to do this? would you keep the "style" as they are unique or perhaps create a class style in the css file like so -
Code: Select all
  #wrec_origin_local_authority {
      width: 10px;
      }
So my html would look like this -
HTML: Select all
  <td id="local_authority" class="local_authority">Local Authority</td>
This sound the cleaner route but any thoughts on the way to go?

thanks in advance

harry

Last edited by Aso; Apr 19th, 2008 at 14:51.
Reply With Quote