hello,
i am using materialize in a project of mine, but i can’t center the form for some reason
i used center-align
class in the form but it only work on the header and submit button, and i want the inputs to center too.
here is my code:
<div className="container">
<div className="preloader-wrapper active big">
<div className="spinner-layer spinner-blue-only">
<div className="circle-clipper left">
<div className="circle"></div>
</div><div className="gap-patch">
<div className="circle"></div>
</div><div className="circle-clipper right">
<div className="circle"></div>
</div>
</div>
</div>
<form onSubmit={this.submit} className="center-align col s12 ">
<h1>Sign Up</h1>
<div className="row">
<div className="input-field col s12 m6">
<input id="user_name" type="text" name='username' onChange={this.getInput} required/>
<label htmlFor="user_name">Username</label>
<span className="helper-text">Only numbers and letters</span>
</div>
</div>
<div className="row">
<div className="input-field col s12 m6">
<input id="user_email" type="email" name="email" onChange={this.getInput} required/>
<label htmlFor="user_email">Email</label>
</div>
</div>
<div className="row">
<div className="input-field col s12 m6">
<input id="user_password" type="password" name="password" onChange={this.getInput} required/>
<label htmlFor="user_password">Password</label>
<span className="helper-text">Must be 12 characters, letters and numbers</span>
</div>
</div>
<button className="btn waves-effect waves-light" type="submit" name="action">Submit</button>
</form>
</div>
any solution would be great.