Simsnet
(Glenn Sims)
2018 年 9 月 23 日午前 6:55
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)
2018 年 9 月 23 日午前 7:48
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
Simsnet
(Glenn Sims)
2018 年 9 月 23 日午前 8:01
3
Much better. Thanks for replying!
「いいね!」 2
system
(system)
クローズされました:
2018 年 10 月 23 日午前 8:05
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.