Witten
Bainbridge
Nichols
HOME HELP PREFERENCES SEARCHFIGURESTABLES

Table and list CSS example

/* Table and List item Cascading Style Sheet for UN Example */
@import url("un_basic.css");
Title   { display: list-item;
          list-item: disk;
          margin-left: 0.2in; }
Body    { display: table; 
          table-layout: auto;
          background: silver;
          border: outset 5pt; 
          border-collapse: separate;         
          border-spacing: 10pt }
Agency  { display: table-row; }
Name    { display: table-cell;
          padding: 4pt;
          background: white; 
          border: inset 2pt;}
Abbrev  { display: table-cell;
          padding: 4pt;
          background: white; 
          border: dotted black;
          text-align: center;
          vertical-align: middle; }
Photo   { display: table-cell; 
          width: 60pt; 
          background: white; 
          vertical-align: middle }
Photo:before { content: "photo available"; }

Figure 4.11a: Table and list CSS example; CSS style sheet illustrating tables and lists