Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    GIF shows where to locate </> in the thread and or post editor toolbar.
    To learn more about how to use our BBCode feature, review our "How to post your code into threads" here.

    Thank you, Code Forum.

Hover feature img disabling

Edrol97

Silver Coder
Hi all,

I am editing my navbar on one of my pages, and coming across a problem where the hover underline feature is on the img elements of the header. I don't want this to be the case, and only want the hover underline function to be on text. How do I edit this?

Thanks,

Eliot
 

Attachments

  • Screenshot 2024-09-25 at 12.31.38.png
    Screenshot 2024-09-25 at 12.31.38.png
    90.3 KB · Views: 5
I've managed to solve it to an extent by putting the image within a different parent div and styling the div with an empty img file underline style but it still doesn't work perfectly, as the padding on the img Pun logo is showing linked to a URL.
 
I've managed to solve it to an extent by putting the image within a different parent div and styling the div with an empty img file underline style but it still doesn't work perfectly, as the padding on the img Pun logo is showing linked to a URL.

This shouldn't happen unless there is an <a> wrapping the images. Without a link, it's really hard to pin down the issue. I may be unclear as to what you are actually trying to ultimately achieve.
 
Last edited:

Buy us a coffee!

Buy me a coffee.
Back
Top Bottom