View Full Version : :: Ultimate Fade-in slideshow (v2.4) - center description text

01-18-2012, 05:16 PM
1) Script Title: :: Ultimate Fade-in slideshow (v2.4)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

3) Describe problem: I am trying center description text, but i donīt know how to get it.
I tried modify fadeslideshow code, using text-align:center and with
margin-left: auto;
margin-right: auto;

but i didnīt get to center description text.
The code I tried to modify is the next lines:
[CODE].css({position:'absolute', left:0, top:0, width:setting.$descpanel.width()-8, padding:'4px'})
.eq(0).css({background:'yellow', opacity:0.7}).end() //"descpanelbg" div
.eq(1).css({color:'black'}).html(setting.closebutton + setting.longestdesc).end() //"descpanelfg" div[CODE]

someone can help me !!
thank you ;)

01-18-2012, 10:55 PM
Don't edit the script, use css style. Put this in your stylesheet:

.descpanelfg {
text-align: center;

Or make a stylesheet like this one and put it in the head of the page:

<style type="text/css">
.descpanelfg {
text-align: center;

01-19-2012, 08:37 AM
hi John

thank you for your help.
Now all is Ok.