The easiest way to do this is to create a small flat image in Photoshop, Fireworks, GIMP, Kreta, etc. and set the color / opacity there. The above solutions will provide transparency, but they
1) Does not meet standards and
2) They can lead to the fact that the text contained in the div will also be transparent (usually this is an undesirable result in the design).
So...
.ui-widget-content-alt {
background: transparent url(images/my_80%transparent_black_bg.png) top left repeat;
}
.ui-widget-content {
background: transparent url(images/my_80%transparent_white_bg.png) top left repeat;
}
Brian source
share