سلام .
من تو قسمت بادی از این تگ استفاده کردم برای بخش بندی سایت ::
و تو فایل css هم اینو زدم ::کد HTML:<head> <meta charset="UTF-8"> <title>company</title> <meta name="description" content="///"> <meta name="keywords" content="///"> <meta name="robots" content="index,follow"> <meta name="copyright" content="i"> <!--css link--> <link rel="stylesheet" href="css/style.css" type="text/css"> <!--/css link--> </head> <body> <div id="main"></div> <div id="logo-text">عنوان سایت</div> </body> </html>
اما الان مشکل اینجاست که title سایت زیره main افتاده .کد HTML:*{ direction:rtl; padding:0; margin:0; } @font-face { font-family: 'WYekan'; src: url('font/WeWYekan.eot'); src: url('font/WebYekan.eot?#iefix') format('embedded-opentype'), url('font/WebYekan.woff') format('woff'), url('font/WebYekan.ttf') format('truetype'), url('font/WebYekan.svg#WebYekan') format('svg'); font-weight: normal; font-style: normal; unicode-range: U+0600–06FF; } body{ background-color:#ededed; } #main{ margin-right:250px; margin-left:250px; width:900px; height:1500px; float:none; }
من در قسمت main باید از چه کدی استفاده بکنم تا همه قسمت هایی که با تگ div تعریف میکنم تو قسمت خودش باشه ؟؟
از float باید استفاده بکنم ؟؟





پاسخ با نقل قول