Reputation: 3945
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
Reputation: 1478
Try placing it in a <div>
with style="text-align: right; width: 100%;"
Upvotes: 8
Reputation: 8981
may i sure try this give button style float:right;
<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