[thesite] evolt validation

Filip Salomonsson filip at netdesign.se
Mon Sep 24 16:45:00 CDT 2001


Daniel J. Cody:
> on the article page( i used one from commentary so it didnt have any
> user added formatting), we're getting an error on the cube image align:
>
> Error: value of attribute "ALIGN" cannot be "ABSMIDDLE"; must be one of
> "TOP", "MIDDLE", "BOTTOM", "LEFT", "RIGHT"

Ah, that's right.. absmiddle never was part of the HTML spec. Bummer.

> would using middle give the same effect filip/anyone?

Nope, not the same. Actually, absmiddle was a rather ugly fix which would
break as soon as the text size changes. Using "middle" and padding the
bottom gifs with five or so pixels is probably the right way to go.

Like this:
<http://members.evolt.org/filip/evolt/cubes/align.html>

This should look alright even if the text size changes. "Middle" aligns the
vertical center of the image to the baseline of the text, which is really
what absmiddle did (but only for this specific text size). Same thing, but
done the Right Way. Yay!

If it seems okay, I'll fix the gifs.

/filip
--
silent is the new loud.





More information about the thesite mailing list