John
John

Reputation: 3945

Right align position of a button

ATM my button appears at the top left of the page. I want to change it to top right. I've added the text align., to the tag and the button..but makes no difference....any ideas?

<a style="text-align:right" href='@Url.Action("Index", "Route", new { id = Model.ID })' class="align:right;">
<button style='text-align:right'>Print Preview</button>
</a> 

thanks

Upvotes: 4

Views: 19805

Answers (2)

Gintas K
Gintas K

Reputation: 1478

Try placing it in a <div> with style="text-align: right; width: 100%;"

Upvotes: 8

Falguni Panchal
Falguni Panchal

Reputation: 8981

may i sure try this give button style float:right;

http://jsfiddle.net/aJDXb/1/

<a style="text-align:right;" href='@Url.Action("Index", "Route", new { id = Model.ID })' class="align:right;">
<button style='float:right;'>Print Preview</button>
</a> 

Upvotes: 5

Related Questions