Browser: Chrome inspector / Safari iOS OS: Windows
I have a div, with a left border (0 0 0 1) on desktop up to mobile landscape.
On mobile, the border is set to 0.
This used to work, but to my surprise I just checked the site on mobile - and all of a sudden the border is showing up.
Now this was my first build with bricks - so it’s not in a class
To solve it, I need to set a transparant border ( 0, 0, 0, 0 - solid - transparent) on mobile - then it hides it. Which is a bit odd, since the media query shows the border should not be visible.
Hi Michael,
You are currently applying the border twice: on the ID and on the .noborder-mobile class.
If you remove the border from the ID completely it works as expected, since the ID is always overriding the class.
Here you go, this used to work - since I created the site like this.
But now I must add border - solid to make it work.
Added a second video showing than when I try to do it by class - the border just remains visible.
After that it dawned on me that the border on the ID level is more specifc.
Creating a class with the border set on desktop AND mobile - then it works as expected.
So that part is true. - But the first part remains. Setting it - at ID level to 0, used to work and now doesn’t without adding border style & color.