Hi all
I'm a 100 confident programmer php wise but when it comes to designing pages I loathe it.
Any way I want to have a 3 column page such as:-
So basically the columns are the content, nav and info id's. I would prefer the content id to be output first as it is in the example. How do I make it so that nav is on the left, info on the right and content in the middle.
I have done:-
Obviously not much done here, but anyway if I have 2 that are set as right then it seems to put the first 1 output as the far most right and the next right in this case info next to it.
It seems to be ordered by first come first served. What is the best solution? I presume it would be the use of a 2nd wrapper containing the info and content and order them within this new container?
Cheers In Advance
Peter
I'm a 100 confident programmer php wise but when it comes to designing pages I loathe it.
Any way I want to have a 3 column page such as:-
PHP:
<div id="wrapper">
<div id="head"><h1>petermcdonald.co.uk</h1></div>
<div id="content"><h1>Examples</h1>
<p>THIS IS WHERE THE CONTENT IS</p>
</div>
<div id="nav">
<ul>
<li><a href="#">nav1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">6</a></li>
</ul>
</div>
<div id="info">
<ul>
<li><a href="#">info1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">6</a></li>
</ul>
</div>
So basically the columns are the content, nav and info id's. I would prefer the content id to be output first as it is in the example. How do I make it so that nav is on the left, info on the right and content in the middle.
I have done:-
HTML:
#nav
{
float: left;
width: 25%;
}
#content
{
float: right;
width: 50%;
}
#info
{
float: right;
width: 25%;
}
Obviously not much done here, but anyway if I have 2 that are set as right then it seems to put the first 1 output as the far most right and the next right in this case info next to it.
It seems to be ordered by first come first served. What is the best solution? I presume it would be the use of a 2nd wrapper containing the info and content and order them within this new container?
Cheers In Advance
Peter
Last edited:




