Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1016238
    nikolasa
    Participant

    I’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!

    #1016241
    nikolasa
    Participant
    This reply has been marked as private.
    #1016255
    Thai
    Moderator

    Hi 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 🙂

    #1017119
    nikolasa
    Participant

    Perfection!! 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!!

    #1017121
    nikolasa
    Participant
    This reply has been marked as private.
    #1017404
    Friech
    Moderator

    Hi 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!

    #1017612
    nikolasa
    Participant

    This is what I have but it’s not working

    media (max-width: 767px){
     .home #x-section-1 .x-text {
    	text-align: center !important;
    }
    #1017618
    nikolasa
    Participant

    With the extra } at the end, sorry didn’t fully copy it but its there

    #1017623
    nikolasa
    Participant

    With 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.

    #1017633
    Paul R
    Moderator

    Hi,

    Please try adding this as well.

    
    media (max-width: 767px){
     .home #x-section-1 .x-column.x-sm {
        padding:0 !important;
    }
    }
    

    Hope that helps

    #1019471
    nikolasa
    Participant

    Ok, 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.

    #1019476
    nikolasa
    Participant

    This 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;
    }
    }
    
    #1019510
    Christopher
    Moderator

    Hi 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.

    #1023201
    nikolasa
    Participant

    PERFECTION!! That worked perfectly!

    #1023434
    Nico
    Moderator

    Happy to hear that.

    Feel free to ask us again.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1016238 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>