SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2010
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Align big text with images

    Hello,

    I need to center some text with the <img> surrounding it.
    Vertical align works well with small text but not big one.

    Sample here

    Any ideas?
    Thanks!

  2. #2
    Ripe Tomatos silver trophybronze trophy Rayzur's Avatar
    Join Date
    Jun 2007
    Location
    Texas
    Posts
    4,174
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Set vertical-align on both, span & img

    Code:
    .packs {
        text-align:center;
    }
    .packs span,
    .packs img {
        vertical-align:middle;
    }
    .packs span {
        font-size:110px;
        color:#FE660D;
    }

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2010
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow, thanks!


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
  •