September 25, 2007

LIghtbox++ vs XHTML Validation

So I was tying so hard to keep my portfolio XHTML valid. When i added the Lightbox++ script (which is a modified version of Lightbox) my portfolio had some errors according to the W3 standards. So after doing a little research and looking around I came to this solution.

First, the problem was that the doctype wasn't recognizing the height and width attributes i was setting in the tag.

So here was my solution.


<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\" \[

&lt;!ATTLIST a width CDATA #IMPLIED>

<!ATTLIST a height CDATA #IMPLIED>

]\ >



The bold part being what I had to add. Hope i saved someone out there some time.

0 Comments