Instead of using the hex number for the second example I am using the rgb numbers.
selector(
background-color: rgba(51, 102, 153);
}
Then add the opacity (values are 0.0 - 1.0 ) to the end of the numbers. In both examples I am using 0.6.
selector(
background-color: rgba(51, 102, 153, 0.6);
}
For older browsers that cannot read the rgba you also need to include the color properties without the opacity.
selector{
background-color: rgb(51, 102, 153);
background-color: rgba(51, 102, 153, 0.6);
}