Can we move a login button to the right in HTML?

Yes, you can move button in HTML.

It’s very easy to move button in html.

There is one float css property we have to use to move.

The float CSS property specifies that an element should be taken from the normal flow and placed

Along the left or right side of its container, where text and inline elements will wrap around it.


<button class=”btn” style=”float:right”>Login</button>

Second way is to use Margin Property.


more you increase the pixels the more the button will move to right.

This will help you to make website as per your design.

There are so many attributes and tags in HTML and CSS to learn.

Really it is fun to learn web design course at Tririd, we train the learners Best.

Tririd design and Develop Website in Word press, HTML, CSS, Java Script , PHP etc.

You can review our website @

For more information about Tririd

Call us @ 8980010210

Visit us @

Leave a Reply

Your email address will not be published. Required fields are marked *