# Text caption over slider-image

**URL:** <https://community.hubspot.com/t/text-caption-over-slider-image/9993>\
**Category:** CMS Development\
**Created:** [August 28, 2018, 11:03pm UTC](https://community.hubspot.com/t/text-caption-over-slider-image/9993 "2018-08-28T23:03:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Janette](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/janette/32/2490_2.png) [@Janette](https://community.hubspot.com/u/Janette)\
**Post date:** [August 28, 2018, 11:03pm UTC](https://community.hubspot.com/t/text-caption-over-slider-image/9993/1 "2018-08-28T23:03:01Z")

</div>

Hi Every body good afternoon

I have a slider in one of my page in my web page but I don´t know how can I do to put the texto over the slider image.

 ![slider-caption.PNG.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/1/1248d2817db9e1b4f75510ea4aecab174e3cb7e8.jpeg)

this is the link of my page: [INE - Deployment Story](https://www.inbest.cloud/caso-de-exito-ine-en-la-nube-de-aws-0)

Can you help me with this plis.

I remain to your comments.

Regards

---

<div class="post-metadata">

**Author:** ![Stephanie-OG](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stephanie-og/32/73267_2.png) [@Stephanie-OG](https://community.hubspot.com/u/Stephanie-OG)\
**Post date:** [August 29, 2018, 12:40am UTC](https://community.hubspot.com/t/text-caption-over-slider-image/9993/2 "2018-08-29T00:40:14Z")

</div>

Hi Janette,

The easiest way to accomplish this would be to set it as a background image of the slick-slide-inner-wrapper instead of an image. You can then set padding to the caption below div to set the height. Something like this:

```auto
<div class="slick-slide-inner-wrapper" style="background: linear-gradient(
 rgba(85, 86, 90, 0.2), 
 rgba(85, 86, 90, 0.2) 
 ), url(https://www.inbest.cloud/hubfs/iNBest.Cloud-TemplateAlthea/Im%C3%A1genes/Casos%20de%20%C3%A9xito/INE/Slider_INE_3.png?t=153549086545);"> 
 <!-- <img alt="Slider_INE_3" title="Slider_INE_3" class="" style="opacity: 1;" src="https://www.inbest.cloud/hubfs/iNBest.Cloud-TemplateAlthea/Im%C3%A1genes/Casos%20de%20%C3%A9xito/INE/Slider_INE_3.png?t=1535490865451">-->
 <div class="caption below" style="text-align: start; padding: 150px 0;">
 <span><h2 style="text-align: center; color: #ffffff;"><span style="color: #06272e;">CASO DE ÉXITO INSTITUTO NACIONAL ELECTORAL </span></h2>
<h2 style="text-align: center; color: #ffffff;"><span style="color: #06272e;">Elecciones presidenciales 2018 Conoce la solución diseñada para garantizar la publicación de los resultados electorales de México.</span></h2></span>
 </div>

 </div>

```

(Add the green code and remove the red code)

See below:

 ![backgroundimage.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/9/89c693a5fca20f5efe11eab71627f2e8742dc4a1.jpeg)

Note that if you’re updating a slider module this will apply to all slides and not just this one.

I hope that helps!

* * *

[![|300](https://d2qpr2jzcazej7.cloudfront.net/original/2X/e/e6ddb445b684524bbcbd802044a9ca3919d1fbc7.png)](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity)HubSpot Design / Development / Automation

[Website](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity) | [Contact](http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity)

_If this helped, please mark it as the solution to your question, thanks!_

---

<div class="post-metadata">

**Author:** ![Jsum](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jsum/32/20405_2.png) [@Jsum](https://community.hubspot.com/u/Jsum)\
**Post date:** [August 29, 2018, 7:22am UTC](https://community.hubspot.com/t/text-caption-over-slider-image/9993/3 "2018-08-29T07:22:48Z")

</div>

@Janette,

I don’t know if slick slider has a default method for this, but you can add this to your css and it will work:

_(to stick to bottom of image)_

```auto
.caption.below {
 position: absoslute;
 bottom: 10px;
}

```

_(to stick to middle)_

```auto
.caption.below {
 position: absoslute;
 top: 50%;
 transform: tranlateY(-50%);
}

```

Your slide wrapper containing the image and caption markip is set to position relative so you can manipulate the positions of it’s children relative to it’s borders.

Need help? [Hire Us Here](https://www.upwork.com/o/companies/_~0124e15ff34efb3871/)

---

<div class="post-metadata">

**Author:** ![Janette](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/janette/32/2490_2.png) [@Janette](https://community.hubspot.com/u/Janette)\
**Post date:** [August 29, 2018, 3:04pm UTC](https://community.hubspot.com/t/text-caption-over-slider-image/9993/4 "2018-08-29T15:04:11Z")

</div>

Thanks for the information is OK.

Regards
