Results 1 to 3 of 3

Thread: CMotion - 'nobr' tag doesn't validate as transitional XHTML

  1. #1
    Join Date
    Nov 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CMotion - 'nobr' tag doesn't validate as transitional XHTML

    1) Script Title: CMotion

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...iongallery.htm

    3) Describe problem: 'nobr' tag doesn't validate as transitional XHTML

    Firstly I just want to say that this script is fantastic, I wanted to create a scrolling gallery, but not in Flash. The site I'm working on is database driven and I'm fine with that, but have never tried creating a dynamic site in Flash before and don't really want to learn at the moment.

    Anyway, my question, as you have probably already gathered, is to do with validation. I'm trying to make sure my code validates and obviously XHTML has a problem with custom tags. Does anyone know of a way around this?

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    You could replace the <nobr> tag in the script with a DIV instead with style "whitespace: nowrap":

    Code:
    <div style="white-space:nowrap;" id="trueContainer">............</div>
    This works in the couple of browsers I just tested- IE6 and Firefox 1.5.

  3. #3
    Join Date
    Nov 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you. That's perfect

Bookmarks

Posting Permissions

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