W3.
CSS Cheat Sheet
by L3Home via cheatography.com/35953/cs/11615/
Container Classes Responsive Classes Bar Classes
w3-container HTML container w3-row Fluid content row w3-bar Horizontal bar
w3-panel HTML container w3-row- All cols have default w3- Vertical bar
padding padding bar-
w3-badge Circular badge
w3-content Fixed size centered content block
w3-tag Rectangular tag
w3- Common style for items
w3-half 1/2-of-screen column
w3-ul Unordered list
bar-
w3-third 1/3-of-screen column
w3-display- For w3-display- classes item
container w3-twothird 2/3-of-screen column
w3- Side bar
w3-code Code container block w3-quarter 1/4-of-screen column sidebar
w3-codespan Code container inline w3-threequarter 3/4-of-screen column w3- Responsiveness for side bar;
w3-col Fluid content column collaps requires w3-main container
Table Classes e
w3-rest Stretch last element to end
w3- Page container for using w3-
w3-table HTML table container l1 to l12 Sizing for large screens
main collapse
w3-striped Striped table m1 to m12 Sizing for medium screens
w3-border Bordered table s1 to s12 Sizes for small screens Dropdown Classes
w3-bordered Bordered lines w3-hide-small Hide on small screens w3-dropdown-click Clickable dropdown
w3-centered Centered table w3-hide- Hide on medium screens w3-dropdown-hover Hoverable dropdown
w3-hoverable Hoverable table medium
w3-table-all All table properties set w3-hide-large Hide on large screens Button Classes
w3-responsive Responsive table w3-image Responsive image
w3-button Gray rectangular button
w3-mobile Make element mobile-first w3-btn Black rectangular button
Card Classes
w3-ripple Rectangular with ripple effect
w3-card Container w/ 2px shadow Layout Classes
w3-bar Group into horizontal bar
w3-card-4 Container w/ 4px shadow w3-cell-row Container for cells
w3-cell Layout column Input Classes
Modal Classes
w3-cell-top Aligns cell content (top)
w3-input Input element
w3-modal Modal container w3-cell-middle Aligns cell content (mid) w3-check Checkbox
w3-modal-content Modal pop-up element w3-cell-bottom Aligns cell content (bot) w3-radio Radio button
w3-tooltip Tooltip element
w3-select Select list
w3-text Tooltip text
w3-animate-input Slides open on focus
By L3Home Published 27th April, 2017. Sponsored by Readability-Score.com
cheatography.com/l3home/ Last updated 28th April, 2017. Measure your website readability!
Page 1 of 3. https://readability-score.com
W3.CSS Cheat Sheet
by L3Home via cheatography.com/35953/cs/11615/
Animation Classes Display Classes (cont) Effect Classes
w3-animate-top Slide from top -300px w3-show Visible content w3-opacity Opacity 0.6
w3-animate-left Slide from left -300px w3-show- Visible inline content w3-opacity-off Opacity 1.0
inline-block
w3-animate- Slide from bottom -300px w3-opacity-min Opacity 0.75
bottom w3-top Top-of-page fixed w3-opacity-max Opacity 0.25
w3-animate-right Slide from right -300px content
w3-grayscale-min Grayscale 50%
w3-bottom End-of-page fixed
w3-animate- Shift opacity from 0 to 1
w3-grayscale Grayscale 75%
content
opacity
w3-grayscale-max Grayscale 100%
w3-animate-zoom Grows from 0 to 100% w3-display- For w3-display- classes
container w3-sepia-min Sepia effect 50%
w3-spin Spin 360 degrees
w3-display-topleft Content at top left of box w3-sepia Sepia effect 75%
w3-animate-input Grows input field on
w3-display-topright Content at top right of w3-sepia-max Sepia effect 100%
focus
box w3-overlay Overlay effect
Font and Text Classes w3-display- Content at bottom left of
bottomleft box Color Classes
w3-tiny 10px font size
w3-display- Content at bottom right w3-COLOR Background color
w3-small 12px font size
bottomright of box
w3-hover-COLOR Hover color
w3-large 18px font size w3-display-left Content at middle left of
w3-text-COLOR Text color
w3-xlarge 24px font size box
w3-hover-text-COLOR Hover text color
w3-xxlarge 32px font size w3-display-right Content at middle right
of box
w3-xxxlarge 48px font size
Other Hover Classes
w3-display-middle Content at center of box
w3-jumbo 64px font size
w3-hover-border- Color on hover
w3-wide Wider text w3-display- Content at top center of
COLOR
topmiddle box
w3-serif Changes to serif font
w3-display- Content at bottom center w3-hover-opacity Opacity on hover
bottommiddle of box w3-hover-opacity-off Remove opacity on
Display Classes
w3-display-position Content at specified hover
w3-center Centered content position w3-hover-shadow Shadow on hover
w3-left Float to left w3-display-hover Content on hover over w3-hover-grayscale Grayscale on hover
w3-right Float to right the box
w3-hover-sepia Sepia on hover
w3-left-align Left aligned text w3-hover-none Remove hover effects
w3-right-align Right aligned text
w3-justify Justified text
w3-circle Round content
w3-hide Hidden content
By L3Home Published 27th April, 2017. Sponsored by Readability-Score.com
cheatography.com/l3home/ Last updated 28th April, 2017. Measure your website readability!
Page 2 of 3. https://readability-score.com
W3.CSS Cheat Sheet
by L3Home via cheatography.com/35953/cs/11615/
Round Classes Border Classes (cont)
w3-round Rounded by 4px w3-border-0 No borders
w3-round-small Rounded by 2px w3-border-COLOR Border color if visible
w3-round-medium Rounded by 4px w3-bottombar Thick border on
bottom
w3-round-large Rounded by 8px
w3-leftbar Thick border on left
w3-round-xlarge Rounded by 16px
w3-round-xxlarge Rounded by 32px w3-rightbar Thick border on right
w3-topbar Thick border on top
Padding Classes w3-hover-border- Hoverable border
COLOR color
w3-padding-small Pad 4px t/b, 8px l/r
w3-padding Pad 8px t/b, 16px l/r
Theme Classes
w3-padding-large Pad 12px t/b, 24px l/r
w3-theme-COLOR Set color theme
w3-padding-16 Pad 16px t/b
w3-padding-24 Pad 24px t/b
w3-padding-32 Pad 32px t/b
w3-padding-48 Pad 48px t/b
w3-padding-64 Pad 64px t/b
Margin Classes
w3-margin 16px margin
w3-margin-top 16px top margin
w3-margin-right 16px right margin
w3-margin- 16px bottom margin
bottom
w3-margin-left 16px left margin
w3-section 16px top and bottom
margin
Border Classes
w3-border Borders all sides
w3-border-top Border on top
w3-border-right Border on right
w3-border-bottom Border on bottom
w3-border-left Border on left
By L3Home Published 27th April, 2017. Sponsored by Readability-Score.com
cheatography.com/l3home/ Last updated 28th April, 2017. Measure your website readability!
Page 3 of 3. https://readability-score.com