You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write, Run & Share Materialize code online using OneCompiler's Materialize online editor for free. It's one of the robust, feature-rich online editor for Materialize. Getting started with the OneCompiler's Materialize online editor is really simple and pretty fast. The editor shows sample boilerplate code when you choose language as 'Materialize' and start writing code to learn and test online instantly.
About Materialize
Materialize CSS is a UI component library which is created with CSS, JavaScript and HTML by Google.
Key principles:
Material is the metaphor
Bold, graphic, intentional
Motion provides meaning
Syntax help
CSS
Color
Background color
<divclass="card-panel teal lighten-2">This is a card panel with a teal lighten-2 class</div>
Defines 12 of 12 columns with width as 100%. Default class for small screen phones
Medium Screen Devices
m1
Defines 1 of 12 columns with width as 08.33%
m2
Defines 2 of 12 columns with width as 16.66%.
m3
Defines 3 of 12 columns with width as 25.00%.
m4
Defines 4 of 12 columns with width as 33.33%.
m5-m11
Defines 5-11 columns respectively
m12
Defines 12 of 12 columns with width as 100%. Default class for medium screen phones
Large Screen Devices
l1
Defines 1 of 12 columns with width as 08.33%
l2
Defines 2 of 12 columns with width as 16.66%.
l3
Defines 3 of 12 columns with width as 25.00%.
l4
Defines 4 of 12 columns with width as 33.33%.
l5-l11
Defines 5-11 columns respectively
l12
Defines 12 of 12 columns with width as 100%. Default class for large screen devices like laptops
Usage
<divclass="col s2 m3 l4"></div>
The above specifies to use 2 columns on a small screen, 3 on a medium screen, and 4 on a large screen
<divclass="row"><divclass="col s12">This div is 12-columns wide on all screen sizes</div><divclass="col s6">6-columns (one-half)</div><divclass="col s6">6-columns (one-half)</div><divclass="col s6 offset-s6"><spanclass="flow-text">6-columns (offset-by-6)</span></div><divclass="col s7 push-s5"><spanclass="flow-text">This div is 7-columns wide on pushed to the right by 5-columns.</span></div><divclass="col s5 pull-s7"><spanclass="flow-text">5-columns wide pulled to the left by 7-columns.</span><div></div>
<divclass="row"><divclass="col s12 m6"><divclass="card blue-grey darken-1"><divclass="card-content white-text"><spanclass="card-title">Card Title</span><p>I am a very simple card. I am good at containing small bits of information.
I am convenient because I require little markup to use effectively.</p></div><divclass="card-action"><ahref="#">This is a link</a></div></div></div></div>