Home › Forums › Pro Version › text-align: center not working when text is short Tagged: text-align: center not working when text is short This topic has 7 replies, 2 voices, and was last updated 6 years, 7 months ago by Masonry Guy. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts October 14, 2015 at 12:58 pm #8042 Juan BarraganParticipant 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 October 14, 2015 at 6:39 pm #8050 Masonry GuyKeymaster Hi Juan, Can you please send me your site url here ? Thanks October 14, 2015 at 9:12 pm #8056 Juan BarraganParticipant Here http://anagabrielasalvador.com/slider/projects/ Thanks October 15, 2015 at 3:32 pm #8063 Masonry GuyKeymaster 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 October 16, 2015 at 1:13 am #8079 Juan BarraganParticipant Hello Masonry Guy; No. Not working. Thanks October 16, 2015 at 6:03 pm #8098 Masonry GuyKeymaster 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 October 16, 2015 at 11:56 pm #8103 Juan BarraganParticipant 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! October 18, 2015 at 4:08 pm #8126 Masonry GuyKeymaster 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 Author Posts Viewing 8 posts - 1 through 8 (of 8 total) The forum ‘Pro Version’ is closed to new topics and replies. Lite worked fine but not Pro →