Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.
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

Description

@jeremygcn

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

Activity

  1. scote commented on Aug 30, 2018

    @scote
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions