Skip to content
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 field text-align #230

Open
chip opened this issue Jul 12, 2014 · 0 comments
Open

Form field text-align #230

chip opened this issue Jul 12, 2014 · 0 comments

Comments

@chip
Copy link

chip commented Jul 12, 2014

Hi, This is a really slick framework and I love working with it, so great job!

I have the following HTML and would like to right-justify the text inside the form field:

<input name="line_total" min="0" step="any" class="input line-total" value="4.00" type="number">

Here's what I tried which didn't work:

input[type="number"] {  
  text-align: right;
}

And here's what did work, but there's an issue:

.input.line-total {  
  text-align: right;
}

image

As you can see, the text is not fully in view. I've tried adding a padding-right, which solves the problem for this css selector, but have found that the padding required varies depending on the field size (or possibly because some of my other fields are using step attributes).

At any rate, I'm curious to know if there's a more consistent way to do this for all input fields, regardless of size or other attributes. I cannot find anything in the documentation and was hoping you could point me in the right direction.

Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant