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

Ho to align material-icon and a text-input #348

Open
jeremychamboultou opened this issue Aug 30, 2018 · 1 comment
Open

Ho to align material-icon and a text-input #348

jeremychamboultou opened this issue Aug 30, 2018 · 1 comment

Comments

@jeremychamboultou
Copy link

Hello,
Do you know how to align a material-icon with an input?
Here is my code:

<mz-input-container class="col s3">
				<i class="material-icons prefix">swap_vert</i>
				<input mz-input
				[(ngModel)]="settings.vert"
				[label]="'Nombre de colones :'"
				[validate]="true"
				id="vert-input"
				type="number"
				name="vert">
			</mz-input-container>

Here is the rendering:
selection_123

Do you know how to align the icon and the input?
Thank you in advance.
Jérémy

@scote
Copy link
Contributor

scote commented Aug 30, 2018

If you go to http://archives.materializecss.com/0.100.2/forms.html on Icon Prefix section. It is the way it should look like.

You can try to add an new class and play with the padding or margin of the icon.

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

No branches or pull requests

2 participants