-1

When I hover a link it's underline and text-decoration: none; doesn't work because of Bootstrap I think

I tried to use !important and :hover but it doesn't work

header .container #porfolio div a {
  text-decoration: none;
}
<header>

  <div class="container">
    <span id="portfolio">
                <div>
                    <a href="/">PORTFOLIO</a>
                </div>
                <div>
                    <a href="/">Maskim</a>
                </div>
            </span>
  </div>

</header>
Temani Afif
  • 245,468
  • 26
  • 309
  • 415
Maskim
  • 1
  • 2

2 Answers2

-1

You need to target the hover state.

header .container #porfolio div a:hover {
Mitya
  • 33,629
  • 9
  • 60
  • 107
-1

In your browser, right click on the link and inspect it with devtools. There you can see how to select the element and then adjust your css.

Hackman
  • 1,614
  • 1
  • 12
  • 15