Member
Member
hkdigit   2010-12-28, 16:59
#1

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.

Administrator
Administrator
acrylian   2010-12-28, 17:14
#2

Yes, the list has a class attached (see the html output).

Member
Member
hkdigit   2010-12-29, 00:19
#3

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;
}

Administrator
Administrator
acrylian   2010-12-29, 11:44
#4

You could have used display: inline; probably as well instead of float.

Member
Member
hkdigit   2011-01-11, 14:34
#5

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;
}

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.