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

  • Home
  • SEARCH
  • 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 3753742
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:26:18+00:00 2026-05-19T09:26:18+00:00

Firstly let me just say I know you shouldn’t use tables for layout –

  • 0

Firstly let me just say I know you shouldn’t use tables for layout – I’m fixing someone else’s code here.

I have a menu that is actually just a table with 2 rows. The top row is a banner and the bottom row is a <ul> with a bunch of menu items in it.

Now for some reason this works perfectly in IE, but it doesn’t work in Chrome. The problem is that if you have more menu items than can be displayed on the page, Chrome seems to not render these items at all, where IE wraps the items and displays the extra items on the next line. The IE behavior is what I am looking for.

<table id="menu_table" width="100%" style="border:collapse" cellpadding="0" cellspacing="0" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">
    <tr>
        <td valign="top" colspan=2>
            <!-- iframe with banner -->
        </td>
    </tr>
    <tr>
        <td class="header>" valign="top" style="textweight:normal; " >
            <!-- ul with lots if li items -->
        </td>
        <td class="header" >
            <!-- another control -->
        </td>
    </tr>
</table>

If I use the Chrome feature for ‘inspect element’ I can see the table rows are taking up more than 100% of the page – the highlighted area extends to the side of the screen. If I use a div around the table I can see the div leaves a bit of margin around it, but the table inside the div still insists on rendering more than 100% it seems.

You can see this in action on jsfiddle – if you view this in IE it will wrap over to the next line, if you view it in Chrome it will just disappear off the page

  • 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-19T09:26:19+00:00Added an answer on May 19, 2026 at 9:26 am

    Try removing the white-space: nowrap; from the td style (from the example you posted here: http://jsfiddle.net/8KbPF/12/)

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

Sidebar

Related Questions

Firstly, let me set out what I'd like to do. Assume I have three
Firstly, Real World Haskell , which I am reading, says to never use foldl
So firstly here's my query: ( NOTE:I know SELECT * is bad practice I
Firstly, I'm a newbie to C# and SharePoint, (less than a month's experience) so
I wish to order a table: Firstly by Field1=3 Then by Field2 DESC I

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.