jds41979 wrote:
Could some of you experts explain how to create a 3 column page using css and show code examples. Nothing I have seen explains this. If possible could you have a button link to another page in the same window changing only the middle column.
Thanks if you can help.
There are multiple ways to create a three column layout. Tom used absolute positioning, and I would tend to use a float method. You can see three columns on a site I created at Brighter Day Charities (use the link below). The CSS for that would be:
<style type="text/css">
body {
min-width: 770px;
margin-top: 0px;
}
#left {
float: left;
margin-left: 5px;
margin-right: 5px;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 5px;
padding-right: 5px;
width: 235px;
align:center;
}
#center {
float: left;
margin-left: 5px;
margin-right: 5px;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 5px;
padding-right: 5px;
width: 235px;
align:center;
}
#right {
float: left;
margin-left: 5px;
margin-right: 5px;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 5px;
padding-right: 5px;
width: 235px;
align:center;
}
</style>
Notice that I have my page setup to have a width of 770px.
The code would look something like this:
<div id="left>
left column content here.
</div>
<div id="center">
center content here.
</div>
<div id="right">
right content here.
</div>
For your middle column, you may want to make the center column an iframe, and have a button to change the content.
Try different methods, and use the one that fits how you work and think. If you have any questions, be sure to ask, and Tom and I can fight over absolute positioning and floats.