I have a diva in which there is a circle (also div):
which becomes visible only when hovering, and the text inside:
My task is to ensure that the text when hovering is not translucent, like the circle inside which it is located, but normal. For some reason, the text inside the inner-circle diva accepts all its properties, although I set the opacity: 1; property for the text separately opacity: 1; on hover.
#outer-circle1 { background: url('https://i.stack.imgur.com/JuXam.jpg'); background-position: 4px 1px; border-radius: 50%; height: 200px; width: 200px; position: relative; } #inner-circle { position: absolute; background: #a9aaab; border-radius: 50%; height: 150px; width: 150px; opacity: 0; top: 50%; left: 50%; margin: -75px 0px 0px -75px; } #inner-circle:hover { opacity: 0.4; } .text { font-size: 20px; font-weight: bold; margin-top: 5px; visibility: hidden; position: relative; } #inner-circle:hover .text { visibility: visible; opacity: 1; } <div id="outer-circle1"> <div id="inner-circle"><p class="text"><br/><br/>More</p></div> </div> 

#outer-circle1background-position: center;#outer-circle1background-position: center;. - Vadim Ovchinnikovmargin: -75px 0px 0px -75px;ontransform: translate(-50%, -50%). This allows you to change thewidthandheightflexibly, without touching themargin(setting half the height and width). - Vadim Ovchinnikov