Results 1 to 3 of 3

Thread: :: Ultimate Fade-in slideshow (v2.4) - center description text

  1. #1
    Join Date
    Jan 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default :: Ultimate Fade-in slideshow (v2.4) - center description text

    1) Script Title: :: Ultimate Fade-in slideshow (v2.4)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nslideshow.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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Don't edit the script, use css style. Put this in your stylesheet:

    Code:
    .descpanelfg {
    	text-align: center;
    }
    Or make a stylesheet like this one and put it in the head of the page:

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

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jan 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default thank you

    hi John

    thank you for your help.
    Now all is Ok.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •