behnam shamlo
پنج شنبه 26 آبان 1390, 23:57 عصر
سلام
من می خوام یه فرم برای تماس با من بسازم با div و css
ولی هرکاری میکنم نمی تونم فرم ام رو بوسیله css وسط صفحه قرار بدم
با تگ center در html تونستم ، و فرم وسط صفحه اومد ولی تکست های فرم مثل نام و ایمیل و پیغام هم در داخل فرم وسط چین شد.
چیزی که برام مهمه میخوام با css اینکارو انجام بدم
<form method="post" action="mail.php">
<div style="border: dashed #3300FF; width: 300px;margin-top: 100px;">
<div >
<div style="border: #3300CC dashed; float: left; width: 100px;border-left: 5px">Full name:</div>
<div style="border: #3300CC dashed; width: 300px"><input type="text" size="26" /></div>
</div>
<div style="clear: none">
<div style="border: #FF0066 dashed; float: left ; width: 100px;border-left: 5px" >Email:</div>
<div style="border: #FF0066 dashed; width: 300px;"><input type="text" size="26" /></div>
</div>
<div style="">
<div style="border: #330000 dashed;float: left;width: 100px" >Message:</div>
<div style="border: #330000 dashed;width: 300px"><textarea rows="5" cols="20" ></textarea></div>
</div>
<div style="width: 300px"><input type="submit" value="Send" /></div>
</div>
</form>
در ضمن من در کار کردن با css نا واردم( نخندید)
اگه هم در استایل هام چیز اضافی هست بهم بگید
ممنون میشم کمک کنید
من می خوام یه فرم برای تماس با من بسازم با div و css
ولی هرکاری میکنم نمی تونم فرم ام رو بوسیله css وسط صفحه قرار بدم
با تگ center در html تونستم ، و فرم وسط صفحه اومد ولی تکست های فرم مثل نام و ایمیل و پیغام هم در داخل فرم وسط چین شد.
چیزی که برام مهمه میخوام با css اینکارو انجام بدم
<form method="post" action="mail.php">
<div style="border: dashed #3300FF; width: 300px;margin-top: 100px;">
<div >
<div style="border: #3300CC dashed; float: left; width: 100px;border-left: 5px">Full name:</div>
<div style="border: #3300CC dashed; width: 300px"><input type="text" size="26" /></div>
</div>
<div style="clear: none">
<div style="border: #FF0066 dashed; float: left ; width: 100px;border-left: 5px" >Email:</div>
<div style="border: #FF0066 dashed; width: 300px;"><input type="text" size="26" /></div>
</div>
<div style="">
<div style="border: #330000 dashed;float: left;width: 100px" >Message:</div>
<div style="border: #330000 dashed;width: 300px"><textarea rows="5" cols="20" ></textarea></div>
</div>
<div style="width: 300px"><input type="submit" value="Send" /></div>
</div>
</form>
در ضمن من در کار کردن با css نا واردم( نخندید)
اگه هم در استایل هام چیز اضافی هست بهم بگید
ممنون میشم کمک کنید