Grow your CSS skills. Land your dream job.

Max Width Menu Not Working CSS

  • # July 17, 2013 at 10:44 am

    Hello I have put a max with on one of my sections of the menu but for some reason will not fit in with menu. And every time try to put it on my website makes the words that are in the width range go right to the top of menu.

    http://codepen.io/mwbcomputers/pen/djwml

    # July 17, 2013 at 11:01 am

    Don’t set max width on your anchor. The width should be determined by the number of characters within.

    # July 17, 2013 at 11:02 am

    I would guess that there isn’t enough room in the menu to accommodate all the text.

    You could try doubling the height of the #navigation and removing any heights from links, list items etc.

    Alternatively, reduce the font size.

    # July 17, 2013 at 10:06 pm

    Ok will play around with it today see how I go.

    # July 18, 2013 at 4:45 am

    As paulie said there isnt enough space to accumulate the text.

    remove the max width or increase.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".