\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{L3Home} \pdfinfo{ /Title (w3-css.pdf) /Creator (Cheatography) /Author (L3Home) /Subject (W3.CSS Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{2C9641} \definecolor{LightBackground}{HTML}{F1F8F3} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{W3.CSS Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{L3Home} via \textcolor{DarkBackground}{\uline{cheatography.com/35953/cs/11615/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}L3Home \\ \uline{cheatography.com/l3home} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 27th April, 2017.\\ Updated 28th April, 2017.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{x{2.33919 cm} x{2.63781 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Container Classes}} \tn % Row 0 \SetRowColor{LightBackground} w3-container & HTML container \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} w3-panel & HTML container \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} w3-badge & Circular badge \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} w3-tag & Rectangular tag \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} w3-ul & Unordered list \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} \seqsplit{w3-display-container} & For w3-display- classes \tn % Row Count 7 (+ 2) % Row 6 \SetRowColor{LightBackground} w3-code & Code container block \tn % Row Count 8 (+ 1) % Row 7 \SetRowColor{white} w3-codespan & Code container inline \tn % Row Count 9 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.74195 cm} x{3.23505 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Table Classes}} \tn % Row 0 \SetRowColor{LightBackground} w3-table & HTML table container \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} w3-striped & Striped table \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} w3-border & Bordered table \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} w3-bordered & Bordered lines \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} w3-centered & Centered table \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} w3-hoverable & Hoverable table \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} w3-table-all & All table properties set \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} w3-responsive & Responsive table \tn % Row Count 8 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.39356 cm} x{3.58344 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Card Classes}} \tn % Row 0 \SetRowColor{LightBackground} w3-card & Container w/ 2px shadow \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} w3-card-4 & Container w/ 4px shadow \tn % Row Count 2 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.18988 cm} x{2.78712 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Modal Classes}} \tn % Row 0 \SetRowColor{LightBackground} w3-modal & Modal container \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} w3-modal-content & Modal pop-up element \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} w3-tooltip & Tooltip element \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} w3-text & Tooltip text \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.69218 cm} x{3.28482 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Responsive Classes}} \tn % Row 0 \SetRowColor{LightBackground} w3-row & Fluid content row \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \seqsplit{w3-row-padding} & All cols have default padding \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} w3-content & Fixed size centered content \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} w3-half & 1/2-of-screen column \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} w3-third & 1/3-of-screen column \tn % Row Count 7 (+ 1) % Row 5 \SetRowColor{white} w3-twothird & 2/3-of-screen column \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} w3-quarter & 1/4-of-screen column \tn % Row Count 9 (+ 1) % Row 7 \SetRowColor{white} \seqsplit{w3-threequarter} & 3/4-of-screen column \tn % Row Count 11 (+ 2) % Row 8 \SetRowColor{LightBackground} w3-col & Fluid content column \tn % Row Count 12 (+ 1) % Row 9 \SetRowColor{white} w3-rest & Stretch last element to end \tn % Row Count 14 (+ 2) % Row 10 \SetRowColor{LightBackground} l1 to l12 & Sizing for large screens \tn % Row Count 15 (+ 1) % Row 11 \SetRowColor{white} m1 to m12 & Sizing for medium screens \tn % Row Count 16 (+ 1) % Row 12 \SetRowColor{LightBackground} s1 to s12 & Sizes for small screens \tn % Row Count 17 (+ 1) % Row 13 \SetRowColor{white} \seqsplit{w3-hide-small} & Hide on small screens \tn % Row Count 18 (+ 1) % Row 14 \SetRowColor{LightBackground} \seqsplit{w3-hide-medium} & Hide on medium screens \tn % Row Count 20 (+ 2) % Row 15 \SetRowColor{white} \seqsplit{w3-hide-large} & Hide on large screens \tn % Row Count 21 (+ 1) % Row 16 \SetRowColor{LightBackground} w3-image & Responsive image \tn % Row Count 22 (+ 1) % Row 17 \SetRowColor{white} w3-mobile & Make element mobile-first \tn % Row Count 23 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.79172 cm} x{3.18528 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Layout Classes}} \tn % Row 0 \SetRowColor{LightBackground} w3-cell-row & Container for cells \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} w3-cell & Layout column \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} w3-cell-top & Aligns cell content (top) \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \seqsplit{w3-cell-middle} & Aligns cell content (mid) \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \seqsplit{w3-cell-bottom} & Aligns cell content (bot) \tn % Row Count 5 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.14471 cm} x{3.83229 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Bar Classes}} \tn % Row 0 \SetRowColor{LightBackground} w3-bar & Horizontal bar \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \seqsplit{w3-bar-block} & Vertical bar \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{w3-bar-item} & Common style for items \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} \seqsplit{w3-sidebar} & Side bar \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} \seqsplit{w3-collapse} & Responsiveness for side bar; requires w3-main container \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} w3-main & Page container for using w3-collapse \tn % Row Count 11 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.43873 cm} x{2.53827 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Dropdown Classes}} \tn % Row 0 \SetRowColor{LightBackground} w3-dropdown-click & Clickable dropdown \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} w3-dropdown-hover & Hoverable dropdown \tn % Row Count 2 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.14471 cm} x{3.83229 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Button Classes}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{w3-button} & Gray rectangular button \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} w3-btn & Black rectangular button \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \seqsplit{w3-ripple} & Rectangular with ripple effect \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} w3-bar & Group into horizontal bar \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.18988 cm} x{2.78712 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Input Classes}} \tn % Row 0 \SetRowColor{LightBackground} w3-input & Input element \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} w3-check & Checkbox \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} w3-radio & Radio button \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} w3-select & Select list \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} w3-animate-input & Slides open on focus \tn % Row Count 5 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.04057 cm} x{2.93643 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Animation Classes}} \tn % Row 0 \SetRowColor{LightBackground} w3-animate-top & Slide from top -300px \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} w3-animate-left & Slide from left -300px \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \seqsplit{w3-animate-bottom} & Slide from bottom -300px \tn % Row Count 4 (+ 2) % Row 3 \SetRowColor{white} \seqsplit{w3-animate-right} & Slide from right -300px \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} \seqsplit{w3-animate-opacity} & Shift opacity from 0 to 1 \tn % Row Count 7 (+ 2) % Row 5 \SetRowColor{white} w3-animate-zoom & Grows from 0 to 100\% \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} w3-spin & Spin 360 degrees \tn % Row Count 9 (+ 1) % Row 7 \SetRowColor{white} \seqsplit{w3-animate-input} & Grows input field on focus \tn % Row Count 11 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.69218 cm} x{3.28482 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Font and Text Classes}} \tn % Row 0 \SetRowColor{LightBackground} w3-tiny & 10px font size \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} w3-small & 12px font size \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} w3-large & 18px font size \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} w3-xlarge & 24px font size \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} w3-xxlarge & 32px font size \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} w3-xxxlarge & 48px font size \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} w3-jumbo & 64px font size \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} w3-wide & Wider text \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} w3-serif & Changes to serif font \tn % Row Count 9 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.14011 cm} x{2.83689 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Display Classes}} \tn % Row 0 \SetRowColor{LightBackground} w3-center & Centered content \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} w3-left & Float to left \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} w3-right & Float to right \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} w3-left-align & Left aligned text \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} w3-right-align & Right aligned text \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} w3-justify & Justified text \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} w3-circle & Round content \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} w3-hide & Hidden content \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} w3-show & Visible content \tn % Row Count 9 (+ 1) % Row 9 \SetRowColor{white} \seqsplit{w3-show-inline-block} & Visible inline content \tn % Row Count 11 (+ 2) % Row 10 \SetRowColor{LightBackground} w3-top & Top-of-page fixed content \tn % Row Count 13 (+ 2) % Row 11 \SetRowColor{white} w3-bottom & End-of-page fixed content \tn % Row Count 15 (+ 2) % Row 12 \SetRowColor{LightBackground} \seqsplit{w3-display-container} & For w3-display- classes \tn % Row Count 17 (+ 2) % Row 13 \SetRowColor{white} \seqsplit{w3-display-topleft} & Content at top left of box \tn % Row Count 19 (+ 2) % Row 14 \SetRowColor{LightBackground} \seqsplit{w3-display-topright} & Content at top right of box \tn % Row Count 21 (+ 2) % Row 15 \SetRowColor{white} \seqsplit{w3-display-bottomleft} & Content at bottom left of box \tn % Row Count 23 (+ 2) % Row 16 \SetRowColor{LightBackground} \seqsplit{w3-display-bottomright} & Content at bottom right of box \tn % Row Count 25 (+ 2) % Row 17 \SetRowColor{white} w3-display-left & Content at middle left of box \tn % Row Count 27 (+ 2) % Row 18 \SetRowColor{LightBackground} w3-display-right & Content at middle right of box \tn % Row Count 29 (+ 2) % Row 19 \SetRowColor{white} \seqsplit{w3-display-middle} & Content at center of box \tn % Row Count 31 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.14011 cm} x{2.83689 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Display Classes (cont)}} \tn % Row 20 \SetRowColor{LightBackground} \seqsplit{w3-display-topmiddle} & Content at top center of box \tn % Row Count 2 (+ 2) % Row 21 \SetRowColor{white} \seqsplit{w3-display-bottommiddle} & Content at bottom center of box \tn % Row Count 4 (+ 2) % Row 22 \SetRowColor{LightBackground} \seqsplit{w3-display-position} & Content at specified position \tn % Row Count 6 (+ 2) % Row 23 \SetRowColor{white} w3-display-hover & Content on hover over the box \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.38896 cm} x{2.58804 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Effect Classes}} \tn % Row 0 \SetRowColor{LightBackground} w3-opacity & Opacity 0.6 \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} w3-opacity-off & Opacity 1.0 \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} w3-opacity-min & Opacity 0.75 \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} w3-opacity-max & Opacity 0.25 \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} w3-grayscale-min & Grayscale 50\% \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} w3-grayscale & Grayscale 75\% \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} w3-grayscale-max & Grayscale 100\% \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} w3-sepia-min & Sepia effect 50\% \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} w3-sepia & Sepia effect 75\% \tn % Row Count 9 (+ 1) % Row 9 \SetRowColor{white} w3-sepia-max & Sepia effect 100\% \tn % Row Count 10 (+ 1) % Row 10 \SetRowColor{LightBackground} w3-overlay & Overlay effect \tn % Row Count 11 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.68758 cm} x{2.28942 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Color Classes}} \tn % Row 0 \SetRowColor{LightBackground} w3-COLOR & Background color \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} w3-hover-COLOR & Hover color \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} w3-text-COLOR & Text color \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} w3-hover-text-COLOR & Hover text color \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.38896 cm} x{2.58804 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Other Hover Classes}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{w3-hover-border-COLOR} & Color on hover \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} w3-hover-opacity & Opacity on hover \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} \seqsplit{w3-hover-opacity-off} & Remove opacity on hover \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} w3-hover-shadow & Shadow on hover \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} w3-hover-grayscale & Grayscale on hover \tn % Row Count 7 (+ 1) % Row 5 \SetRowColor{white} w3-hover-sepia & Sepia on hover \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} w3-hover-none & Remove hover effects \tn % Row Count 9 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.58804 cm} x{2.38896 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Round Classes}} \tn % Row 0 \SetRowColor{LightBackground} w3-round & Rounded by 4px \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} w3-round-small & Rounded by 2px \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} w3-round-medium & Rounded by 4px \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} w3-round-large & Rounded by 8px \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} w3-round-xlarge & Rounded by 16px \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} w3-round-xxlarge & Rounded by 32px \tn % Row Count 6 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.09034 cm} x{2.88666 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Padding Classes}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{w3-padding-small} & Pad 4px t/b, 8px l/r \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} w3-padding & Pad 8px t/b, 16px l/r \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \seqsplit{w3-padding-large} & Pad 12px t/b, 24px l/r \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} w3-padding-16 & Pad 16px t/b \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} w3-padding-24 & Pad 24px t/b \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} w3-padding-32 & Pad 32px t/b \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} w3-padding-48 & Pad 48px t/b \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} w3-padding-64 & Pad 64px t/b \tn % Row Count 8 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.89126 cm} x{3.08574 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Margin Classes}} \tn % Row 0 \SetRowColor{LightBackground} w3-margin & 16px margin \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} w3-margin-top & 16px top margin \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \seqsplit{w3-margin-right} & 16px right margin \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \seqsplit{w3-margin-bottom} & 16px bottom margin \tn % Row Count 5 (+ 2) % Row 4 \SetRowColor{LightBackground} w3-margin-left & 16px left margin \tn % Row Count 6 (+ 1) % Row 5 \SetRowColor{white} w3-section & 16px top and bottom margin \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.38896 cm} x{2.58804 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Border Classes}} \tn % Row 0 \SetRowColor{LightBackground} w3-border & Borders all sides \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} w3-border-top & Border on top \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} w3-border-right & Border on right \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} w3-border-bottom & Border on bottom \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} w3-border-left & Border on left \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} w3-border-0 & No borders \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} w3-border-COLOR & Border color if visible \tn % Row Count 8 (+ 2) % Row 7 \SetRowColor{white} w3-bottombar & Thick border on bottom \tn % Row Count 10 (+ 2) % Row 8 \SetRowColor{LightBackground} w3-leftbar & Thick border on left \tn % Row Count 11 (+ 1) % Row 9 \SetRowColor{white} w3-rightbar & Thick border on right \tn % Row Count 13 (+ 2) % Row 10 \SetRowColor{LightBackground} w3-topbar & Thick border on top \tn % Row Count 14 (+ 1) % Row 11 \SetRowColor{white} \seqsplit{w3-hover-border-COLOR} & Hoverable border color \tn % Row Count 16 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.38896 cm} x{2.58804 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Theme Classes}} \tn % Row 0 \SetRowColor{LightBackground} w3-theme-COLOR & Set color theme \tn % Row Count 1 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}