Hi All,
This one is tripping me out…
I have a gradient applied to a column with Heading and Text inside it using the following CSS:
@media only screen and (min-width: 481px) and (max-width: 1600px){
$el {
background-color: rgb(255,255,255);
background-image:
linear-gradient(
to right,
rgb(255,255,255) 30%,
rgba(255,255,255,.0));
}
}
@media only screen and (max-width: 480px){
$el {
background-color: rgb(255,255,255);
background-image:
linear-gradient(
to right,
rgb(255,255,255) 50%,
rgba(255,255,255,.0));
}
}
- I don’t have an ID assigned or a class as I’m using $el. Is this incorrect?
My issue is, in conerstone it appears correct with the gradient over the text as per the attached screenshot-1. However, when I view it in my browser the gradient does not appear on the section like screenshot-2.
Can you help please, let me know what I’ve done to mess this up. lol
Thanks,
Jonathan