F
F
freeman02042015-07-25 15:48:26
Slider
freeman0204, 2015-07-25 15:48:26

Installed the slider bxslider on the site. If you insert only a photo, then it works, but if you also insert text, then it doesn’t. How to fix?

Installed the slider bxslider on the site. If you insert only a photo, then it works, and if you also insert text, then it turns out from the bottom of the picture, but it should be in the picture and decrease along with the picture, since the slider is adaptive. How to implement it?
a7c09be7832f460ba5d4941fba73fe97.png
Here is the code:

<ul class="slider">
  <li>
            <img src="img/slider.jpg" alt="" class="foto">
      <h1 >This is a main heading</h1>
      <h2 >Lorem Ipsum is simply dummy text<br><span>of the printing</span></h2>
      <a href="#" class="button ">Learn More</a>
  </li>
</ul>

Here I solved the problem by taking the text in:
<div class="container">
      <h1 >This is a main heading</h1>
      <h2 >Lorem Ipsum is simply dummy text<br><span>of the printing</span></h2>
      <a href="#" class="button ">Learn More</a>
</div>

and added css:
.slider {
    position: relative;
  }

.container {
  position: absolute;
  top: 0px;
}

but the text does not reach for the picture, you can see in the photo. How to fix?087ffeb1ee7b41328562b3de83c1dd55.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mykola Stepanchuk, 2015-07-25
@mukola164

bxslider.com/examples/image-slideshow-captions , by setting captions: true in css adjust it as you need

D
Daniel, 2015-07-26
@doodka

.container {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question