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

    How do i stop maxigallery putting inline styles the html code? I just want to put the styles into my main css file.

    current output:

    <style type="text/css">
    #myGallery10
    {
    width: 272px;
    height: 193px;
    z-index:5;
    display: none;
    border: 1px solid #000;
    }
    </style>

    many thanks,
    G
      • 7923
      • 4,213 Posts
      What snippet call? what version? what is coming to your html source?


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 10357
        • 573 Posts
        My Call:

        [[MaxiGallery? &view_gallery=`10` &display=`embedded` &embedtype=`smoothgallery` &smoothgallery_timed=`1` &smoothgallery_width=`272` &smoothgallery_height=`193` &smoothgallery_showArrows=`0` &smoothgallery_showCarousel=`0` &smoothgallery_embedLinks=`0` &smoothgallery_showInfopane=`1` &order_by=`random` &galleryPictureTpl=`galPicture`]]

          • 7923
          • 4,213 Posts
          That css is for smoothgallery and is there for 2 reasons.

          1. So you can use &smoothgallery_width=`272` &smoothgallery_height=`193` parameters. They come to #myGallery10 { width: 272px; height: 193px; }

          2. So you can have multiple smoothgalleries on the same page with different sizes, the gallery ID comes to #myGallery<id>.

          If you want those to be in separate file instead of being in the html source, you can edit the regSmoothGalleryCSS function in maxigallery class and the parts that calls that function accordingly. Eg. you would put the css in the smoothgallery css and loose the &smoothgallery_width and &smoothgallery_height parameters and change the galleryOuterTpl to not use [+maxigallery.pageinfo.id+] in the id of the div.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 10357
            • 573 Posts
            thanks doze.