Search code examples
htmlcssconditional-statementswebshop

CSS Conditions?


I'm relatively new to HTML & CSS and hope to find some help here.

I got this problem, so when the link is active it moves to the next menue point.

I need a solution for when a menue point has more characters and gets a second line, for all the categories that do not have a second line, there is no problem when the link is active.

Can you help me out? Is there a way of working with (if-)conditions in CSS formating!?

Thanks in advance, and sorry for my bad english ;)

P


Solution

  • Maybe you can use this:

    .active{
        height: auto;
    }
    

    I don't really know what your problem is, because it's just an image. Can you maybe add a jsfiddle?