32 users online (0 members and 32 guests)  


  Results 1 to 2 of 2

Related

  1. Replies: 2
  2. centering DIV in IE    Forum: CSS Forum
    Replies: 4
  3. Vertical Scrollin with no Vertical Scroll Bar    Forum: Website Scripts Forum
    Replies: 1
  4. Centering Content!    Forum: HTML Forum
    Replies: 1
  1. #1
    naylor83's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2004
    Posts
    1

    Vertical centering of content in a DIV?

    HI!

    I'm using DIVs set to a certain height. Is there any nice way to vertically center the content of these DIVs? See the link below: It's the thumbnails and descriptions I'm trying to center.

    http://home.swipnet.se/naylor/david/test/nat.html

    (What a great forum, by the way!)

    /David Naylor

  2. #2
    krak_d's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Mar 2004
    Location
    Liverpool
    Posts
    166
    Quote Originally Posted by naylor83
    HI!

    I'm using DIVs set to a certain height. Is there any nice way to vertically center the content of these DIVs? See the link below: It's the thumbnails and descriptions I'm trying to center.

    http://home.swipnet.se/naylor/david/test/nat.html

    (What a great forum, by the way!)

    /David Naylor
    Hi David,

    at present vertical centering is only possible for content of TD's.

    eg;

    table
    {
    width: 100%;
    height: 100%;
    }

    td
    {
    vertical-align: middle;
    }


    Krak_d



Tags for this Thread