A
A
Alexander2018-11-09 09:03:50
css
Alexander, 2018-11-09 09:03:50

Slick full width on mobile devices?

There is a slick slider, the image is 1920x500, img: width 100%.

spoiler

image.png

But on mobile, the text on the slide becomes completely unreadable.
spoiler
image.png

please tell me how to enlarge the image and center it? It is possible to increase, but the result is
spoiler
image.png


Link

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Combat7, 2018-11-09
@Combat7

Well, just do it normally, make a div, put a picture on the background for it)
And already make up the text in this div)

A
Alams Stoyne, 2018-11-09
@alams_stoyne

How about doing that?
It is necessary: ​​Background separately - Text separately - Button separately.
Background on mobile devices should be scaled/centered like this:

.newindex .slick-slider img{
  width: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question