Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Three column layout overlapping

Status
Not open for further replies.

dmacster

Technical User
Jan 28, 2005
670
US
I have three columns that must be positioned below some other layers on a page (500px) and cannot get the three columns to NOT overlap. Right most column keeps floating over the middle (contentMain) one.

Relevant CSS below. Any help appreciated.


Code:
div#sidebar {
	position: absolute;
	top: 500px;
	width: 33%;
	display: block;
	padding: 10px;
	left: 0%;
}
div#contentMain {
	position: absolute;
	top: 500px;
	width: 34%;
	display: block;
	padding: 10px;
	border: 1px solid #FBC033;
	left: 33%;
}
div#contentRight {
	position: absolute;
	top: 500px;
	width: 33%;
	display: block;
	border-right-width: 1px;
	border-right-style: solid;
	border-right-color: #FBC033;
	padding: 10px;
	border-top-width: 1px;
	border-bottom-width: 1px;
	border-top-style: solid;
	border-bottom-style: solid;
	border-top-color: #FBC033;
	border-bottom-color: #FBC033;
	left: 67%;
}

Thanks,
Donna
 
I would move away from absolutely positioned solution to using floats. Absolutely positioned elements are sort of like post-it notes in the book. They are completely unaware of where the rest of the content is and vice versa. Using regular flow will help you control overlapping much easier.
 
I'll give it a try - I saw something with floats, but couldn't get it to work for my page.

Thanks - I'll let you know if it works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top