Hi
On my website I have a color section on each page with a background image in it. On the website it looks as it should but it takes up way too much space on tablet and phone. Is there anyway I can add css to limit the height only for tablet and phone.
Link: sikkertbilsalg.dk
Thanks :)
Hey sikkertbilsalg,
Do you mean the first section on the page? If so, it looks alright on my end. I think the easiest way for you to have a different layout on mobile would be to duplicate the element and then select to hide it on all screens except mobile.
Best regards,
Rikard
Hi,
Thanks for the reply. That might be a good solution. I just tought there would be a quick CSS solution to it.
Similar to this one just with the height:
@media only screen and (max-width: 989px) {
.Only_pc { display: none !important; }}
Thanks :)
Hi,
Yes there is, but why do you need CSS when you have that available for you in the element options?
Best regards,
Rikard
I thought maybe a lot of stuff would slow down the page but I’ll do it that way :)
Hi,
I don’t think that should affect your page speed at all to be honest, but you could do a test if you create two test pages and run it though this tool: tools.pingdom.com
Best regards,
Rikard