I've searched extensively but I'm struggling to find a solution, so please excuse if this seems like a simple question.
Essentially, I have a text box that I want to center on my page. The issue is that I have padding inside the textbox, which affects the alignment of the text with the border.
Is there a way to achieve this?
Here is the website in question: http://prntscr.com/c2m93u You'll notice that the spacing between the left and right sides is uneven. This is due to the padding I have applied.
Below is my code:
<input type="text" name="username" value="Gebruikersnaam", id="TextField" style="width:100%;height:25px;background-color:black;color:white;border:0px;margin:auto;padding-left:4px;padding-right:4px;">
Any assistance on this matter would be greatly appreciated. Thank you in advance.