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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:02:51+00:00 2026-05-30T05:02:51+00:00

what HTML and CSS would you use to layout the names of the months

  • 0

what HTML and CSS would you use to layout the names of the months in two columns like:

january july
feb     aug
mar     sep
apr     oct
may     nov
jun     dec

month names are coming from an array and html is dynamically generated for i18n purposes.

If it was:

january february
mar     apr
 ...

I would just put them in a DIV, all with double the width of a single month + some space and float them. but ordering them as stated seems more complicated…

Must i introduce two additional DIVs for the columns ?

  • 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-30T05:02:52+00:00Added an answer on May 30, 2026 at 5:02 am

    If the HTML is generated, you could do something like this (jsFiddle):

    <div style="width: 100px">
        <script type="text/javascript">
            var months = ['jan', 'feb', 'mar', 'apr', 'may', 'jun',
                          'jul', 'aug', 'sep', 'oct', 'nov', 'dec'];
            for (var i = 0; i < 6; i++) {
                document.write('<div style="width: 50px;float: left">' + months[i] + '</div>');
                document.write('<div style="width: 50px;float: left">' + months[i + 6] + '</div>');
            }
        </script>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a quite complicated HTML/CSS layout which I would like to convert to
I would like to move a circle along a circular path using HTML/CSS/JavaScript. Is
Currently I am mostly a PHP/Javascript/CSS/HTML applications programmer. But I would like to start
I would like a way to obtain an HTML element or CSS selector (or
I would like to construct an HTML link element referencing a CSS file and
I would like to know how css works under the hood. Whether the html
I really would like to use the layout of this table, but how can
I have an idea for a layout I would like to use, but I
While writing code in a file that would comprise of PHP, HTML, CSS &
Lots of websites use class names like floatleft , clearfloat , alignright , small

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.