html - How would I make background of slideshow more opaque -
this question has answer here:
i kinda want make black background little transparent unfortunately making image within slide transparent well.
code:
#slideshow { float:left; width: 810px; height: 360px; margin: 10px 0 0 10px; background-color: rgb(0,0,0); -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } #slideshow img { margin: 5px 5px; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; }
you can use rgba()
set background color opacity.
example:
#div { background-color: rgba(0,0,0,.4); }
this make background black 40% opacity.
Comments
Post a Comment