HTML, CSS and anything else that deals with client side capabilities.
Moderator: General Moderators
-
vin_akleh
- Forum Commoner
- Posts: 53
- Joined: Sat Feb 14, 2009 10:26 am
Post
by vin_akleh »
how can center this html form??? it doesn't matter if i center the whole page, that will be ok
Code: Select all
<HTML DIR=RTL> <HEAD> <title>صفحة تسجيل الدخول المسؤول</title> <META charset=windows-1256><link rel="stylesheet" type="text/css" href="style.css" media="screen" /></head> </head> <body> <span class="adminlogin"> <form method="post" action=""> <label> الأسم:<br/> <input type="text" name="name" maxlength="5"/> </label> <br> <br> <label> كلمة السر: <br/><input type="password" name="pass" /> </label> <br> <br> <input type="submit" value="تسجيل الدخول" name="submit"/>   </form></span> </body> </html>
i have tried to use "span class" in css ".adminlogin{width: 80%;margin-left:auto;margin-right:auto;}" that didnt work!! any ideas
-
pickle
- Briney Mod
- Posts: 6445
- Joined: Mon Jan 19, 2004 6:11 pm
- Location: 53.01N x 112.48W
-
Contact:
Post
by pickle »
Try making it a div instead?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
-
vin_akleh
- Forum Commoner
- Posts: 53
- Joined: Sat Feb 14, 2009 10:26 am
Post
by vin_akleh »
thanks