Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


HTML & CSS Web Design

Html Css > Code Examples

Label element right text alignment padding right

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
Label element right text alignment padding right <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Label Element Right Text Alignment Padding Right</title> <style type="text/css"> label { display: block; text-align: right; float: left; width: 200px; padding-right: 25px; } </style> </head> <body> <form action="login.php" method="post"> <label for="username">Username</label> <input type="text" name="username" id="username" value="" /><br /> <label for="Password">Password</label> <input type="text" name="Password" id="Password" value="" /><br /> <label for="recall">Remember you?</label> <input type="checkbox" name="recall" id="recall" class="checkbox" /><br /> <input type="submit" name="Submit" value="Submit" class="buttonSubmit" /> </form> </body> </html>