-
AuthorPosts
-
June 19, 2021 at 9:35 pm #1306533
Hi,
I want the graphic – the headshot – to sit flush to the bottom of the section.
I’ve removed all the margins and paddings I can find but it’s still there.
please helpThis is related to the headshot on the top section of the site.
URL listed in the private content section.June 20, 2021 at 9:19 pm #1306588Hey psipi,
Thank you for your patience, please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:#top.home #av_section_1 > div > main > div > div > div > .avia-builder-el-2 > section:nth-child(2) > div > p > img.wp-image-1508 { padding: 0; margin: 0; } #top.home #av_section_1 > div > main > div > div > div > .avia-builder-el-2 > section:nth-child(2) > div > p { margin: 0; }
Best regards,
MikeJune 21, 2021 at 12:37 pm #1306719Thanks Mike, I’ll try this now.
If I wanted this to be universal ?
Eg for other sections
Or different images ?
Is there a more generalised version?Curious if this is a css bug or something I’ve missed ?
June 21, 2021 at 12:41 pm #1306720Ps seemed to work for desktop ,
Not mobile ?June 22, 2021 at 12:39 pm #1306920Hi,
For mobile please try this:@media only screen and (max-width: 840px) { #top.home #av_section_1 > .container > .content { vertical-align: bottom; } #top.home #av_section_1 > div > main > div > div > div > .avia-builder-el-2 { margin-bottom: 0; } }
To have something more universal you will need to add some custom classes to the elements, it looks like your structure is:
color section > 3/5 column > text block element (second of two) > embedded image
Please add a different custom class to each one of these, and remove the css I’ve posted above and I will re-write using your new custom classes. Also please post the custom classes you have added to each of these elements so I can find them easier.Best regards,
MikeAugust 21, 2021 at 8:19 pm #1317749Thanks
August 21, 2021 at 11:15 pm #1317760August 24, 2021 at 12:22 pm #1318115This reply has been marked as private.August 25, 2021 at 1:16 pm #1318284Hi,
While it is true that many elements have margin & padding settings, what you are doing doesn’t have that option, for your headshot you are adding is plain image inside the text block element
neither the text block element or the WP plain image have margin or padding settings, but even if they did it would not solve because the margin is coming from the paragraph tag [p] inside the text element, not the text element itself.
For your new question, on the very large screen the color section’s vertical-align: middle is showing, to correct please use this css:
#top.home #av_section_1.avia-section.av-minimum-height .container .content { vertical-align: bottom; }
After applying the css, please clear your browser cache and check.
So you have a color section with a background image with a column > text block > p > image that you want aligned to the bottom of your background image. The 3 snippets of css above achieve this, but you said that you may like to use this configuration elsewhere, so I recommend adding custom classes to these elements and the snippets and saving the block as a Template so it will be easier for you in the future.
Please let us know if you need assistance adding the custom classes & adjusting the css, if you do please copy this section to a new test page, because creating a template saves the whole page not just this set of elements, and include an admin login in the Private Content area so we can adjust the custom classes and css to work together, then you can save as a template.Best regards,
MikeAugust 30, 2021 at 11:20 am #1318945Really appriecate your care and repsonse
what I don’t understand is there that paragraph tag is coming from
E.g. when I look at the text.. there is no <p>
Are you saying that all text elements are added with an extra <p> around them?
If so .. perhaps copying the image code into a code block would be the solution?
August 30, 2021 at 2:01 pm #1318969August 30, 2021 at 3:44 pm #1318988I tried it.. but still have a gap ..
I’ve linked to a test page.August 31, 2021 at 12:37 pm #1319112Hi,
I see, so what would you like to do next?
For your original issue, we have solved will css, but as I understand you would like to be able to use this combination with different images elsewhere on your site, so I recommend adding custom classes to these elements and the snippets and saving the block as a Template so you can use it again in the future.
If you would like a hand with this please include an admin login in the Private Content area so we can adjust the custom classes and css to work together, on a test page and then you can save it as a template.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.