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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:51:56+00:00 2026-06-04T11:51:56+00:00

I’m not an expert in CSS. Could someone please help whether it’s possible to

  • 0

I’m not an expert in CSS. Could someone please help whether it’s possible to create a columns like below using pure CSS?

  • 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-04T11:51:58+00:00Added an answer on June 4, 2026 at 11:51 am

    When the descriptions are considered, this becomes a much harder problem. The bars are relatively easy, and can be built with somewhat semantic markup (although this could probably be improved):

    <ul class="graph">
    
      <li class="height10">
        <h1>Category 1</h1>
        <div>
          <h2>Subtitle</h2>
          <p>More text</p>
        </div>
      </li>
    
      <li class="height9">
        <h1>Category 2</h1>
        <div>
          <h2>Subtitle</h2>
          <p>More text</p>
        </div>
      </li>
    
    </ul>
    

    And the styles,

    .height10 { height: 300px; }
    .height9 { height: 270px }
    /** add more through height1 **/
    
    h1, h2, p { margin: 0; padding: 0; }
    h1 { margin: 0.5em; }
    
    li {
      margin-right: 0.5em;
      display: inline-block;
      background: #9f9;
      position: relative;
      vertical-align: bottom;
    }
    
    li div {
      margin: 1em;
      position: absolute;
      left: 0; bottom: 0;
    }
    

    Here’s a working demo: http://jsbin.com/obexew

    I added a couple sample classes that assume a scale from 1 to 10, although it may be more practical to manually set the height as an inline style, or set it as a data attribute and update the height with JavaScript. I’ll leave that up to you to figure out and decide.

    Keeping the description in the same element as the bar can be tricky, since it creates a situation where the columns are being aligned to an arbitrary point in each column. Without playing with it more, I would create a separate list for descriptions, and style it so it gets placed below the graph, like so:

    <ul class="graph bars">
        <li><!-- stuff here --></li>
    </ul>
    
    <ul class="graph descriptions">
        <li><!-- description here --></li>
    </ul>
    

    And then modify the styles so that the coloring and position is applied within .bars, but also apply a fixed with to .graph li to align the bars and descriptions.

    The complexity is completely dependent on how flexible you want your layout to be. I would recommend just diving in and seeing what you can achieve, and play with selectors and rules until you get the effect you need. I’ve been intentionally vague on some of these points so you get a chance to learn what works and what doesn’t.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
For some reason, after submitting a string like this Jack’s Spindle from a text
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I would like to count the length of a string with PHP. The string
I've got a string that has curly quotes in it. I'd like to replace
I am reading a book about Javascript and jQuery and using one of the
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

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.