Site: Julibees.com
Background: I use code to make different images between dektop & mobile, like this
Question
However, the banner height option is still not separated
any idea to figure it out?
Site: Julibees.com
Background: I use code to make different images between dektop & mobile, like this
Question
However, the banner height option is still not separated
any idea to figure it out?
/* Example CSS selector for the banner element */
.hero-banner {
height: 300px; /* Default height for desktop */
@media screen and (max-width: 767px) {
height: 200px; /* Height for mobile devices */
}
}
Hey, thank u so much.
still confusing how to find the selector. here is my browser’s developer tool shows:
and here is some code of this part:
{%- if section.settings.image != blank -%}
{%- liquid
assign image_height = section.settings.image.width | divided_by: section.settings.image.aspect_ratio
if section.settings.image_2 != blank
assign image_class = 'banner__media-image-half'
endif
if section.settings.image_2 != blank and section.settings.stack_images_on_mobile
assign sizes = "(min-width: 750px) 100vw"
elsif section.settings.image_2 != blank
assign sizes = "100vw"
else
assign sizes = "100vw"
endif
-%}
could you tell me the exact css code? thanks.
I want to make the #2 picture shown as itselfs height but not the 1# pic’s