D
D
DeniSidorenko2018-06-24 15:35:46
HTML
DeniSidorenko, 2018-06-24 15:35:46

An image as a background for a slider?

Hello, there is a slider. 5 slides. 1 slide is a background image + caption
Images as best. Set as img and position as background or through bacgrkound?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sinistra17, 2018-06-24
@DeniSidorenko

It will be more convenient to set the background for the block using css (do not forget to set the background size, otherwise it will not be displayed)
. block_class {
background-image: url(path_to_background);
background-repeat: no-repeat;
width: width;
height: height;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question