[thelist] trouble validating xHTML 1.1 forms page

jsWalter jsWalter at torres.ws
Thu Aug 14 00:13:39 CDT 2003

I am trying to get a form page validated in xHTML 1.1.


This is what is causing the problems...

   <span class='menuItem' onClick="showRegion('eps_info')">
      <img src="../images/icon_episodes.gif"
           align="absmiddle" />

A nice little image, Menu text and an onClick event to fire off a display

Pretty straight forward, except it will not validate.  :(

I am having 2 problems...

1) [ there is no attribute "align" ]

   OK, this attribute has been removed.

   I am using align="absmiddle" because I want the 18x18 image to align
   itself with the text label to its right.
   If this attribute is removed, the image to too high on the text.
   Looks bad.

2) [ there is no attribute "onClick" ]

I guess I could embed a <A> inside the SPAN, around the image/label, but I
would rather not. Can't really tell you why, just doesn't seem very clean
that way.


Thanks for any advise on this.


BTW: The form has other issues as well; as it doesn't look quite right in
     non IE browsers. (I'm working in IE 5.5 mainly)
     Items jump around, from browser to browser.

     Bt I'll tackle that (again) later, maybe

     I've spent WAY too much time on this form as it is.
     I think 6 (full, long) days is more than enough.
     I'm at my wits end with it.
     I guess I'm  not so CS savvy as I hoped I was.

More information about the thelist mailing list