Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

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.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

2 participants