Jump to content

Perfect in FF, but not in IE


Blue_tac

Recommended Posts

Hi, am trying to establish a website: http://www.tardis.ed.ac.uk/~mbe/IEB/Main problem is IE doesn't like the css. It puts the menu all over the place, whereas firefox sets it all up perfectly. Have tried playing with z values to force priorities, and have tried setting positions to absolute and forcing positions, but IE just tends to ignore it anyway.Code attached, any help greatly appreciated:

#navbar{	background: #669933;	position: absolute;	float: left;	width: 180px;	padding-top: 20px;	padding-left: 10px;	border-right: 2px dotted silver;	text-align: left;	z-index: 2;}#body{	position: absolute:	left: 200;	float: left;	padding-left: 210px;	margin-left: 10px;	padding-right: 10px;	text-align: justify;	z-index: 1;}

Link to comment
Share on other sites

Well, there is no reason to "float" elements that are absolute posionned and your nav bar has no reason to be absolute positioned as well because you didn't set it any position with top, left, etc. So remove the floating and absolute posionning and it should be fine. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...