Simsnet
(Glenn Sims)
September 23, 2018, 6:55am
1
I’m trying to add a black & slightly transparent background to the #main-outlet
div on a theme and it does add the background, but not the transparency. My CSS so far:
#main-outlet {
background-color: rgba(0,0,0,75%);
}
and here is the final result, where there is no transparency at all:
(The hex alpha is not supported by Discourse - #00000075 - and it gave me an error when trying to parse the CSS)
Is there a possible workaround for this?
tshenry
(Taylor)
September 23, 2018, 7:48am
2
Try this:
// Black with 75% opacity
#main-outlet {
background-color: rgba(0, 0, 0, 0.75);
}
It’s looking for a decimal value rather than the percent.
4 Likes
Simsnet
(Glenn Sims)
September 23, 2018, 8:01am
3
Much better. Thanks for replying!
2 Likes
system
(system)
Closed
October 23, 2018, 8:05am
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.