How to override css property?

  • 0
    I have a bottom navigation bar:


    When narrowing the window, it should become a dropdown menu:


    This is already implemented, but I need to override the properties: font family, color, add blue rectangle on hover.


    I thought it would be enough to override all of this in media , but it is not. As I understand it, js is needed, but here I am a completely newbie. Thank you
    JavaScript Ella Gray, Jul 20, 2019

  • 3 Answers
  • 0
    Write all the style in the media that you need and you will succeed
    Anonymous

  • 0
    ! important
    Anonymous

  • 0
    Look at how the styles are defined (whether there is nesting, for example .header .menu {}, whether there is an important) and write it in the media, with nesting or important, or both
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!