Jump to content

Is there a simple 3 column template for processwire ?


pwired
 Share

Recommended Posts

Hi,

Is there somewhere a simple 3 column template for processwire ?

Something like:

titles       main text        titles

links                               links

info                                 info

Link to comment
Share on other sites


-------------------------------------------------------------------------

| overflow visible |

| --------------------------------------------  --------------------- |

| |                 float left | | | |

|  | ------------------ ------------------ | | | |

| | | | | | | | | |

| | | float left | | float right | | | float right | |

| | | | | | | | | |

| | ------------------ ------------------  |  |                   |  |

| -------------------------------------------- --------------------- |

-------------------------------------------------------------------------

  • Like 3
Link to comment
Share on other sites

@pwired, consider Diogo's approach.

Hi Martijn, thanks for stepping in. Yes I am trying diogo's approach and some others.

I have to finish it this evening and show something good or I will lose the job.

For me (not being a pro) it's gonna be a race against the clock.

Link to comment
Share on other sites

For me this is the fastest way:

3 divs inside another: float them left, set box-sizing: border-box, and then give them approximately 1/3 of 100% width. give them an approximate right-margin that fills the blanks and 0 right-margin to the last div using :last-child. Adjust the right margin until the last div touches the side.

http://codepen.io/anon/pen/xBGej

  • Like 2
Link to comment
Share on other sites

Maybe your fastest approach would be to shove in Bootstrap 3 or Foundation.

This is Diogos suggestion in Bootstrap - sorry, bit off the cuff so it might have a typo or two,

<div class="container">

  <div class="row">

     <div class="col-md-10>
          <div class="row">
              <div class="col-md-2">
                   Left Column
              </div>
              <div class="col-md-8">
                     Middle Column
               <div class="col-md-2">

               </div>

          </div><!-- /row -->

     </div><!-- /col md 10 -->

     <div class="col-md-2">
           Right had column
      </div>

</div><!-- /row -->
 

The main problem is that on smaller devices The rows will rearrange in the order:

Left Row

Middle

Right Row

Which is not helpful as you really want the middle to be the first thing you see (and why this sort of layout is problematic)

However, Bootstrap also allows you to hide divs or make them visible in different devices. So, you can actually do FOUR columns, with the first and the fourth having the same info but hidden or shown depending on your need. So, an easier way would be:

<div class="row">
      <div class="col-md-2 hidden-sm">
      </div>
      <div class="col-md-8">
      </div>
      <div class="col-md-2">
      </div>
      <div class="col-md-2 visible-sm">
      </div>
</div>
 

Sorry, best I could come up with in 5 minutes

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...