Tagged: x
-
AuthorPosts
-
May 30, 2016 at 4:47 am #1016238
nikolasaParticipantI’ve got text I’d like centered in mobile, but it is in a column. I’d like all columns centered on all pages. Attached is how it looks now on desktop (which is fine, left is aligned right and right column is aligned left) but in mobile I’d like both columns centred (other attached image is how it looks).
Thanks in advance!
May 30, 2016 at 4:48 am #1016241
nikolasaParticipantThis reply has been marked as private.May 30, 2016 at 5:07 am #1016255
ThaiModeratorHi There,
Please add the following CSS under Customizer > Custom > Global CSS:
@media (max-width: 767px){ .page-id-24 #x-section-5 .cs-ta-right, .page-id-24 #x-section-5 .cs-ta-left, .page-id-24 #x-section-7 .cs-ta-right, .page-id-24 #x-section-7 .cs-ta-left { text-align: center !important; } }http://i.imgur.com/Pe4jnHQ.png
http://i.imgur.com/YNhXAsf.png
Hope it helps 🙂
May 30, 2016 at 6:19 pm #1017119
nikolasaParticipantPerfection!! I’ve tried to do the same on the home page but am having trouble working out which tags to include…
@media (max-width: 767px){ .page-id-5 #x-section-1 .cs-ta-right, .page-id-5 #x-section-1 .cs-ta-left, .page-id-5 #x-section .cs-ta-right, .page-id-5 #x-section .cs-ta-left { text-align: center !important; } }I am using inspector to try to identify what code to use but am stumped. Sorry I’ve managed to get the rest of the page centred just that area of text is being stubborn! xox thanks!! Simply LOVE your support!!
May 30, 2016 at 6:20 pm #1017121
nikolasaParticipantThis reply has been marked as private.May 30, 2016 at 9:32 pm #1017404
FriechModeratorHi There,
Please check your whole custom CSS here: http://csslint.net/ address all the errors (you can ignore the warnings).
And then add this on your @media (max-width: 767px) block.
.home #x-section-1 .x-text { text-align: center; }Hope it helps, Cheers!
May 31, 2016 at 1:42 am #1017612
nikolasaParticipantThis is what I have but it’s not working
media (max-width: 767px){ .home #x-section-1 .x-text { text-align: center !important; }May 31, 2016 at 1:44 am #1017618
nikolasaParticipantWith the extra } at the end, sorry didn’t fully copy it but its there
May 31, 2016 at 1:48 am #1017623
nikolasaParticipantWith the extra } at the end, sorry didn’t fully copy it but its there.
I’d like both columns to be centred – and neither is.
May 31, 2016 at 1:56 am #1017633
Paul RModeratorHi,
Please try adding this as well.
media (max-width: 767px){ .home #x-section-1 .x-column.x-sm { padding:0 !important; } }Hope that helps
June 1, 2016 at 1:00 am #1019471
nikolasaParticipantOk, that is still not working >
@media (max-width: 767px){ .home #x-section-1 .x-text { text-align: center; } }Attached is what we get. I’ve checked all my css and all errors have been sorted.
June 1, 2016 at 1:04 am #1019476
nikolasaParticipantThis is what I have in total:
@media (max-width: 767px){ .home #x-section-1 .x-text { text-align: center !important; } } @media (max-width: 767px){ .home #x-section-1 .x-column.x-sm { padding:0 !important; } }June 1, 2016 at 1:44 am #1019510
ChristopherModeratorHi there,
Please update your code to :
@media (max-width: 767px){ .home #x-section-1 .x-text,.home h4 { text-align: center !important; } .home #x-section-1 .x-column.x-sm { padding:0 !important; } }Hope it helps.
June 2, 2016 at 7:26 pm #1023201
nikolasaParticipantPERFECTION!! That worked perfectly!
June 2, 2016 at 8:49 pm #1023434
NicoModeratorHappy to hear that.
Feel free to ask us again.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1016238 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
