January 2018
Intermediate to advanced
678 pages
20h 16m
English
display Property with Table ValuesIn the previous section, we told you not to use the table element for layout tables, but if you do so, you should use role="presentation" to avoid incurring the wrath of the W3C police. Now it’s time to discuss how to implement layout tables the right way—using CSS rather than the table element. There are two main ways to implement layout tables with CSS. If you want the layout boundaries to grow and shrink the way they do for an HTML table element, then use the CSS display property with table values. On the other hand, if you want the layout boundaries to be fixed (no growing or shrinking), then use CSS position properties. In this section, we discuss the first technique, using the CSS display property ...
Read now
Unlock full access