CSS style for printLatestImages()

Is it possible to apply CSS class for printLatestImages()function?

http://www.hkgimages.com/pic/

I want to show the latest images in horizontal instead of list items.

Many thanks in advance.

Comments

  • acrylian Administrator, Developer
    Yes, the list has a class attached (see the html output).
  • acrylian, it's working now

    At index.php, I add the following line:

    printLatestImages(8,'', FALSE, FALSE, FALSE, 0, '', 75, 75, TRUE, FALSE);

    At CSS File, I add following lines:

    /* Latest Images
    ------------------------------ */
    #latest {
    list-style: none;
    float: left;
    margin:0px 0;
    }

    #latest ul {
    padding:0;
    margin:0;
    list-style:none;
    }

    #latest ul li {
    list-style:none;
    float: left;
    padding: 0px 4px 0px;
    margin:0px 0;
    }
  • acrylian Administrator, Developer
    You could have used `display: inline;` probably as well instead of float.
  • Thanks acrylian, it's working now ^_^

    Ref: http://www.hkgimages.com/pic/events/new-year-countdown-celebrations/

    /* Latest Images
    ------------------------------ */
    #popular {
    list-style: none;
    display: inline;
    margin:0px 0;
    }

    #popular ul {
    padding:0;
    margin:0;
    list-style:none;
    }

    #popular ul li {
    list-style:none;
    display: inline;
    padding: 0px 4px 0px;
    margin:0px 0;
    }
Sign In or Register to comment.