Tagged: x
-
AuthorPosts
-
August 28, 2016 at 2:45 am #1150276
yhshin1020ParticipantHey,
I have a page set up with a wall of text and I basically want to center everything to the middle of the content band while aligning all the text to the left.
I know this can be done with margin: 1em auto; but it doesnt seem to work.
Please refer to the information below.
Thank you.
August 28, 2016 at 2:47 am #1150277
yhshin1020ParticipantThis reply has been marked as private.August 28, 2016 at 2:56 am #1150283
ChristopherModeratorHi there,
Please find this code :
.mpc-image { display: inline-block; overflow: hidden; vertical-align: bottom; max-width: 100%; -webkit-box-sizing: border-box; box-sizing: border-box; }And update it to :
.mpc-image { overflow: hidden; vertical-align: bottom; max-width: 100%; -webkit-box-sizing: border-box; box-sizing: border-box; max-width: 70ch !important; margin: 1em auto; }Add this as well :
p#messagefrom { text-align: left !important; overflow: hidden; max-width: 70ch !important; margin: 1em auto; }Hope it helps.
August 28, 2016 at 3:21 am #1150305
yhshin1020ParticipantThis reply has been marked as private.August 28, 2016 at 3:30 am #1150310
Rue NelModeratorHello There,
Please update the css code and use this:
.letterhead{ text-align: left !important; font-size: 19px !important; overflow: hidden; max-width: 70ch !important; margin: 1em auto; }And then in your text, you can apply a custom class “letterhead” so that it will also affect that element.
Hope this make sense.
August 28, 2016 at 4:42 am #1150328
yhshin1020ParticipantThis reply has been marked as private.August 28, 2016 at 4:48 am #1150330
ChristianModeratorTo center, please add
text-align: center;to .letterheaderThanks.
August 28, 2016 at 4:48 am #1150331
yhshin1020ParticipantThis reply has been marked as private.August 28, 2016 at 4:49 am #1150332
yhshin1020ParticipantThis reply has been marked as private.August 28, 2016 at 4:54 am #1150336
ChristopherModeratorHi there,
Please use this code :
@media (min-width:979px){ .letter .x-container { width: 50% !important; margin: 0 auto; } }Hope it helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1150276 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
