Tagged: x
-
AuthorPosts
-
May 20, 2016 at 12:01 am #1000928
leverpunchParticipantHi Team,
After searching through the forum, I’m still facing an issue with aligning my elements vertically in a row (please see screenshot – “X Theme – Alignment Issue).
I applied the following codes and methods:
1. Style CSS
.center-custom-image {
float: none;
display: inline-block;
vertical-align: middle;
}.x-section .x-container.marginless-columns .x-column {
vertical-align: middle !important;
}.x-section .x-container.marginless-columns .x-column .x-img{
margin-bottom: 0;
}2. Apply “center-custom-image” to the class of every image
Is this the best way to achieve vertical center alignment? The image doesn’t seem to be totally centralised (especially on mobile – not center aligned horizontally).
Please advise.
Thanks!
AlvinMay 20, 2016 at 12:02 am #1000930
leverpunchParticipantHere’s the link to the page: http://bit.ly/1rY33eq
May 20, 2016 at 12:50 am #1000987
FriechModeratorMay 24, 2016 at 9:32 am #1007334
leverpunchParticipantHi,
I’m facing difficulty aligning all my elements in a column to align vertically and horizontally. I have no wish to add padding in order to achieve that.
Is there a way to create a universal class such that I can just apply it to those columns I wish to centralise the elements?
Please advise.
Thanks!
AlvinMay 24, 2016 at 9:33 am #1007339
leverpunchParticipantThis reply has been marked as private.May 24, 2016 at 10:06 am #1007389
JoaoModeratorHi There,
You can add this code to your column Style Box
text-align: center;
Please see img attached.
Hope that helps,
Joao
May 24, 2016 at 10:16 am #1007408
leverpunchParticipantHi Joao,
Thanks for the reply. It doesn’t work.
Please advise.
Alvin
May 24, 2016 at 10:53 am #1007496
JoaoModeratorHi Alvin,
I am sorry my bad, I didn´t realize you were using Virtual Composer not Cornerstone.
I Can see on your code that your text is aligned right, and the button also, You can try setting the aligndment of both for center and your website will look like the picture attached:
If you cannot figure out how to do it inside Visual Composer,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
So we will be able to have a quick look and help with the issue, please check the results on the image and see if you will be happy with that.
Thanks,
Joao
May 24, 2016 at 11:15 am #1007521
leverpunchParticipantThis reply has been marked as private.May 24, 2016 at 12:50 pm #1007670
JoaoModeratorHi There,
I have changed the aligned of your text and button to center.
Please have a look.
Let us know if you would like to adjust something else.
Joao
May 24, 2016 at 1:11 pm #1007691
leverpunchParticipantHmmm you ignored my previous message.
I want the text to be aligned right, but the entire text element to be aligned horizontally & vertically center.
May 24, 2016 at 2:29 pm #1007809
JoaoModeratorHi there,
I am sorry, I didnt ignore your message I just didnt understand it, I apologize.
I still don´t understand what is your goal, could you please make a mock-up or sketch of your goal so we can better help you achieving it, sometimes is? I am sure it is possible once we understand what you want 🙂
Thanks,
Joao
May 24, 2016 at 10:55 pm #1008434
leverpunchParticipantThis reply has been marked as private.May 25, 2016 at 1:17 am #1008574
Paul RModeratorHi Alvin,
To achieve that, you can add this under Custom > CSS in the Customizer.
@media (min-width: 767px) { .v-align-section { position:relative; } .v-align-section .x-column.x-1-2.v-center { position: absolute; right: 0; top: 50%; margin-top:-94px; } }Hope that helps.
May 25, 2016 at 1:22 am #1008577
leverpunchParticipantThanks! It looks awesome on desktop, but not mobile. How can I add a gap between the image & text? See attached screenshot.
Also, how I can apply this universally? – if i have other 2-column rows that I wish to centralise the text element vertically & horizontally?
Would be awesome if you can explain to me how that set of codes you provides works.
Thanks!
Alvin -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1000928 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>

