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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fixed width menu with page width content?

Status
Not open for further replies.

Cheech

Technical User
Nov 6, 2000
2,933
EU
I have a page with header, footer and main content area. In the main content area there are 2 divs for the content and the nav. I would like the content to be effectivly attached to the side of the nav(which is fixed width) and then grow to the full remaining width of the page. Can some one tell me what is wrong with the css below?
Code:
#main {
	clear:both;
	position:relative;
  	float: right;
  	width: 65%;
  	padding-right:1em;
	z-index:2;
}
.navmenu{
position:relative;
	list-style-type: none;
	margin: 0;
	padding: 0;
	width: 14em;
	text-align:left;
	vertical-align: top;
	z-index:3;
}

[Peace][Pipe]
 
tips:
don't use percent
you can use and negative numbers for position
try absolute position in a div :D

or try to float one in left and the other in right

i hope it helps you :D

whend all you need is time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top