views:

54

answers:

3

I'm using the following template:

http://www.styleshout.com/templates/preview/KeepItSimple11/index.html

The first column is wider than the two that follow it to the right. Simply put, I'm trying reorder the layout so that the wider first column becomes the 2nd column, in between the two narrower columns. I've spent a fair amount of time with the grid based CSS layout but have not come close to achieving this. I'd appreciate any guidance on how to achieve this, are there more ways than one?

EDIT: Thanks for suggestions, however please provide a complete answer if possible. I'm not sure how to adapt the answers to complete the solution.

+2  A: 

Have you tried using "position: relative"?

#left-row {
    position:relative;
    left:100px;
}

#right-row {
    position:relative;
    left:-100px;
}
Molske
+1 - that's a better plan than mine, but I think you're missing some `.` and `#` characters in those selectors...
LeguRi
was a bit fast, fixed selectors.
Molske
Sorry if I'm a bit obtuse, but once I add this to the css, what do I change in the html? Do I assign the class or an id?
Rhubarb
the left-row and right-row selectors are only there to visualize what changes need to be made in the CSS of the DIV's you want to switch.
Molske
+1  A: 

Try this:

div#content-wrapper #main {
    left:230px;
    position:absolute;
    top:0;
}
div#footer-wrapper {
    clear:both;
}
div#content-wrapper {
    left:0;
    overflow:hidden;
    position:relative;
    top:0;
}
#left-columns .omega {
    float:right;
}

... but if your now-center column is ever notably longer than the side columns, you're going to have problems.

LeguRi
+1  A: 

You can change the position in your css class. Try following:

#RightContent{
left: auto;
right: 0; 
width: 150px;
background-color: navy;
}

#LeftContent{
position: absolute; 
top: 0; 
left: 0; 
width: 200px;
height: 100%;
background-color: navy;
}

#MiddleContent{
position: fixed; 
top: 0;
left: 200px;
right: 150px;
bottom: 0;
overflow: auto; 
background: #fff;
}
KMan