1 reply [Last post]
Vmusic
Offline
Regular
Columbus
Last seen: 13 years 8 weeks ago
Columbus
Joined: 2003-12-21
Posts: 16
Points: 0

Hi,
Is there a way to create a specific td class that will center any/all content in a cell

td.admin{ border-with: 1px; ??? something that centers any / all content}

????????? it would do the same as <TD ALIGN=CENTER> ??????????

But with a selector like <td class=admin>

Thanks!!!!

dJomp
dJomp's picture
Offline
Enthusiast
Last seen: 4 years 44 weeks ago
Joined: 2003-03-23
Posts: 422
Points: 0

center content in a cell

Well we start with

TD.admin {
  text-align : center;
}

which would probably cover most things you'd be putting in a cell.

You know you're a geek when you try to shoo a fly away from the monitor with your cursor.