Tagged: x
-
AuthorPosts
-
January 7, 2017 at 3:00 am #1319971
Pbalazs89ParticipantHi there,
I am wondering if there is a way to edit the css of recent posts to have the excerpts appear on the right of the img.
This is where I am:
http://biokutatas.decorolux.com/
This is where I want to be:
Thanks!
January 7, 2017 at 5:26 am #1320031
ChristopherModeratorHi there,
Please add following code in Customize -> Custom -> Global CSS :
.x-recent-posts-img { float: left; width: 52%; margin: 2%; }Hope that helps.
January 9, 2017 at 5:17 am #1322141
Pbalazs89ParticipantHi Christopher,
Thank you so much, that helped.
Is there a way to influence the height of the img? So that text flows around it like on the example page?
I tried to add the ‘height’ attribute but it does not seem to work.Thanks again!
January 9, 2017 at 5:55 am #1322176
ChristopherModeratorHi there,
Add this code as well :
.x-recent-posts .x-recent-posts-content { float: right; width: 50%; border: none; }Hope it helps.
January 11, 2017 at 3:18 am #1325201
Pbalazs89ParticipantThanks for your help. All looks great.
One more question:
How do I format this to look well on mobile? Right now, the text part is about 500% longer. Is there a way to maximize the height of the ‘recent posts’ box on mobile?
Thanks!
January 11, 2017 at 5:30 am #1325313
Paul RModeratorHi,
You can add this under Custom > Edit Global CSS in the Customizer.
@media (max-width: 767px) { .x-recent-posts a.x-recent-post1 { width:100%; } .x-recent-posts .x-recent-posts-img, .x-recent-posts .x-recent-posts-content { float:none; width:100%; } .x-recent-posts .x-recent-posts-img { margin:0 0 10px; } }Hope that helps.
January 11, 2017 at 7:55 am #1325544
Pbalazs89ParticipantThank you it looks perfect!
January 11, 2017 at 8:44 am #1325592
ThaiModeratorYou’re most welcome 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1319971 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
