Topic: text-align: center not working when text is short | WP Masonry Layout

text-align: center not working when text is short

Home Forums Pro Version text-align: center not working when text is short

This topic contains 7 replies, has 2 voices, and was last updated by  Masonry Guy 1 year, 3 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #8042 Reply

    Juan Barragan
    Participant

    Hello support; using below code to center text inside the individual image on hover:

    .wmle_container .wmle_item .wmle_post_title a {
    text-align: center !important;
    font-weight: normal !important;
    }

    Works when the text is long and goes to the second line; see Urban proyects Machangara Park at the top left; please view HERE.

    But, when the text is short, it doesn´t center; it aligns to the left like in Retail – Cyrano, the second image top left.

    Please provide a working code.

    Thanks

    #8050 Reply

    Masonry Guy
    Keymaster

    Hi Juan,

    Can you please send me your site url here ?

    Thanks

    #8056 Reply

    Juan Barragan
    Participant
    #8063 Reply

    Masonry Guy
    Keymaster

    Hi Juan,

    Please use this css and it should fix your issue.

    .wmle_container .wmle_item .wmle_post_title{width:100%;padding-left:0px !important;padding-right:0px !important;text-align:center;}

    Thanks

    #8079 Reply

    Juan Barragan
    Participant

    Hello Masonry Guy;

    No. Not working.

    Thanks

    #8098 Reply

    Masonry Guy
    Keymaster

    Hi Juan,

    Where did you placed this code ? I don’t see it in the site yet. Can you please use My Custom Css plugin and keep this css there ?

    Hope this helps.

    Thanks

    #8103 Reply

    Juan Barragan
    Participant

    Hello Masonry Guy; It seems I made a mistake not updating the custom css.

    Your code is working fine. http://anagabrielasalvador.com/slider/projects/

    Sorry.

    Thanks for your great help!

    #8126 Reply

    Masonry Guy
    Keymaster

    Glad it is working for you.

    If you have a few mins for us, can you please write us a review for our plugin at https://wordpress.org/support/view/plugin-reviews/wp-masonry-layout?filter=5? This will help us grow and makes easier for others to decide to use the plugin.

    Thanks

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: text-align: center not working when text is short
Your information: