-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Form inputs in the header/footer are off-center #94
Comments
This was added in #93 to fix a weird Firefox bug: To reduce complexity and future bugs, I think we should either let the browser set the input field widths (option A), or set them to 100% (option B). Option B would look more uniform. If we go with option A, users can control the initial width by using the |
lkhrs
added a commit
to lkhrs/simple.css
that referenced
this issue
Jul 14, 2022
use browser default of inline-block for input fields, set labels to block. Users will need to remove linebreaks (<br>) between labels/inputs
lkhrs
added a commit
to lkhrs/simple.css
that referenced
this issue
Jul 14, 2022
use browser default of inline-block for input fields, set labels to block. Users will need to remove linebreaks (<br>) between labels/inputs
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The rules for
input, select, textarea
apply a1rem
right margin that pushes the form controls off-center when placed in center-aligned regions such as headers and footers.The screenshot below shows a language select form placed in the footer of a page. The select control has a 16-pixel right margin pushing it off-center as can be seen relative to the submit button and paragraph below it.
Here is HTML source that produced the effect in Chrome v103:
The submit button does not have the right margin applied due to a separate
margin
rule applied elsewhere under theinput[type="submit"]
selector. That slight difference is how I was able to notice this issue in the first place.Perhaps creating a ruleset just for the textarea, input, and select controls inside headers and footers is the best solution?
The text was updated successfully, but these errors were encountered: