Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Columns widget

Posted on 2014-04-07
3
Medium Priority
?
292 Views
Last Modified: 2014-04-10
Hi Guys,

this looks like a coulumn widget here on www.piratescove.ie

birthday parties, adventure golf etc...

i want to put something like that into the body of my homepage here

www.thedancingsoul.ie below the slider, if it is a widget how do i insert  it into the body? when it looks like i can only widgets into the sidebar?

thanks guys
0
Comment
Question by:jonathanduane2010
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 54

Assisted Solution

by:Scott Fell, EE MVE
Scott Fell,  EE MVE earned 2000 total points
ID: 39982826
It's not a widget per say.  It is a framework of css and javascript to make sites responsive.  At the core is a css grid (the term you are looking for).  They are using bootstrap2 but the newest version is 3 http://getbootstrap.com/

The grid is explained here http://getbootstrap.com/css/#grid and some sample pages http://getbootstrap.com/getting-started/#examples (click on one and view source).

But the basic way it works is to create multiple containers (rows) with child divs as collapsable columns.

The sample below will be 2 columns on a small screen and collapse to 2 rows on an extra small screen.
<div class="row">
    <div class="col-xs-12 col-sm-6">Stuff</div>
    <div class="col-xs-12 col-sm-6">Stuff</div>
</div>

Open in new window

The xs, sm, md, lg sizes are determined by their media queries found in the link I have above.
/* Extra small devices (phones, less than 768px) */
/* No media query since this is the default in Bootstrap */

/* Small devices (tablets, 768px and up) */
@media (min-width: @screen-sm-min) { ... }

/* Medium devices (desktops, 992px and up) */
@media (min-width: @screen-md-min) { ... }

/* Large devices (large desktops, 1200px and up) */
@media (min-width: @screen-lg-min) { ... }

Open in new window


In order to use this, you would simply need to add the bootsrap css and js files to your page and from there, utilize the classes of rows and columns.
0
 
LVL 54

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 total points
ID: 39982833
If you want to make columns without adding all that framework just for that one spot you can do something simple like this.  
http://jsbin.com/wonayino/1/edit?html,output
<!DOCTYPE html>
<html>
<head>
  <style>
    .row{width:100%;}
    .col_left{float:left;width:30%;background-color:red;}
    .col_right{float:left;width:70%;background-color:purple}
    </style>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
<div class="row">
    <div class="col_left">Stuff</div>
    <div class="col_right">Stuff</div>
</div>
</body>
</html>

Open in new window

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question