How do you align buttons to where you want them? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do you align buttons to where you want them?

^^^Above^^^

20th Dec 2017, 2:10 PM
JOHNTHEBUN
JOHNTHEBUN - avatar
5 Answers
+ 4
In HTML, <button> hi </button> In CSS, button { text-indent: 50%; /*(This will align to center)*/ }
28th Jun 2018, 9:07 PM
🐺Michael🐺
🐺Michael🐺 - avatar
+ 3
align="left"/"center"/"right"
20th Dec 2017, 2:32 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 3
i mean the BUTTON itself...
20th Dec 2017, 2:35 PM
JOHNTHEBUN
JOHNTHEBUN - avatar
+ 3
button{ position: absolute; top: 5px; left: 40px; }
28th Jun 2018, 9:11 PM
Jax
Jax - avatar
+ 2
You can also make their position absolute position: absolute; and change it with top left bottom and right top: 5px; left: 40px;
28th Jun 2018, 9:10 PM
Jax
Jax - avatar