28173 sujets

CSS et mise en forme, CSS3

bonjour,

je voudrais positionner un calque a coté d'un autre,j'y arrive mais dream me donne un apercu qui narien a voir avec FF ou IE....voici le css :


body {
width:1024;
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
	font-family: verdana, arial, helvetica, sans-serif;
	color: #ccc;
	background-image: url(img/background2.gif);
	background-color: #000000;
	text-align: center;
	position: relative;
	}
	
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/*            HEADER             */
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
#header {
	width: auto;
	padding: 10px;
	margin-top: 0px;
	margin-bottom: 20px;
	margin-right: auto;
	margin-left: auto;
	border-bottom: 5px solid #693618;
	text-align:left;
	background-color: #660033;
	}
	html>body #content {
	width: 370px;
	}
	
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/*          NAVIGATION           */
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
#nav {
	width: 350px;
	padding: 10px;
	margin-top: -57px;
	margin-bottom: 20px;
	font-size: 9px;
	margin-right: 160px;
	margin-left: auto;
	border-bottom: 5px solid #693618;
	text-align:left;
	background-color: #660033;
	}
	html>body #content {
	width: 370px;
	}
	
#nav2{
	width:120px;
	margin-left:220px;
	margin-right:50px;
	font-size:9px;
	text-align:right;
	position:relative;
	z-index:1;
	background-color: #99CC33;
	height: 350px;
}	
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/*            CONTENT            */
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
#content {
	width: 400px; 
	padding: 10px;
	margin-top: auto;
	margin-bottom: 10px;
	margin-right: 140px;
	margin-left: auto;
	background: #D3C7A4;
	color: #660000;
	text-align:left;
	font-size: 12px;
	position:relative;
	z-index:1;
	}
	
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/*           FOOTER              */
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
	#footer {
	color: #663300;
	background: #F9F9F9;
	clear: both;
	width: 350px;
	margin-left: 4px;
	height: 20px;
	padding: 4px;
	border: 1px solid #999;
	font-size: 09px;
	text-align: right;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	}
	a:link {
	color: #FF6600;
	text-decoration: none;
	}
	a:visited {
	color: #FF6600;
	text-decoration: none;
	}
	a:hover {
	text-decoration: overline underline;
	}
	a:active {
	text-decoration: none;
	}


le probleme se pose pour nav2 et content....