How can i put a button in up-right corner? I was trying a lot of CSS things, but i really can't understand them, and they doesn't work. Can someone tell me something simple and that works? Here is HTML & CSS of my button.
HTML: < a href="#" class="myButton">green< /a>
CSS: http://www.stefanpage.ml/questions/css-1.html
Every answer is useful! :)
This is how i mean that.
position: absolute;
top: 10px;
right: 10px;
Are you looking for something like this:
.myButton {
padding: 30px;
display:block;
background-color: green;
color: white;
text-align:center;
position: absolute;
top: 10px;
right: 10px;
}
https://jsfiddle.net/6dg8nc4u/
Please mark as correct answer if that's what you are looking for.
Thanks!
.myButton {
position: fixed; /* or position: absolute; */
top: 0;
right: 0;
}
That is only the code for the positioning. All other styling is left out.
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