0
Welcome Guest! Login
0 items Join Now

CSS3 Columns

    • Ali Samii's Avatar
    • Ali Samii
    • Elite Rocketeer
    • Posts: 629
    • Thanks: 2

    CSS3 Columns

    Posted 12 years 1 month ago
    • Hi,

      I am trying to have some content display using CSS3 columns.

      In my less file, I have defined the following style:
      body {
          .details {
              padding: 10px 25px;
              columns: 2;
              column-rule: 1px solid black;
              a {
                  color: @white;
                  border-bottom: dotted 1px @white;
              }
              .table th,
              .table td {
                  border-top: none;
              }
          }
      }

      However, the columns don't display. When I use the web inspector on the div which has a class of .details, I see the following:
      body .details {
      padding: 10px 25px;
      columns: 2; // line has a strikethru
      column-rule: 1px solid black; // line has a strikethru
      }

      What am I doing wrong?

      You can see this here: betelec.ergonomiq.net/references/30-epfl...congres-et-rencontre

      The text content below the image is supposed to be in 2 columns.
    • Thank you.

      Ali Samii
    • cdavis411's Avatar
    • cdavis411
    • Preeminent Rocketeer
    • Posts: 17787
    • Thanks: 882

    Re: CSS3 Columns

    Posted 12 years 1 month ago
    • Ali Samii's Avatar
    • Ali Samii
    • Elite Rocketeer
    • Posts: 629
    • Thanks: 2

    Re: CSS3 Columns

    Posted 12 years 1 month ago
    • Great, thank you Christopher.

      Now a follow-up. How do I control column breaks to prevent content from being cut off or to ensure that an <h4> is not immediately followed by a column break so that the relevant content below the <h4> is in the same column?

      This image is hidden for guests.
      Please log in or register to see it.


      See this page:

      betelec.ergonomiq.net/references/28-ecole-de-metiers
    • Thank you.

      Ali Samii

Time to create page: 0.070 seconds