css - White div background displays as grey -


i have content div displaying image , header positioned on/at top of content div. original background header (which contains text) black opacity, when user hovers on image/header background color , text color of header div change white/black. i've found setting background white results in off gray color instead (regardless of opacity). should use opacity work white background? attached css i'm doing. #textwrap (header w/ text) inside of #gamedisplaybugsmash (an image).

#gamedisplaybugsmash {    height: auto;    width: 50%;    position: relative; }  #gamedisplaybugsmash:hover #textwrap {    background-color: white;    color: #000; }  #textwrap {    background-color: rgba(0,0,0, .6);    width: 100%;    height: auto;    z-index: 1;    left: 0px;    top: 0px;    position: absolute;    font-size: 16px;    color: #fff; }   <div id = "contentsaver"> <div id = "contentgames">  <div id = "gamedisplaybugsmash"> <a href="#" onmouseout="mm_swapimgrestore()"         onmouseover="mm_swapimage('bugsmash','','images/bugsmashfaded.png',1)"><img src="images/portii_designmocks-recovered_0002s_0005_layer-17-copy-3.png" width="100%" height="auto" id="bugsmash" /></a> <div id = "textwrap"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">   <tr>     <td>     <div id = "bugsmashtitle">bug smash</div>     </td>     <td>     <div id = "bugsmashtextd">a final project 1 of coding classes. introduction using monogame  development.</div>    </tr>     </table>  </div> </div> </div> 


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -