MrJhan
Member
Posted 6 months ago #
I installed the promotion slider, which is an easy and great plugin to use for my sliders.
My problem is that I would like the height to be responsive to the amount of excerpt content I choose to display on certain pages. So if there is alot of excerpt text I would like to have the height adjust itself.
Any help is appreciated.
Regards
Johan
Do you have an page with a slider that I could take a look at? There are so many ways that something like this could be implemented that it helps to have your specific use case in mind.
MrJhan
Member
Posted 6 months ago #
Hi Micah,
And thanks for the quick reply.
On the following page: http://engstrand.biz/johan/index.php/category/spirituellt/medium/matthew-ward/ you can find an example with a bg pic and some excerpt text.
Right now the height fits the excerpts, in a regular browser, but if you make the browser window smaller you see the text disappear below.
Thanks.
@MrJhan,
Here is the code you should add:
div.promo_slider { height: auto; }
div.promo_slider_background_image { position: absolute; }
div.promo_slider_title { position: relative; }
div.promo_slider_excerpt { position: relative; top: 0; }
You might also want to use paragraphs instead of line breaks in your excerpts so you have more control over spacing.
MrJhan
Member
Posted 6 months ago #
@Micah,
Thanks for the great and quick support and of course for a superb product. I wish I could shower you with money but for now I'll begin with a small donation ;-)
Kind regards
Johan