SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Spirit Coder allspiritseve's Avatar
    Join Date
    Dec 2002
    Location
    Ann Arbor, MI (USA)
    Posts
    648
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Vertical align in CSS?

    Is there any way to vertically align content in a <div>? Vertical-align doesn't work. Is there a hack or anything?

    (Spirit)

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Vertical-align only works on inline elements and table cells. A <div> is a block-level element; try a <span> instead.


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
  •