Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Vertical Align Working in CodePen, But not in WP

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #162042
    siouxfan45
    Participant

    I vertically aligned my text next to my image in CodePen: http://codepen.io/anon/pen/FAvhk

    Here’s the problem – when I moved it over to a WordPress page, it decided it didn’t want to behave. I’m using this code in the first text/image combo at this URL: http://wclix.com/ppc/

    The image has resized itself to be smaller and it isn’t even vertically aligned.

    Not sure why this would happen, can anybody help?

    #162044
    chrisburton
    Participant
    max-width: 100%;
    

    That appears to be the cause.

    #162047
    siouxfan45
    Participant

    Thanks, I found it. For anybody who may find this post on the Google machine… I had “max-width: 100%” applied to all my images.

    #162048
    chrisburton
    Participant

    I don’t think you should remove that. Instead, I’d find another way around this. Hint: inline-block

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.