Forums

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

Home Forums CSS [Solved] Can't center align text over image

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #195840
    ckubs
    Participant

    My wordpress theme doesn’t use WP post formats by default. I pasted the code that enables them, in a custom functions.php file and now I want a quote article. To make use of my theme featured image( in single.php), to put on top of it my quoted text( called with a custom field, done that).

    The only problem I have is CSS related as I can’t align the text in center, over image. Actually I can’t put it over the bottom of the image neither. If I add “bottom: 0;” to my css, as it is now, the Text goes on top, outside the image.

    I didn’t used Codepen to demo my problem because I’m not shure there isn’t another line of CSS from my theme that is responsible for that. Here is my article url( the quote has yellow background for now) if someone can help me a little.

    Thank you.

    #195842
    Paulie_D
    Member

    The image is floated…remove the float.

    #195845
    ckubs
    Participant

    Thank you. It’s solved.

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