We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15001
    • 697 Posts
    Hi,

    I’m using the "Pictures and thumbnails on same page" configuration and experience a problem: my gallery displays fine with all browsers but not MSIE (version cool. Before blaming MSIE, honesty requires having a valid page according to W3C specifications. I must admit that the problematic page is not W3C valid yet and maybe everything will display fine once it is.

    I removed the "<li>...</li>" around the thumbnails in order to avoid any unwanted margin or padding around the pictures. The outer template was set accordingly, removing "<ul>...</ul>" tags.

    Despite this, I observe the presence of unwanted <ul> tags in output, just after the third thumbnail:
    </ul>
    <ul class="thumbs">

    making validation fail since <li> tags lack.

    The thumbnails are displayed in an array of 3 columns with maximum 5 rows. The unwanted <ul> tags seem coming just after the first row.
    I assume this comes from the way that the 5x3 array is created, maybe with <ul> lists included in each other.

    What can I do ?
    Thanks for your help.

    Here are my calls to the MaxiGallery snippet:

    <!--Thumbnails-->
    [!MaxiGallery? &max_thumb_size=`80x60` &max_pic_size=`480x360` &pics_per_row=`3` &pics_per_page=`15` &galleryPictureTpl=`@FILE:/assets/snippets/maxigallery/templates/galleryPictureTpl_vignettes.tpl` &galleryOuterTpl=`@FILE:/assets/snippets/maxigallery/templates/galleryOuterTpl_vignettes.tpl` &js=`assets/snippets/maxigallery/js/galerie_realisation.js` !]
    
    <!--Main picture-->
    [!MaxiGallery? &max_thumb_size=`80x60` &max_pic_size=`480x360` &pictureTpl=`@FILE:/assets/snippets/maxigallery/templates/pictureTpl_realisation.tpl` &galleryOuterTpl=`@FILE:/assets/snippets/maxigallery/templates/realisationOuterTpl.tpl` &display=`pictureview` &manageOuterTpl=`CODE:` &manageButtonTpl=`CODE:` &css=`@FILE:` !]

      • 7923
      • 4,213 Posts
      The leftover <ul> tags are coming from the clearerTpl. Use some large number in pics_per_row parameter or define empty clearerTpl.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 15001
        • 697 Posts
        Many thanks. I’ll try tomorrow.