hover background not picking up other CSS

  • Unknown's avatar

    Hi, I am trying to add a hover feature to my menu items. I have modified the menu items slightly through some other CSS code, and when I add the hover feature, it does not pick up those modifications. As a result, the background color that I am adding is shifted slightly (not behind the menu items properly).

    I have a feeling that I am going to need to restructure the whole thing, but is there an easy fix?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there, I’m seeing your menu items with a hover effect (black background and white text. Did you get this sorted out to your satisfaction?

  • Unknown's avatar

    YES! Thank you – I think I pretty much figured it out on my own!

    One little question I still have – is there a CSS code that would modify the boxes to adjust to the text length? So, for example, the word “CV” is a lot shorter than “Painting and Drawing.” Ideally, the block background that comes up when your mouse hovers on the word would conform based on the length of the word…anything I could do to make this adjustment?

  • Unknown's avatar

    It can be done, but it would require a good bit of changing on how you have done the customization on your menu. What you have done works, but this additional step would require that we change the way things are done.

    Personally I think it looks better with all the blocks being the same size. If CV was just the length of the two letters, or even just a bit longer, it becomes more difficult to click with a mouse or tap on on a tablet or phone.

  • Unknown's avatar

    Hmm, could you give me a start on how this might work in case I want to play with the idea?

  • Unknown's avatar

    Anna, let me sort through your CSS and see what would need to be changed.

  • Unknown's avatar

    Hi thesacredpath, just wondering if you had a chance to think about this anymore? I have been trying to research ideas for how it could be done, but to no avail!

  • Unknown's avatar

    Hi, and sorry for the delay. I’ve tried a number of things, and due to the heavy customizations I can’t get it to just highlight the text. Sorry.

  • The topic ‘hover background not picking up other CSS’ is closed to new replies.