Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to set log out button at right-corner in my website using html

Tags:

javascript

css

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>
like image 632
ravi Avatar asked Dec 09 '22 09:12

ravi


1 Answers

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>
like image 172
Butani Vijay Avatar answered Dec 11 '22 10:12

Butani Vijay