centerDiv table rule, the text in the table is centered.
This approach works in all current browsers, in both strict and regular modes. (To find out more about strict
and regular modes, see Chapter 7.)
This CSS code is used later in this chapter in a Dreamweaver Technique.
Changes to the width of a cell or column are shown in the
tags, as are changes to a row??™s height and width, using the width and height attributes, respectively. You can see these changes by selecting the table, cell, column, or row affected and looking at the W and H text box values. You can also set the height and width using Cascading Style Sheets, described in Chapter 7. If you don??™t have to support older browsers, using styles is the preferred method of designating these attributes. For an overall view of what happens when you resize a cell, row, or column, it??™s best to look at the HTML. Here??™s the HTML for an empty table, resized:
Notice how the width for both the cells and the entire table are expressed as percentages.
Pages:
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
|