© Mark J. Collins 2017

Mark J.  Collins, Pro HTML5 with CSS, JavaScript, and Multimedia, 10.1007/978-1-4842-2463-2_13

13. Styling Tables

Mark J. Collins

(1)Chesterfield, Virginia, USA

In this chapter I will explain two different topics that are largely unrelated except that they both involve tables. First, I will demonstrate how to use CSS to format a table element. In Chapter 6 I described all of the various HTML elements that are used to construct a table such as table, table row (tr), table header cell (th), and table cell (td). Now I’ll show you the CSS attributes that are available to arrange these elements, visually. The second topic is to explain how you can use CSS to turn non-tabular data into table-like elements so you can use similar ...

Get Pro HTML5 with CSS, JavaScript, and Multimedia: Complete Website Development and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.