I have a template that uses an unordered list to create the menu. See here
When I translate the website using Google translate the menu breaks if the translations are too long, causing the floated list items to drop down. Translating it into French seem to cause the problem.
Is there a way I can force the text to wrap if it is too long for the menu?
I don’t mind if I have to change the unordered list to something else, but I would prefer not to use a table.
The short version: we’re going to use
display: table-cell.The long version is.. long:
.access, remove thepaddingrule..sf-menu, removefloat: leftand adddisplay: table..sf-menu li, removefloat: leftand adddisplay: table-cellandvertical-align: middle.#headerand#footer, addposition: relative..access, removeheight: 32pxandmargin-top: -32pxand addposition: absoluteandwidth: 100%.#header .access, addbottom: 0.border-leftfromsf-menu atosf-menu li..sf-menu a.firstto.sf-menu .first.20pxpaddingon the left (and right), add an extraliat the start:<li class="noHover" style="width: 20px; border-left: 0"> </li>; and at the end:<li class="noHover" style="width: 20px; border-left: 0"> </li>. You might not need the s. You’ll need to do the same thing with#footer.To stop the
:hoveron the “padding”lis, add something like this:On
#footer, addpadding-top: 48px.That’s everything (unless I screwed up somewhere), except for IE6/7 support. If you want that, you’re going to have to put a new version up with my fixes applied (can be in a temporary new folder if you like). It’s too much work to attempt to fix IE6/7 when I have to apply all those changes first to test it properly.