+ 2
How can I center a button in CSS ?
Will I tryed to center like left 50px and top 50px it works but when screen gets smaller the button position changes it's to hard to make a website responsive any easier ways plz and thanks.
6 odpowiedzi
+ 4
<div style="text-align: center">
<button>Login</button>
</div>
Not a bad option to do it
To the responsive, use media queries and external CSS
best regards
Good luck
+ 4
Hi, I can assist you. Could you please share your codebit so I can review it and identify the issue?
+ 4
Create a container div to the button and write
text-align: center
To the container
It will be centered perfectly
+ 3
Rob Collins why not join the discussion on that topic here https://www.sololearn.com/Discuss/3285514/?ref=app
+ 1
.Be honest
Be honest with ourselves who here uses ai to make code i do. I am learning Python so I can do machine learning and become a data scientist, not make a web page, but if I do want to make a web page, I usually use AI and paste it here there I am
+ 1
Good to be honest, AI can help but I think it's better to have own knowledge to be autonomous