Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
  1. #1
    Senior Member Karloff's Avatar
    Join Date
    Oct 2005
    Posts
    744
    Member #
    11702
    hey guys i'm getting a problem validating my site for xhtml 1.1, the only prob is the lightbox that i use.
    I'm using a bit of code like this

    Code:
    <a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
    and the
    [roadtrip]
    ain't validating. seems to be the problem is the square brackets.

    anyone know a work round for this? do i have to go back to just using a strict doc tyoe?

    ps: once i get this fixed i'm entering the site of the month comp

  2.  

  3. #2
    Senior Member karinne's Avatar
    Join Date
    Dec 2003
    Location
    Aylmer QC Canada
    Posts
    1,607
    Member #
    4335
    Liked
    8 times
    I guess you fixed it? 'Cause it validates
    [a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
    I'm also on: virb - facebook - twitter - flickr - del.icio.us

  4. #3
    Senior Member simpleurl's Avatar
    Join Date
    Jul 2006
    Location
    Leicester, UK.
    Posts
    150
    Member #
    13598
    Error Line 67 column 59: character "[" is not allowed in the value of attribute "rel". <a href="gallery/images/gallery.jpg" rel="lightbox[roadtrip]"> It is possible that you violated the naming convention for this attribute. For example, id and name attributes must begin with a letter, not a digit.

    Not sure whether that will validate with the [roadtrip] thing on. I made them valid but I was using XHTML transitional at the time.

  5. #4
    Senior Member Karloff's Avatar
    Join Date
    Oct 2005
    Posts
    744
    Member #
    11702
    Quote Originally Posted by karinne
    I guess you fixed it? 'Cause it validates
    my apologies karinne, i should have said it was on this page. its also on the page about achnaboabne

    simple, i did have it a xhtml strict and it validates i was just trying to see how easy it was to validate my site in xhtml 1.1.

    i'll keep looking into it.

    thanks 4 looking guys

  6. #5
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Isn't there any way you can tell lightbox to accept different values in the rel attribute?

  7. #6
    Junior Member caterpixel's Avatar
    Join Date
    Dec 2006
    Location
    North Carolina
    Posts
    13
    Member #
    14487
    I don't think there is, or if there was, I don't know. I used Lightbox for my portfolio and had to switch from XHTML 1.1 to 1.0 Strict.

  8. #7
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Suckage. I would dig through the code and try to figure out how to fix that, but I have no time right now :-/

  9. #8
    Senior Member Karloff's Avatar
    Join Date
    Oct 2005
    Posts
    744
    Member #
    11702
    cheers guy, did find a sorta solution but doesn't work in IE5 so i think i resort to xhtml strict.

    cheers:-)

  10. #9
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Try using [minicode]&amp;#91;[/minicode] and [minicode]&amp;#93;[/minicode] instead (for [ and ], respectively, where &amp; is the & symbol)...

  11. #10
    Senior Member Karloff's Avatar
    Join Date
    Oct 2005
    Posts
    744
    Member #
    11702
    Quote Originally Posted by Shadowfiend
    Try using [minicode]&amp;#91;[/minicode] and [minicode]&amp;#93;[/minicode] instead (for [ and ], respectively, where &amp; is the & symbol)...
    thanks for the input. unfortunetly that didn't work so i decided to try what i did already and see the result (well what i thought i had done) and it seems that all that was needed was
    HTML Code:
    <a href="gallery/images/gallery.jpg" rel="lightbox.roadtrip">


    a small dot!! so thought i'd done that 1st, but i must have forgot.:ermm:

    cheers shadow and co:thumbsup:


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

lightbox compatible with xhtml strict

,

lightbox for xhtml

,

lightbox rel attribute validation

Click on a term to search for related topics.
All times are GMT -6. The time now is 11:08 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com