Tagged: x
-
AuthorPosts
-
January 11, 2017 at 3:42 pm #1326166
EricParticipantHey I’ve looked through the forums but I can’t quite figure this out. Basically what I’m trying to do is create spacing between text using HTML so that they’re evenly lined up on multiple lines, which is the effect that would be achieved in a word document by clicking ‘tab’ on the keyboard. In the end the only thing that got me close was to create separate columns and line up the text accordingly (see screenshot S1), which looks perfect when the browser is fully open (see screenshot S2), however when the browser is smaller (or when I view the page on mobile) the columns collapse (as you can see from screenshot S3).
I’m sure there’s a much easier way to achieve the design in screenshot S2 but I can’t figure it out. Please advise, and thanks in advance for your help.
January 11, 2017 at 3:43 pm #1326174
EricParticipantThis reply has been marked as private.January 11, 2017 at 10:22 pm #1326694
LelyModeratorHello Eric,
Thank you for the screenshots.
To achieve the design in S2 we can use columns shortcode inside text element:[x_column type="1/3"]Title<br>Genre<br>Type<br>Pitch:<br>Logline[/x_column] [x_column type="2/3" last="true"] <strong>Working Title</strong><br>Action, Thriller<br>Feature-Length<br>Silence of the lambs<br>sdsdsds sdsds sdsds sds ds sdsd sdsdsd ghggh ssddsd sdsds [/x_column]See this sample:http://screencast-o-matic.com/watch/cbVlf3Qpls
Feel free to adjust column size.Hope this helps.
January 11, 2017 at 10:43 pm #1326723
EricParticipantHey thanks for the reply but unfortunately it didn’t work. The column shortcode that you gave me was basically the same thing that I had. In both cases it looks fine when the screen is wide but when the browser is small (or when it’s on mobile), the content collapses, which throws the formatting off as the first column stays above the second column (see screenshot S4).
Any other ideas on how this could be fixed?
Thanks again for your help.
January 12, 2017 at 1:04 am #1326844
Rue NelModeratorThis reply has been marked as private.January 12, 2017 at 9:31 am #1327305
EricParticipantThis reply has been marked as private.January 12, 2017 at 12:55 pm #1327567
Nabeel AModeratorHi again,
Can you please provide the URL of the page in question so we can take a look?
Thanks!
January 12, 2017 at 1:12 pm #1327591
EricParticipantThis reply has been marked as private.January 12, 2017 at 5:12 pm #1327888
NicoModeratorHi There,
Thanks for the URL and login details.
Add this in your customizer > Custom > CSS:
.single-x-portfolio .single-x-portfolio{ padding: 0px; }Hope it helps.
Let us know how it goes.
Thanks.
January 12, 2017 at 6:43 pm #1327937
EricParticipantSorry but that did nothing. Any other ideas?
I assumed that I would need to add something to this code:
.x-block-grid {
margin: 0;
padding: 3px;
}But so far nothing I’ve tried has worked. Please advise.
Thanks
January 12, 2017 at 11:05 pm #1328297
Rue NelModeratorHello There,
Thanks for updating in! Do you want some spacing like this?

If that is the case, please edit your page in Cornerstone and insert the following custom css in the settings tab, Settings > Custom CSS
.x-block-grid>li { line-height: 1em; }You may increase the line height from 1.1em to 1.nem where n => 9.
Hope this helps.
January 12, 2017 at 11:16 pm #1328306
EricParticipantThis reply has been marked as private.January 13, 2017 at 1:19 am #1328407
Rue NelModeratorHello There,
Thank you for the clarifications. To be able to have the first grid item closer to the second grid item, please use this code:
.x-block-grid.two-up>li:nth-child(2n+1) { max-width: 20%; }Feel free to increase or decrease the percentage if needed.
Please let us know how it goes.
January 13, 2017 at 8:32 am #1328773
EricParticipantThanks for the code. I set the max-width to 25%, which is the exact spacing I wanted, however although the spacing is good now, the second grid items are very narrow because of it. Is there any way I can keep the 25% spacing while making the second grid items wider (as seen in Screenshot S6).
If I can figure that out then it will be perfect. Let me know, and thanks again for your help.
January 13, 2017 at 12:49 pm #1329076
Nabeel AModeratorHi again,
Try adding the following code in your Customizer:
.single-x-portfolio .x-main { max-width: 800px !important; } .single-x-portfolio .x-block-grid.two-up>li { width: 70% !important; }Let us know how this goes!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1326166 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
