I'm trying to use multiple classes in a table, although I am not combining them. I am using them at different parts of the table.
What I have is:
CSS
HTML
The only one I can get to work is the second one, class="course-title". The first one is nesting a table in a table. I want it centered, I have seen other forums and "how-to sites" say to do it the way I am, however the only way I can get the nested table centered is to use align="center". However HTML validators complain it is out of date, is it "ok" to use it. Is there a third option?
What I have is:
CSS
Code:
.objs {
text-align: center;
font-size: 18px;
font-weight: bold;
}
.tables {
text-align: center;
}
HTML
Code:
<td class="tables">
<td class="course-title">
<td class="objs">
The only one I can get to work is the second one, class="course-title". The first one is nesting a table in a table. I want it centered, I have seen other forums and "how-to sites" say to do it the way I am, however the only way I can get the nested table centered is to use align="center". However HTML validators complain it is out of date, is it "ok" to use it. Is there a third option?