Support » Fixing WordPress » Line breaks for long navigation titles???

  • Hi,

    I have a navigation menu which uses square buttons on a background img. A couple of my link names are too long for the button, withpout being broken into two or three.

    For example: ‘Meet the Characters’ is too long for the button, and needs to be:

    I’ve tried putting a
    between words in header.php as follows:

    <li class="page_item page-item-6"><a href="" title="Meet the Characters">Meet<br />the<br />characters</a></li>

    …but i guess that doesn’t work: just breaks up the navbar.

    How can I do it? I don’t really want to shorten the names or use just images instead of links unless it’s the only solution.

    I can’t find anything out there on the subject. Hopefully that means there’s a simple answer.

    Please help!


Viewing 2 replies - 1 through 2 (of 2 total)
  • Set the width through the css. That should break up the words into separate lines. What’s the link to your site?

    li a {width:200px;}

    Hi Downstairsdev,

    Thanks so much for your reply. You pointed me in the right direction and I finally figured things out.

    For anyone else with the same problem, the following css was preventing my width adjustments from having any effect:
    If you want to adjust the width, you need to use
    Also make sure that your line height is not too big/high.

    Here is some info on inline and block elements.

    Thanks again!


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Line breaks for long navigation titles???’ is closed to new replies.