- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Align text for-mobile devices
SOLVEOct 5, 2017 11:57 AM
Is there a way to adjust mobile styles so that specific text is left-justified on desktop but centered on mobile devices?
I'm trying to do this for the blue copy in this email:
thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Accepted Solutions
Oct 6, 2017 2:35 PM
You would need to add a media query and a class to the text you want centered. You can add the class by clicking the cog to edit css declarations and add it to the custom css class box.
For example the media query would look like this:
<style>
@media screen and (max-width:479px) {
.centered-mobile p{
text-align:center;
}
}
</style>
In this example any paragraph tags within the class .centered-mobile will be center aligned on devices smaller than 479px.
Cheers,
Reg
www.rdcoding.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content