Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4334336
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:30:53+00:00 2026-05-21T10:30:53+00:00

I have a template that uses an unordered list to create the menu. See

  • 0

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.

See here

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T10:30:54+00:00Added an answer on May 21, 2026 at 10:30 am

    The short version: we’re going to use display: table-cell.

    The long version is.. long:

    • On .access, remove the padding rule.
    • On .sf-menu, remove float: left and add display: table.
    • On .sf-menu li, remove float: left and add display: table-cell and vertical-align: middle.
    • On #header and #footer, add position: relative.
    • On .access, remove height: 32px and margin-top: -32px and add position: absolute and width: 100%.
    • On #header .access, add bottom: 0.
    • Move the border-left from sf-menu a to sf-menu li.
    • Change the selector .sf-menu a.first to .sf-menu .first.
    • This part isn’t great, but to get back that 20px padding on the left (and right), add an extra li at the start: <li class="noHover" style="width: 20px; border-left: 0">&nbsp;</li>; and at the end: <li class="noHover" style="width: 20px; border-left: 0">&nbsp;</li>. You might not need the &nbsp;s. You’ll need to do the same thing with #footer.
    • To stop the :hover on the “padding” lis, add something like this:

      .sf-menu li.noHover:hover {
          background: none !important
      }
      
    • On #footer, add padding-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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ASP.NET GridView that uses template columns and user controls to allow
I have that template class that uses a policy for it's output and another
I currently have a class that uses template arguments. I need an array of
I have a ListBox that uses DataTemplateSelector to dynamically decide what template to use
I have a listbox that uses a UserControl as the item template. Inside the
I have some code that uses JavaScript templates to create some HTML, including some
I have a python template engine that heavily uses regexp. It uses concatenation like:
I have a class that uses an add-on template to add additional functionality as
I have an ASP.NET GridView that uses an EmptyDataTemplate. This template is used to
I have a basic text template engine that uses a syntax like this: foo

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.