Jump to content

CSS layout help.


Guest

Recommended Posts

Hi, im trying to have the left & right columns at the edge of the pages, so the whole page can expand to your monitor size. The problem is when I make the browser window smaller the right hand column always drops down below the middle box.

How would I set it up to work like a normal table? more or less?

This is my current code, page width is 100% with no margin:

.colLeft {

	position: absolutely;

	left: 0px;

	width: 160px; 

	padding-left: 5px;

	padding-right: 5px;

	float: left;

}

.colMid {

	position: relative;

	padding-left: 0px;

	padding-right: 0px;

	width: 78%;

	float: left;

}

.colRight {

	position: absolutely;

	width: 160px; 

	padding-left: 5px;

	padding-right: 5px;

	float: right;

Cheers!

Link to comment
Share on other sites

  • 2 weeks later...

Guest Insurrectus

First of all, "position: absolutely;" is incorrect

This tag should read "position: absolute;"

Then you will need to comment out the width section of div #pageSurround:

#pageSurround {

/*width: 890px;*/

Your column classes should look something like this:

.colLeft {

position: absolute;

left:5px;

top:125px;

width: 160px;

padding:0 5px 0 0;

}

.colMid {

margin:0px 165px 50px 165px;

}

.colRight {

position: absolute;

right:5px;

top:125px;

width: 160px;

padding:0 0 0 5px;

}

I am implementing the same thing on my site: One Crafty Mama

Link to comment
Share on other sites

Great thanks, I will give it a go shortly. I don't tend to have any nav on the right s oI thought I would try to change the layout of the shop slightly to make it more user freindly. Cheers!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...