My website features a comments section on the right side of the screen, and I want the comment button to be perfectly aligned with the edge of this section. Despite using float:right in my CSS, there seems to be a few pixels off. Here is the relevant code snippet:
#addCommentButton{
float:right;
}
The corresponding HTML is as follows:
<div id="comment_container">
<form id="comment_form">
<input class="input line1" id="nameInput" placeholder="Name">
<button id="addCommentButton" class="line1" type="submit">Comment</button>
<textarea class="input" id="comment_area" placeholder="Comment here"></textarea>
</form>
<div id="comments"><span id="loading">Loading comments...</span></div>
</div>
I have never encountered this issue before and am unsure why it's happening. Any insights or suggestions would be greatly appreciated.