PDA

View Full Version : CMotion - 'nobr' tag doesn't validate as transitional XHTML



matm00
11-20-2006, 11:58 AM
1) Script Title: CMotion

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/cmotiongallery.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?

ddadmin
11-20-2006, 01:50 PM
You could replace the <nobr> tag in the script with a DIV instead with style "whitespace: nowrap":


<div style="white-space:nowrap;" id="trueContainer">............</div>


This works in the couple of browsers I just tested- IE6 and Firefox 1.5.

matm00
11-20-2006, 02:00 PM
Thank you. That's perfect :)