Results 1 to 3 of 3

Thread: Centering Featured content slider

  1. #1
    Join Date
    Aug 2006
    Posts
    89
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Centering Featured content slider

    1) Script Title: Featured contentslider

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tentslider.htm

    3) Describe problem: i cant seem to align the main div center

    i have used text-align: center in all divs


    http://img246.imageshack.us/my.php?image=snap1to7.png

  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

    Text alignment is generally not the best way to center elements. In fact, it should for the most part only be used for an element containing text to center that text within that element. We would need to see your page to offer a definite solution. However, in general, if you remove text alignment from the division and its parent elements, give it a specific width, and make its margin:

    Code:
    margin: 0 auto;
    That usually works. This requires a valid URL DOCTYPE of HTML 4.01 Transitional or greater. If you want more help:

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

  3. #3
    Join Date
    Aug 2006
    Posts
    89
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    http://smile4me.x24hr.com/drupal/?q=...safer-browsing

    hi i tested it in this post here

    how can i get the thumbs closer together and everything centered?

    thanks

    and where's the prev and next button?
    Last edited by chas; 09-06-2008 at 11:28 PM.

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
  •