Skip to content

September 25, 2007

1

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.

  1.  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [
  3.  <!ATTLIST a width CDATA #IMPLIED>
  4.  
  5.  <!ATTLIST a height CDATA #IMPLIED>
  6.  ] >

NOTE:Problem with this fix is that it leaves a single ‘>’ at the top of your page

0saves
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my RSS feed and get articles like this delivered automatically to your feed reader.

No related posts.

Read more from Web Development
1 Comment Post a comment
  1. Alexandre
    Oct 25 2011

    Isso realmente resolve, mas como eu defino uma margem de altura para ele sair do topo??

    Reply

Share your thoughts, post a comment.

(required)
(required)

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments