Help!

Or search support forum

What's Global Moxie?

Global Moxie is the hypertext laboratory of Josh Clark, whose projects include the Big Medium web content management system. Josh creates web applications and websites from his multimedia studio in Paris, France.

What's Big Medium?

Big Medium is flexible, easy-to-use server software for creating and editing websites directly from your browser. Check out the features or download now.

Moxiemail

Enter your e-mail to receive occasional updates:

How can I display link lists horizontally or in columns?

Question

How can I display link lists horizontally on in columns?

Answer

With a few minor tweaks to your page templates and your theme style sheet, you can make any of Big Medium’s link widgets present links horizontally across the page.

The premise

The HTML generated by Big Medium’s link widgets places each link inside its own <div> tag, with class bmw_link. By adding CSS styles that float each of these <div> elements to the left, the links stack up horizontally instead of vertically.

Setting the width of these <div> elements sets the width of the column. The right margin sets the “gutter” spacing between each column, and the bottom margin sets the spacing between each row.

The hitch

If you want one link widget to display more than a single row of links, you have to set each link’s text block to a fixed height. Otherwise, if one of the text blocks in one row is larger than the others, it will “catch” the first item of the next row, preventing it from aligning at the left of the row, and the whole thing is thrown out of whack.

By setting the links to a fixed height, we can enforce a grid no matter how much text is in each link. The drawback: If a link’s text block is longer than this height, its text will be clipped.

Putting it all together

  1. In Big Medium, go to “Layout>Edit Templates.”

  2. Select the template where you want to display links horizontally.

  3. Edit the template, wrapping the widget you want to display horizontally in a <div> with a “horizontal” class. For example:

    <div class="horizontal">
        <%links%>
    </div>
    
  4. After saving the template, follow the link on the next page to rebuild the necessary pages.

  5. Go to “Layout>Edit Theme Style Sheet” and add the following CSS to your styles, editing the values to suit your design. For example, the following will display links in three columns in a 500-pixel block.

    div.horizontal {
        width: 500px;        /*overall width for the block of links */
        overflow: hidden;
    }
    div.horizontal div.bmw_link {
        float: left;
        width: 150px;        /* width of each column */
        height: 150px;       /* height of each row */
        margin-right: 15px;  /* spacing between columns */
        margin-bottom: 15px; /* spacing between rows */
        overflow: hidden;
    }
    
  6. Save the settings, and you’re done.

Download Big Medium
Try it free for 30 days, or buy to unlock.

Absolutely Stellar

"This is certainly restoring my excitement about web development. Thank you for an absolutely stellar product."
—Kevin Waite

"I've shown Big Medium in action to a few people. The thing practically sells itself."
—Gerry Leonidas

"Sorry for gushing, but you are #1 in terms of great support of all the vendors or companies I've ever dealt with. I talk up Big Medium to all the web developers I meet. The value of what Big Medium does compared to what you charge is amazing."
—Brian White, columbussports.com

I was just looking around the Global Moxie site and happened on your manifesto, and you do exactly what you say you do. Ever thought of going into politics?
—Jerry Kennard

More praise for Big Medium