valign not valid in xhtml?

  • The Apostle of God
  • Beginner
  • Beginner
  • User avatar
  • Posts: 54
  • Loc: SDSU, SD, USA

Post 3+ Months Ago

I use this heavily as I have a series of tables on my webpage. However, when I use the validator at w3.org, it tells me it isn't valid xhtml transitional. What is the replacement tag, or what should I use instead?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Use style sheet element: vertical-align
Options are:
percentage
baseline
sub
super
top
text-top
middle
bottom
text-bottom
  • The Apostle of God
  • Beginner
  • Beginner
  • User avatar
  • Posts: 54
  • Loc: SDSU, SD, USA

Post 3+ Months Ago

Excellent :) Again, you have been very helpful!
  • conorific
  • Proficient
  • Proficient
  • User avatar
  • Posts: 350
  • Loc: NY

Post 3+ Months Ago

ATNO, in that case, do you happen to know why HTML supports valign and XHTML doesn't? I'm curious...
  • The Apostle of God
  • Beginner
  • Beginner
  • User avatar
  • Posts: 54
  • Loc: SDSU, SD, USA

Post 3+ Months Ago

xhtml promotes the use of stylesheets even more than its predecessors. Even though I didn't know that the valign was obsolete, it doesn't surprise me it was replaced with a stylesheet element.

Simply, it is to force style sheet immigration.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Other than the fact it was depricated by the w3c in XHTML, no, I don't know the specific reason. However, here is an excellent resource that tells you what exactly can be used with any given element in the strict, transitional and frameset DTD:

http://home.pi.be/~thorreke/references/ ... l_1_0.html
  • conorific
  • Proficient
  • Proficient
  • User avatar
  • Posts: 350
  • Loc: NY

Post 3+ Months Ago

Thanks! Yeah, I understand why. Stylesheets are big, but they really do so much for design, it just makes everything easier. I should probably start switching to XHTML. Thanks for answering!
  • allgoodpeople
  • Proficient
  • Proficient
  • User avatar
  • Posts: 379
  • Loc: here

Post 3+ Months Ago

conorific wrote:
Thanks! Yeah, I understand why. Stylesheets are big, but they really do so much for design, it just makes everything easier. I should probably start switching to XHTML. Thanks for answering!


actually, my experience with switching to XHTML was quite easy. get a copy of HTML Kit and it will even do it for you with the click of a button. XHTML really isn't that different than regular HTML. The code is a little more strict, and all tags have to be closed. that's about it from what i can tell

mark
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Here are the most important differences:
http://www.w3schools.com/xhtml/xhtml_html.asp

And I'm the same as mark. A very easy transition indeed. And I also use the click of a button thing in HTML kit as well.
  • s15199d
  • Expert
  • Expert
  • User avatar
  • Posts: 524
  • Loc: NC, USA

Post 3+ Months Ago

Can atno or allgoodpeople tell me where I might find the "HTML kit"? I would love to mess around with the xhtml stuff.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

http://www.chami.com/html-kit/

Click the download link - it's free
  • allgoodpeople
  • Proficient
  • Proficient
  • User avatar
  • Posts: 379
  • Loc: here

Post 3+ Months Ago

another good source if you're going to check out XHTML:

http://www.w3schools.com/xhtml/default.asp

easy to read tutorial on what XHTML is all about, and how to go about transitioning your page.

mark

Post Information

  • Total Posts in this topic: 12 posts
  • Users browsing this forum: No registered users and 31 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.