In a simple Lyx document I have a program list box containing: Here is some code
When I export via File->Export->LyXHTML the part corresponding to the above is: <div class='float float-listings'><pre>Here is some code</pre></div> Now earlier in the XHTML file some styles are defined, but not 'float' nor 'float-listings', as required by the above. Curiously there is a 'listings' style defined: div.listings { font-family: monospace; } And from a separate, and much larger, Lyx document that I exported to XHTML there is: div.float { border: 2px solid black; text-align: center; } Note the "text-align: center": in that document all the program listings are centered - which is NOT appropriate for my code snippets: they need to be aligned to the left. That document's XHTML also includes a style for 'listings', but again no definition for 'float-listings'. Perhaps the missing style for 'float-listings' will correct the alignment problem. Note that I am using 64-bit Ubuntu 12.10 and have Lyx version 2.0.6dev which I compiled from the source file lyx2.0_2.0.6~git20121225~quantal1.tar.gz All help gratefully received, Robert.