Hi,
Can opacity be set as a css rgb variable?
:root {
--unvisited-color: #595144;
--r: 174;
--g: 147;
--b: 118;
/*--o: 0.2;*/
--rgb: rgb(var(--r), var(--g), var(--b)/*, var(--o)*/);
--th-color: var(--rgb); }
th {
padding: 6px;
/*opacity: 0.2;
filter: alpha(opacity=20);*/
background-color: var(--th-color);
/* rgba(174,147,118,0.2); */
padding: 6px;
border-bottom: 2px solid #595144;
vertical-align: top;
text-align: left;
width: 40px;
overflow: hidden;
white-space: nowrap; }
I can set the rgb variables but not the opacity.
I tried,
opacity: 0.2;
filter: alpha(opacity=20
But this sets the whole of <th>
element to be transparent, including the text.
Thanks,
Shane