-3

I am developing a website in wordpress but I am using a builder call Divi. In this builder I can have custom css code but not java.

How can I do something like this but purely in css:

if heigh-res > 1000 then
    padding-top: 200px;

For those that have marked my question as a duplicate, it is not. The question that you think I have duplicated asks about changing the .css file that is loaded depending on the screen resolution. I am not asking about changing the file but I am asking about setting padding if the screen height is greater than 1000px.

Ruarri
  • 105
  • 1
  • 2
  • 11

1 Answers1

2

Try using media queries and set min-width as you want. Here an example.

<style>
@media (min-width : 1000px) {
.your_class {
padding-top: 200px;
}
}
</style>
Lexo Alonzo
  • 482
  • 1
  • 4
  • 20