W3C home > Mailing lists > Public > www-validator@w3.org > January 2011

Re: [VE][108] there is no attribute valign

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Mon, 17 Jan 2011 10:28:35 +0200
Message-ID: <E5091885B23A443E9A00460070DC30AC@JukanPC>
To: <kavaz@kavaz.com.tr>, <www-validator@w3.org>
Kavaz Web Tasarým wrote:

> I use asp.net Menu control.
>
> Bind menu items dynamically to Menu so I can't use CSS Friendly
> Control Adapters because they are for static menu building

Can't you use CSS to style individual elements on the page?

> I can not validate my pages
>
> Validating http://korelilerdemre.com/sayfalar.aspx?id=1
> <http://korelilerdemre.com/sayfalar.aspx?id=1&kat=1> &kat=1
> Error [108]: "there is no attribute X"

You're using the valign attribute in an <img> element. I don't think that's 
recognized even as a browser extension. It surely does not conform to HTML 
recommendations or on DTDs specified in them.

You can use align="middle" or align="absmiddle" (depending on the desired 
effect - probably the latter) in an <img> tag.

The attribute align is rather messy, covering different dimensions but only 
for a particular element. Using CSS, you could specify the desired effect(s) 
better, using properties text-align, float, and vertical-align. Instead of 
vertical-align (which may do nasty things to line spacing), you might 
consider using relative positioning.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/ 
Received on Monday, 17 January 2011 08:29:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:45 GMT