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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:02:19+00:00 2026-05-27T22:02:19+00:00

I have something like below. Book name (can be variable length, got from an

  • 0

I have something like below. Book name (can be variable length, got from an ajax call), price, and quantity. Is there a way I can align each field using CSS instead of using a table to do that? Thanks.

e.g. HTML output:

Emacs Handbook $10 1
Web Development In 10 Days $20 2
Car $8 3

I want:

Emacs Handbook             $10   1
Web Development In 10 Days $20   2
Car                        $8    1
  • 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-27T22:02:20+00:00Added an answer on May 27, 2026 at 10:02 pm

    There’s nothing wrong with using tables. If it’s tabular data (ie something one would expect in an excel spreadsheet or a database table), it still belongs in a table.

    If you must insist, you could put each of those in a span inside a list item and then style them:

    HTML:

    <ul class="productList">
        <li>
            <span class="title">Emacs Handbook</span> 
            <span class="price">$50</span> 
            <span class="qty">3</span
        </li>
    </ul>
    

    CSS:

    .productList span { display:inline-block;}
    .productList .title { width:250px;}
    .productList .price { width:50px;}
    .productList .qty { width: 50px; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have URL something like below: http://test.com?x=1&x=2&x=3&x=4&x=5&x=6&x=7 Then how can I read all
I have a DataTable that queries out something like below usergroupid...userid......username 1.............1...........John 1.............2...........Lisa 2.............3...........Nathan
I have something like this in my Spring Application: public class Book{ public Book(){
I have a code setup something like below, the image is part of a
I have a piece of code something like below. I'm using Microsoft Visual C#
I need to do something like below. I have number of div with same
I have a structure like below that needs to be saved and loaded from
I have a sample application which has something like below. <a href=javascript:{} id=anchorlnk>Go</a> which
I want to have something like this below: template <class T> struct Container{ public:
I have the table like something like below, I use this to save the

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.