Forum Moderators: open

Message Too Old, No Replies

html align affecting styles?

         

louponne

8:55 pm on May 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm having trouble recently with aligning. Two situations:

<center>
<table><tr><td class=stylea>whatever</td>
</tr></table></center>

seems to align the text ("whatever") inside the table. I can't remember this happening before and it's not always happening - it's driving me crazy!

Same thing with

<table><tr><td align=right>
<table><tr><td class=stylea>whatever</td>
</tr></table>
</td></tr></table>

I'm finding that cell align=right sometime affects the text inside a table set in that cell. Again, I can't figure out why it happens sometimes and not others.

arg. What gives here?

iamlost

9:36 pm on May 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



  1. What are the properties you are setting in stylea? The css snippet would be helpful.
  2. Try: class="stylea" if leaving the quotes off was not a typo.

tedster

4:01 am on May 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The bad news is that you will find inconsistencies and trouble with both <center> and <td align=> and it may only get worse in the future.

The reason? These elements and attributes of HTML were deprecated a few years ago in favor of CSS. And for that reason there's no standard way for user agents to handle them that you can count on, especially when you mix old mark-up with new mark-up.

For more bad news about old-time HTML that's leaving us forever, see this thread:
[webmasterworld.com...]

Join us on the learning curve in our CSS Forum [webmasterworld.com]. You're better off learning to code without those elements - and your mark-up will be relatively "future proof".

louponne

10:38 am on May 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The bad news is that you will find inconsistencies and trouble...

Well, thanks for your answers! Time to move even more consistently to css I guess :)