As a novice in web development, I am currently following a tutorial on creating a restaurant website. While I have encountered numerous obstacles along the way, most of them have been resolved successfully. However, I am facing an issue with my h1 element displaying an unwanted underline.
Here are the styles that I have applied:
.navbar-brand h1 { /* Restaurant name */
font-family: 'IBM Plex Mono', monospace;
color: #6c0000;
font-size: 1.8em;
text-transform: uppercase;
font-weight: bold;
text-shadow: 1px 1px 1px #110000;
margin: 0;
text-decoration: none;
}
.navbar-brand a:hover, .navbar-brand a:focus, .navbar-brand a:visited {
text-decoration: none; !important
}
Despite consulting ChatGPT for more than two hours, providing my entire code, trying different browsers, clearing cache, and disabling all extensions, I have not been able to resolve the issue. My CSS does not include any text decoration related to the h1 tag (I am using the same CSS as instructed in the course).
I resorted to inspecting the element to troubleshoot, searching for "underline" as a keyword. The only style I found was already overridden, and toggling it on and off had no effect. Any help would be greatly appreciated!