Y
Y
YouAre2018-01-12 22:05:56
Frameworks
YouAre, 2018-01-12 22:05:56

How to customize an image in wordpress?

I'm making a site on Layers WP framework (wordpress theme)
On the main page there is a slider with 1 picture, which does not adapt to small screens.
You need to do this: www.privatejet.com
I have this code:

.layers-widget-slide-3-436
{ background-repeat: no-repeat;
background-position: center;
background-size: cover;
background-image: url('...'); }

During the holidays, I decided to make a website without the help of outsiders - and regretted it. There is no way back. Help!)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2018-01-13
@YouAre

I think you should look into CSS media queries. Using media queries you can add different styles for different screen sizes.
htmlbook.ru/css/value/media

@media all and (max-width:320px) {
ВАШ CSS КОД ЗДЕСЬ
}

And in the browser's responsive view mode, you need to check the design styles. Especially: 1920, 1440, 1024, 768, 320 pixels

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question