Mds
Active Member
سلام به بچه های حرفه ای
چرا کد زیر قاطی پاتی هست ، چون تو css ایراد داره اینجا پرسیدم
من میخوام همه منوها بیان سمت راست و بالا درست زیر هدر
و همه content ها هم سمت چپ زیر هدر
اما هر کاری میکنم درست نمیشه
ممنون میشم جوابم رو بدین :
چرا کد زیر قاطی پاتی هست ، چون تو css ایراد داره اینجا پرسیدم
من میخوام همه منوها بیان سمت راست و بالا درست زیر هدر
و همه content ها هم سمت چپ زیر هدر
اما هر کاری میکنم درست نمیشه
ممنون میشم جوابم رو بدین :
کد:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test</title>
<style type="text/css">
<!--
body,td,th {
font-family: Tahoma;
font-size: 12px;
color: #000000;
}
body {
background-color: #ECE9D8;
}
a:link {
color: #0000CC;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #0000CC;
}
a:hover {
background-color:#FFFFCC;
text-decoration: none;
color: #0033FF;
}
a:active {
text-decoration: none;
color: #0033FF;
}
/*********************/
#Header {
background-color: #CC6600;
}
#Content {
background-color: #FFFF00;
float: left;
width: 70%;
}
#Menu {
background-color: #FF0000;
float: right;
width: 30%;
}
#Footer {
background-color: #FFCC00;
clear: both;
}
-->
</style>
</head>
<body>
<div id="Header">Header</div>
<div id="Content">Content</div>
<div id="Content">Content</div>
<div id="Content">Content</div>
<div id="Content">Content</div>
<div id="Menu">Menu</div>
<div id="Menu">Menu</div>
<div id="Menu">Menu</div>
<div id="Menu">Menu</div>
<div id="Footer">Footer</div>
</body>
</html>