- This topic has 4 replies, 2 voices, and was last updated 8 years, 10 months ago by
Andrew Misplon.
- AuthorPosts
- June 26, 2016 at 2:20 pm #3976
Andrew MisplonKeymasterHi svepet
If you remove the characters you’ve used between each word then you can add the following to your Custom CSS plugin:
/* Page Titles */ .page .site-content > .entry-header h1.entry-title { text-align: justify; text-align-last: justify; width: 100%; }
June 27, 2016 at 11:50 am #3986
svepetParticipantThis reply has been marked as private.June 27, 2016 at 3:50 pm #3988
Andrew MisplonKeymasterHere is what it would look like to only target this page:
/* Page Titles */ .page-id-3949.page .site-content > .entry-header h1.entry-title { text-align: justify; text-align-last: justify; width: 100%; }
There isn’t really any easy to align page title words with content below, it’ll get complex. You’d need to give each word a span tag and then try target each tag with spacing and then drop that spacing as you get to mobile…are you certain this feature is required 🙂
You might add spans around each word in the title like this:
<span>PR</span> <span>Events</span> <span>Promotion</span> <span>Congress</span>
And then manually set each margin as follows:
@media (min-width: 1024px) { .page-id-3949 .entry-title span { display: inline-block; } .page-id-3949 .entry-title span:nth-of-type(1) { margin-right: 20px; } .page-id-3949 .entry-title span:nth-of-type(2) { margin-right: 20px; } .page-id-3949 .entry-title span:nth-of-type(3) { margin-right: 20px; } .page-id-3949 .entry-title span:nth-of-type(4) { margin-right: 0; } }
June 27, 2016 at 3:52 pm #3989
Andrew MisplonKeymasterFor some reason CSS lines are being removed, here it is spaced correctly: http://pastebin.com/W8CfzaDP
- AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.