Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS need to remove opacity from child node

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #146481
    sbhambad
    Participant

    I have created menu which is fixed position and I have apply opecity to 7 to back div. i have set over color as #186faf; to each menu and but opecity is applying to hover color as well. I need to remove this opecity from hover color.

    #146489
    Paulie_D
    Member

    Basically…you can’t.

    A child element inherits the opacity of it’s parent…so you don’t use opacity.

    What you could do is apply an RGBA color to the background instead of a solid color.

    If you create a reduced case in Codepen it would be simple to demonstrate for your requirements.

    #146494
    sbhambad
    Participant

    thanks Paulie. its work. u r great. :)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.