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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:17:25+00:00 2026-06-14T13:17:25+00:00

On a HTML page, I have three paragraphs of text (each in a p

  • 0

On a HTML page, I have three paragraphs of text (each in a p tag), and I want them as columns next to each other.

I know CSS3 columns are great for breaking magically at the right place, to create an even division/height, but then the paragraphs start at the bottom of the previous column depending on the length of the column, resulting in ugly layout.

Is using CSS3 columns outright wrong for this situation? Should I use div tags and float instead? Or what is the best approach?

enter image description here

  • 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-14T13:17:27+00:00Added an answer on June 14, 2026 at 1:17 pm

    Assuming that the p elements are wrapped by a parent div element, then the the following should work:

    div {
        -moz-column-width: 12em; /* or whatever width you prefer... */
        -ms-column-width: 12em;
        -o-column-width: 12em;
        -webkit-column-width: 12em;
        column-width: 12em;
    }
    
    div p {
        -moz-column-break-inside: avoid;
        -ms-column-break-inside: avoid;
        -o-column-break-inside: avoid;
        -webkit-column-break-inside: avoid;
        column-break-inside: avoid;
    }
    

    JS Fiddle demo, tested only on Chromium 22/Ubuntu 12.10.

    The column-break-inside: avoid rule (and it’s vendor-prefixed equivalents) effectively instruct the browser to not break the p elements across two, or more, columns; effectively discarding same-height columns in order to strictly position each element entirely within one column, though under some circumstances this also allows multiple p elements to be placed inside one column.

    If you strictly want to enforce one p per column, then you could use the column-break-before: always; or column-break-after: always; rules instead.

    References:

    • CSS Multi-Column Layout Module, at the W3C.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to show three XMLs on a single html page. These XMLs have
On a HTML page I have three sections with 3 tables. Each table has
Suppose I have an HTML page with three blocks of fixed width (their height
A very simple question. I have a html page which is divided into three
I have three anchor tag links in my html with id's switcher, switcher-b, switcher-c,
I have one index.html page and on this page I have three controls; one
In an HTML page, I have three blocks: two textboxes and one inline SVG,
I have multiple paragraphs of text in an HTML document. Also, at various points,
I have a page that loads an external HTML page into an iFrame. There
In my html page, I have one table, for every row there are two

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.