Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
lines

Code to left align text on mobile only (York)

Recommended Posts

Hi, what's the CSS code to align all header and body text to align left for mobile, but remain centred for desktop? Thanks!

Share this post


Link to post
13 hours ago, lines said:

Add to Home > Design > Custom CSS

@media screen and (max-width:640px) {
.overlay-nav-wrapper {
    text-align: left;
    margin-left: 0;
    padding-left: 2vw;
}
main#page * {
    text-align: left !important;
}
}

 


 Send me a message if you have any questions.

OFF forum from Jan 16 - Jan 31.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...