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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:30:48+00:00 2026-05-16T02:30:48+00:00

Our project needs to have a table with headers on the left hand side,

  • 0

Our project needs to have a “table” with headers on the left hand side, at the beginning of each row, and then each object will be added to a column in the “table”

We also are trying to keep the project AJAXy, so we need to have edit in place functionality for this grid. We’re using ASP.NET MVC 2, so I’ve been using PartialViews to replace table rows with editable rows as needed, but that obviously won’t work for a vertically oriented table.

I tried setting it up using unordered lists and floating them, but my problem is that they don’t seem to want to obey the overflow css tag.

Current CSS

.vertical-list-container {float:left; overflow-x:scroll}
.vertical-list {float-left;}

HTML (changed to make it easer to follow)

<ul class="vertical-list" id="table-header">
  <li>Id</li>
  <li>Name</li>
  <li>Address</li>
</ul>
<div class="vertical-list-container">
  <ul class="vertical-list">
    <li>1</li>
    <li>John Doe</li>
    <li>123 Address Lane</li>
  </ul>
  <ul class="vertical-list">
    <li>2</li>
    <li>Jane Doe</li>
    <li>456 Another Road</li>
  </ul>
</div>

What’s expected is that if the two vertical-lists end up wider than vertical-list-container then there would be a horizontal scroll bar. What ends up happening though is each item that doesn’t fit gets pushed down below, which means it doesn’t line up with the “table” headers

  • 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-16T02:30:49+00:00Added an answer on May 16, 2026 at 2:30 am

    You need to add an explicit width declaration to your vertical-list-container and vertical-list containers. These can be relative (em, %) or fixed (px).

    That will get the vertical-list-container to start obeying the overflow rule.

    Edit

    So the widths alone don’t cut it. You can get it to work by adding one extra element inside the vertical-list-container. Then you can use some Javascript to set its width on load to:

    number of columns * column width
    

    See it in action here.

    Out of curiosity, why aren’t you using a <table> for this? It’s tabular data and would be a valid (and easier) way to get it done.

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

Sidebar

Related Questions

In our project we have several production databases and many devs. Each production database
Our project is in Jetty server and work completely then this project is deployed
I have a Django project to track our company's restructuring projects. Here's the very
Right now in our project, we have below mentioned structure. Our project is mainly
We have just started using requirejs in our project and we are loving it.
I've got an interesting design question. I'm designing the security side of our project,
We're using JPA for our new project. We have an inheritance relation which has
I'm taking a course called "database systems" and for our class project I have
In our project we have to modify our column length from char(8) to char(10).
I've got an upcoming project wherein I will need to connect our website (

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.