السلام عليكم
كيف ممكن اضع <div> ليكون في قاع الصفحة دائما؟؟؟
الان لدي التالي
كود:#container { width: 780px; height: 100%; margin: 0 auto; text-align: center; } #header { height:302px; width: 780px; position:relative; background:url('../images/header-bg.png') no-repeat left top; margin: 0px; } #footer { height:108px; background:url('../images/footer-bg.png') no-repeat left top; } #Col-1 { margin: 5px; width: 170px; float: left; } #Col-2 { float: left; }
وهذا الكود موجود في الbody في الصفحة
كود:<!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=iso-8859-1" /> <link href="css/style.css" rel="stylesheet" type="text/css" /> <title>site</title> </head> <body> <div id="container"> <div id="header"></div> <div id="Col-1"> Site menu </div> <div id="Col-2"> Site Body <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> </div> <div id="footer"></div> </div> </body> </html>


رد مع اقتباس

