I am having a project in which I want to show one log out button at the right-corner of my website.
I am using following code which doesn't work properly.
<form align="right" name="form1" method="post" action="log_out.php">
<label>
<input name="submit2" type="submit" id="submit2" value="log out">
</label>
</form>
You can do it using css as below:
Css:
.logoutLblPos{
position:fixed;
right:10px;
top:5px;
}
//html
<form align="right" name="form1" method="post" action="log_out.php">
<label class="logoutLblPos">
<input name="submit2" type="submit" id="submit2" value="log out">
</label>
</form>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With