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 8719263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:45:06+00:00 2026-06-13T06:45:06+00:00

My website is designed in landscape mode – one large headline and a table

  • 0

My website is designed in landscape mode – one large headline and a table in the center of the layout with 2 columns that act as menu.

However, if the site is displayed in portrait mode on a mobile phone, there is by far not enough space available for this layout, so using the flexi-background.js routines, the layout is ‘compressed’ and becomes very, very small while the background is nicely stretched on the screen.

The ideal way would be to simply append the 2nd table column to the 1st column by some ‘technique’ if portrait mode is detected. I could do that with PHP, but feel there must be a smarter way with CSS or some other technique – does anyone have experiences with a requirement like this one and how to adjust the landscape layout to portrait mode?

meta code:

<table>
<tr>
<td>menu item 1</td> 
<td>menu item 2</td> 
</tr>
<tr>
<td>menu item 3</td> 
<td>menu item 4</td> 
</tr>
<tr>
<td>menu item 5</td> 
<td>menu item 6</td> 
</tr>
<tr>
<td>menu item 7</td> 
<td>menu item 8</td> 
</tr>
</table> 

If after the change, the “list” of menu items would be 1,3,5,7, 2,4,6,8 it would be okay.

  • 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-06-13T06:45:08+00:00Added an answer on June 13, 2026 at 6:45 am

    The first thing to do is throw away the idea of using a table for this.

    It’s considered bad practice to use tables for this kind of thing anyway these days, but in your case it’s also the direct cause of the problem.

    CSS provides several mechanisms for aligning boxes that would work for you.

    1. Use float:left.
      Make all the menu items into <div> elements, with a single container element. Set the menu items to float:left in the CSS, and give them a specific fixed width. They will line up beautifully into as many columns will fit into the space available. I’m not usually a fan of CSS floats, but in this case it’s a good option because this method was designed specifically for situations like yours.
      Reference: http://css.maxdesign.com.au/floatutorial/

    2. Use display:inline-block.
      This has a similar effect of allowing you to layout the elements as float:left. It has some aspects to it that are nicer than floats, but also some quirks that can make it hard to get pixel-perfect precision. But it’s also a good solution.
      Reference: http://robertnyman.com/2010/02/24/css-display-inline-block-why-it-rocks-and-why-it-sucks/

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

Sidebar

Related Questions

My website was designed for firefox, and now that I've got most of the
I've designed a website that works through my own PC. I set the IIS
Initially I had designed this flash based navigation menu for my website, after going
I have designed a website that consists of the body, a container to hold
I have a website that was designed by a third party and contains several
I am working on an eCommerce website designed to present a large number of
Is there any single software that can be used to test the website designed
I've designed a website using some Jquery techniques. My problem is that in some
I just designed a portfolio website. I have a whole array of images that
I have designed a website in photoshop that I would like to actually develop.

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.