-
AuthorPosts
-
November 25, 2022 at 2:12 pm #1373873
How do I place text at the bottom of certain a 100% color section? Can this be a option to choose from in each section (top, middle or bottom?
November 26, 2022 at 7:06 pm #1373962Hey Michael,
Please try this css:.avia-section.av-minimum-height .container .content { vertical-align: bottom; }
please see the test page linked below.
Best regards,
MikeNovember 26, 2022 at 7:56 pm #1373963That look good. But do I have control over it? I don’t want all sections whit the text on the bottom. Some I want text in the center or top. So can I place this css in the section itself?
November 26, 2022 at 8:09 pm #1373964Hi,
The middle alignment is the default, so you only need to assign the top & bottom.
So use the custom classes text-bottom & text-top
and this css.avia-section.av-minimum-height.text-bottom .container .content { vertical-align: bottom; } .avia-section.av-minimum-height.text-top .container .content { vertical-align: top; }
Best regards,
MikeNovember 26, 2022 at 8:28 pm #1373965Thanx Mike, this is clear – but it’s not working here. What am i doing wrong?
November 26, 2022 at 8:34 pm #1373968Hi,
Thanks for the screenshot, I see that you have added css to the custom class field, please only add the custom class that you want for the element in the field, like this:
text-bottom
or
text-top
note that there is no dot before the class, this is important.
then in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field add the css:.avia-section.av-minimum-height.text-bottom .container .content { vertical-align: bottom; } .avia-section.av-minimum-height.text-top .container .content { vertical-align: top; }
the css will only work on the elements with the custom class.
Best regards,
MikeNovember 26, 2022 at 8:46 pm #1373972Clear! Thanx Mike that is amazing!! I tested this, but how come that it is not completely at the bottom? No problem for now, just have to do some textual adjustments then :-) Int’t it better to in the child themes style.css or doesnt that matter?
November 26, 2022 at 8:59 pm #1373974Hi,
Glad this helped. the inner div .content has a top and bottom 50px padding:
if you want to remove this use this css instead:.avia-section.av-minimum-height.text-bottom .container .content { vertical-align: bottom; padding: 0; } .avia-section.av-minimum-height.text-top .container .content { vertical-align: top; padding: 0; }
the results:
You can add the css to your child theme stylesheet if you wish, unless there is anything else we can help with on this issue, shall we close this then?Best regards,
MikeNovember 26, 2022 at 9:10 pm #1373978This reply has been marked as private.November 26, 2022 at 9:13 pm #1373979Wait Mike, if i only want to place the link whit the arrow at the bottom, can i place “text-bottom” in the CSS class of this text block as well?
November 26, 2022 at 9:20 pm #1373981November 26, 2022 at 9:26 pm #1373982Hi Mike,
I am sorry – i mean can i also place this link (2) on the bottom and the text (2) on the top? Maybe by placing it in two separate 1/1 columns and gibing it text-top (1) and text-bottom (2) in the custom classes… see the image link belowNovember 26, 2022 at 9:56 pm #1373985Hi,
No, unfortunately not, the behavior of the inner content is set by the color section parent, not the inner elements.
So for this we will need to start over, so we have a color section that is 100% height and two text elements inside:
and a custom class to each color section, either top-element or bottom-element
then use this css:.top-element { top: 0; position: absolute; } .bottom-element { bottom: 0; position: absolute; }
Best regards,
MikeNovember 26, 2022 at 9:59 pm #1373986Mike, thanx for your help!! :-)
November 26, 2022 at 10:00 pm #1373988Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘How do I place text at the bottom of a 100% color section?’ is closed to new replies.