SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard
    Join Date
    Mar 2002
    Location
    Bristol, UK
    Posts
    2,240
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Absolute Middle Alignment

    Hi all,

    In the good ol' days of HTML formatting it was possible to use align="absmiddle" to line up images nicely.

    However, I cannot do this with CSS! I have tried style="vertical-align: absmiddle;" but this hasn't worked. Neither has style="vertical-align: absolute-middle;". Can anyone shed some light?

    And does it make a difference that I'm using a type="image" form input rather than a plain image?

    Thanks in advance,

    -Sam
    Sam Hastings

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Is your image in a table cell, or somewhere else? If in a table cell, it should align vertically in the center by default.


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
  •