Sideway
output.to from Sideway



Draft for Information Only

Content

CSS Tabular Form
 CSS Table Object
 Examples of Simple CSS Tabular Forms
  Columns of Same Height in a Row of Blocks
  Row Headers of Same Columns Width in Rows of Blocks

CSS Tabular Form

Instead of using HTML table elements  to construct a table for the presentation of information, simple tabular information can also be rendered in form of CSS table by CSS table objects for most modern UA.

CSS Table Object

The CSS table objects needed to created CSS tabular form are CSS table-row and table-cell objects. When there are two or more sibling CSS table-row or table-cell objects of the same type with only white space in between, these CSS table objects will be rendered as CSS tabular form by modern UA.

Examples of Simple CSS Tabular Forms

The most common examples are presentation columns of same height, and item list header with fixed column width.

Columns of Same Height in a Row of Blocks

All sibling table cells with only white space in between will be rendered as CSS tabular form of same column height by modern UA.

HTML Document Input:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
<style type="text/css">
div,b {font-size:1em}
div {width:500px;background-color:cyan}
p {width:60px;background-color:lime;margin:0em 2em}
b {display:table-cell;background-color:silver;padding:0em 0.25em}
</style>
<title>Sample Page</title>
    </head>
    <body>
<div>
<p>This is "<b>a 'b' table cell</b>".
This is "<b>another 'b' table cell</b>
<b>another one 'b' table cell</b>".
This is "<b>another 'b' table cell</b>
<b>another one 'b' table cell</b>
<b>another two 'b' table cell</b>
<b>another three 'b' table cell........... ............. .......</b>".</p>
</div>
    </body>
</html>
HTML Web Page Embedded Output:

not support

Row Headers of Same Columns Width in Rows of Blocks

In addition to sibling table cells, all sibling table cells with only white space in between will also be rendered as CSS tabular form in which table-cells whenever available will be rendered as in a table by modern UA.

HTML Document Input:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
<style type="text/css">
div,b {font-size:1em}
div {width:500px;background-color:cyan}
p {width:auto;background-color:lime;margin:0em 2em}
i {display:table-row;text-decoration:none;background-color:yellow;padding:0em 0.25em}
b {display:table-cell;background-color:silver;padding:0em 0.25em}
</style>
<title>Sample Page</title>
    </head>
    <body>
<div>
<p>This is "<i>a 'i' table row with <b>a "b" table cell</b>nested</i>".</p>
<p>This is "<i>a 'i' table row with <b>a "b" table cell</b><b>next "b" table cell</b>nested</i>
<i>another empty 'i' table row</i>
<i>another next 'i' table row with <b>another "b" table cell</b><b>another next "b" table cell</b>nested</i>
<i>another next 'i' table row with <b>another "b" table cell</b>, and<b>another one "b" table cell</b> <b>another one "b" table cell</b>nested</i></p>
<p>This is a row header example:"<i><b>a "b" header table cell</b>and other details</i>
<i><b>another "b" header table cell</b>and another details .........</i>
This is another row header example:<i>row a <b>"b" header a table cell</b>details of row a</i>
<i>row b <b>"b" header b table cell</b>details of row b ............ .....</i>
<i>row c <b>"b" header 'c' table cell</b>details of row c</i></p>
</div>
    </body>
</html>
HTML Web Page Embedded Output:

not support

 


©sideway
close

References

  1. http://www.w3.org/TR/1999/REC-html401-1999, 1999, HTML 4.01 Specification: W3C Recommendation, updated 24 December 1999
close

ID: 180300003 Last Updated: 2018/3/3 Revision: Ref:

IMAGE

Home (5)

Business

Management

HBR (3)

Information

Recreation

Hobbies (7)

Culture

Chinese (1097)

English (336)

Reference (66)

Computer

Hardware (149)

Software

Application (187)

Digitization (24)

Numeric (19)

Programming

Web (618)new

CSS (SC)

ASP.NET (SC)

HTML

Knowledge Base

Common Color (SC)

Html Entity (Unicode) (SC)

Html 401 Special (SC)

OS (388)new

MS Windows

Windows10 (SC)

.NET Framework (SC)

DeskTop (7)

Knowledge

Mathematics

Formulas (8)

Number Theory (206)

Algebra (20)

Trigonometry (18)

Geometry (18)

Calculus (67)

Complex Analysis (21)

Engineering

Tables (8)

Mechanical

Mechanics (1)

Rigid Bodies

Statics (92)

Dynamics (37)

Fluid (5)

Fluid Kinematics (5)

Control

Process Control (1)

Acoustics (19)

FiniteElement (2)

Biology (1)

Geography (1)


Copyright © 2000-2019 Sideway . All rights reserved Disclaimers last modified on 10 Feb 2019