-
AuthorPosts
-
November 5, 2018 at 1:01 pm #1029869
Hi,
I have a masonry element to display portfolio items. We want the Title and excerpt on 2 different positions over the image. Title on top of the image with a colored background and the excerpt on the bottom of the element, also with a custom background.
See mockup.
I use the following code to change background color and font color.#top .av-caption-style-overlay .av-masonry-entry .av-masonry-entry-title { color: white!important; background: #98d52e!important; padding:0px !important; margin:0px !important; } .av-masonry-entry .av-masonry-entry-content { background: #e1e1e1!important; color:#98d52e!important; }
What code can I use to change the position of Title (to top) and excerpt (to bottom) without any padding/margins and full width?
THX FreekUPDATE:
I managed to get what I want using this post: with the following css code:.av-masonry-entry .av-masonry-entry-title { position: absolute; top: 0; z-index: 1000; width: 100%; text-align: center; background:rgba(152, 213, 46, 0.7); padding: 10px; color: white!important; } .av-masonry-entry .av-masonry-entry-content { position: absolute; bottom: 0; z-index: 1000; width: 100%; text-align: center; color: white!important; font-size: 20px; background: rgba(255, 255, 255, 0.3); }
Only 1 question left. Why is there a small gap on the left side of the excerpt text? see mockup : mockup site
- This topic was modified 6 years ago by Freek.
November 6, 2018 at 5:37 am #1030196Hey Freek,
Please try the following in Quick CSS under Enfold->General Styling:
.av-masonry-entry .av-inner-masonry-content { padding: 0; }
Best regards,
RikardNovember 6, 2018 at 9:18 am #1030303Unfortunately this does not work. The complete code i use now is:
/* excerpt position and styling */ .av-masonry-entry .av-masonry-entry-content { position: absolute; bottom: 0; z-index: 2000; text-align: left; color: black!important; font-size: 20px; background: rgba(255, 255, 255, 0.7); width: 100% !important; padding: 0; }
Strange because the code for the title (which is the same as for the excerpt) works fine.
Any one?
THX FreekNovember 6, 2018 at 8:51 pm #1030577Hi Freek,
Best regards,
VictoriaNovember 6, 2018 at 8:52 pm #1030578Hi Freek,
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.