Logging in as Administrator
The View/Edit Control Panel
Choosing a page to edit
Switching into Edit Mode
Using the eZ Editor Toolbar
Editing F.A.Q & Techniques
 
« Editor Button List « File Link        Cell Properties »

Table Table

This function inserts a Table into the Editor Workarea. Tables are one of the primary design tool for HTML documents. Tables serve several functions. Tables allow for greater control over page layout, allowing creation of more visually interesting pages. A Table can be divided into vertical or horizontal sections called Table Cells. Table Cells can spaced and sized as desired. Placing the page content strategically into the Table Cells can have a visually pleasing effect on how a page will appear to visitors.


Deleting Table Columns.
Merging Table Cells.
Table Padding.
Table Width & Alignment.
Cell Properties.
Cell Border.
Cell Font.
Cell Padding.
Cell Width & Height.
Cell Background Color.
Cell Alignment.
Cell Spacing.

Example

  1. If you do not wish to use your website pages for testing you can visit http://www.ezeditor.net/ and click on the EZEDITOR DEMO page. Once there click the Login button to be logged in as Guest Administrator. After logging in click on the TEST AREA page then click the Edit button at the top of the page. Once the page reloads in Edit Mode you can move on to Step 6 and begin this exercise.


  2. If you wish to use your own website for testing then Login to your website as Administrator.


  3. Go to a page with eZ Editor installed.


  4. Do not save any of the changes you make while performing this exercise if you do not want to affect the current contents of the page you are using.


  5. Once logged in switch into Edit Mode on the page that you will be performing this exercise on.


  6. In this example we will create the table structure below to demonstrate how to work with the various table and table cell properties.
  7. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
    It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).



  8. Position the mouse cursor anywhere inside the Editor Workarea by clicking the left mouse button at the point where you would like to insert the Table.

  9. Cursor positioned at top left inside the Editor Workarea (outlined in red).
    The Table will be inserted at the cursor position.

     

  10. With the cursor at the position where you wish to insert the Table click the Table button on the Editor Toolbar to open the Table dialog box. Click the OK button on the Table dialog box to accept the default settings.
  11.  

  12. There should now be a Table inserted into the Editor Workarea with 6 Table Cells spanning 2 rows and 3 columns. Each Table Cell is capable of holding content. As well each Table Cell has various properties which can be modified to control how the contents inside that cell are displayed which will be discussed later on in the Cell Properties Section of this example.
  13. The Table example we are trying to create has only 2 rows and 2 columns. In order to duplicate the Table in the example above we must remove on of the columns. To do this left click your mouse button inside the Top or Bottom cell of the last column as in the image below.
  14.  

    Top

    Deleting Table Columns 

  15. With the cursor positioned inside either the Top or Bottom Cell of the last column click the right mouse button to display the Table Cell Right Click Menu.
  16.  

  17. From the Table Cell Right Click Menu select Delete Column to remove the last column of the Table.


  18. There should now be only 2 rows and 2 columns in the Table.
  19.  

    Top

    Merging Table Cells 

  20. Next we must combine the first or top row in the Table, into 1 Cell instead of 2 or 1 column instead of 2 columns without affecting the 2 columns in the bottom row.


  21. To do this type a few characters into each of the 2 Cells in the Top Row. Whether you type a single character or a whole sentence in each cell doesnt matter but there must be at least one character in each cell to combine them. For this example we will enter the word Left in the Left Cell and the word Right into the Right Cell. It is easier to combine the Cells when there is more than a single character in each cell but it is not a neccesity.
  22.  

  23. With at least 1 character entered into each of the Top 2 Cells use your mouse to highlight at least 1 character in each of the cells to be combined. In this case you must highlight the content in both the Right and Left Cells in the Top Row.


  24. To highlight the contents in the cells hold down the left mouse button while moving the mouse left, right, up, or down until at least one character or all of the text in each cell is highlighted.
  25.  

  26. With contents in both Cells highlighted click the right mouse button to display the Table Contents Right Click Menu.
  27.  

  28. From the Table Contents Right Click Menu select Merge Cells to combine the 2 Cells in the Top Row. If you do not see the Merge Cells option then try re-highlighting the Cell contents again until the correct menu is displayed.


  29. The Table should now have 2 rows still but the Top Row should have only 1 Cell or Column and the Bottom Row should still have 2 Cells or Columns. The Top Row should now have the contents from the original 2 Cells in it combined together. Delete the contents of the newly combined Cell.
  30.  

  31. Copy and Paste the paragraph below into the Top Cell.
  32. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.



  33. Copy and Paste the paragraph below into the Left Cell of the Bottom Row.
  34. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).



  35. The contents in the Bottom Left Cell have forced the Cell to expand causing the Bottom Right Cell to become smaller because there are no contents in the Bottom Right Cell and no Cell Width has been set.
  36.  

  37. Place your cursor in the Bottom Right Cell by carefully clicking inside the Cell or by pressing the Right Arrow Key on your keyboard until the cursor moves inside the Bottom Right Cell.


  38. With your cursor inside the Bottom Right Cell, copy and Paste the paragraph below into the Left Cell of the Bottom Row.
  39. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).



  40. You should now have contents in all 3 Cells of the Table. The contents currently appear to be very squished together. To help the appearance of the Table we will need to modify some of the Table Properties which were left at their default settings when we first created the Table.
  41.  

  42. To modify the Table Properties the Table must be selected. To select the Table click anywhere on the Table border. A selected Table will appear with Table Resizing Handles displayed around the edge of the Table.
  43.  

    Top

    Table Padding 

  44. Once you have selected the Table click the Table button on the Editor Toolbar to open the Table dialog box.


  45. From the Table dialog box enter the value 5 into the Cell Padding field and click the OK button.


  46. The Table should now appear with 5 pixels of space between the contents and the edge of the Cells.
  47.  

     

    Top

    Table Width & Alignment 

  48. Next we will adjust the Table Width. Once again select the Table by clicking on the Tables border.


  49. With the Table selected click the Table button on the Editor Toolbar to open the Table dialog box.


  50. From the Table dialog box enter the value 90 into the Width field and click the OK button.


  51. The Table width by default is set to % Percent but can be set using px Pixels by selecting px from the Width Unit list to the right of the Table Width field.


  52. Select Center from the Table Alignment list to have the Table appear centered within the Editor Workarea.


  53. Click the OK button to accept the modified Table Properties.


  54. The Table should now appear smaller in width and centered within the Editor Workarea.
  55.  

  56. Next we will hide the Table Border to give the appearance of structured content without actually showing all of the border lines.


  57. With the Table selected click the Table button on the Editor Toolbar to open the Table dialog box.


  58. From the Table dialog box enter the value 0 into the Border Size field and click the OK button.


  59. The Table should now appear with an invisible border.
  60.  

     

    Top

    Invisible Border Tables 

  61. Working with Tables within the Editor Workarea that have invisible borders can be difficult when it comes to selecting the Table. To select a Table you must click on the Tables Border which can be tricky if you cannot see the border.


  62. To temporarily view a Tables Border you can click the Show Borders button on the Editor Toolbar. Clicking the Show Borders button will cause any elements within the Editor Workarea to display there borders including Tables, Images and Anchors
  63.  

     

    Top

    Cell Properties 

  64. Next we will modify the Cell Properties to demonstrate how you can format the layout and appearance of contents in a Table Cell.


  65. Position your cursor inside the Top Cell and click the Cell Properties button on the Editor Toolbar to open the Cell Properties dialog box. Optionally you can also click the right mouse button to diplay the Cell Properties Right Click Menu and select Cell Properties.
  66.  

  67. Optionally you can also click the right mouse button to diplay the Cell Properties Right Click Menu and select Cell Properties.
  68.  

     

    Top

    Cell Border 



  69. From the Cell Properties dialog box click the Border Color icon to the right of the Border Color field to open the Border Color dialog box.
  70. From the Border Color dialog box select any color and click the OK button. In this example we will select #6666FF as the Border Color.


  71. Even though we have selected a Border Color based on the current Cell Property settings the Border will not be visible. We still need to enter values into the Border Left, Border Top, Border Right and Border Bottom fields to determine the Border Size. By default the Border Size fields have no values in them meaning the Border Size will default to 0 pixels.


  72. Enter a value of 2 into the Border Left, Border Top, Border Right and Border Bottom fields to set the Border Size to 2 pixels.


  73. We will leave the Border Style set to the default value of Solid however you can choose from 8 different styles for the Border.
    • Dotted
    • Dashed
    • Solid
    • Double
    • Groove
    • Ridge
    • Inset
    • Outset


  74. Click the OK button on the Cell Properties dialog box to accept the Cell Border settings.


  75. You should now see a 2 pixel #6666FF color border around the top Cell.
  76.  

     

    Top

    Cell Font 



  77. Next we will set the Font Size, Font Color and Font Line Spacing for the Cell.


  78. With the cursor still positioned in the Top Cell click the Cell Properties button on the Editor Toolbar to re-open the Cell Properties dialog box.


  79. The Font Size field allows you to enter the exact size font that will be displayed within the Cell. Font Size can be set to PT (Point) or px (Pixels).


  80. Enter a value of 14 into the Font Size field and select px from the Font Unit list to the right of the Font Size field.


  81. To set the Font Color for the Cell click the Text Color icon to the right of the Font Color field to open the Font Color dialog box.


  82. From the Font Color dialog box select any color and click the OK button. In this example we selected #6699FF as the Font Color.


  83. You can also adjust the amount of space between each line of Text within the Cell by setting the Line Height Cell Property. Setting the Line Height to a larger number means that there will be more space between each line of text. Entering a smaller Line Height value will decrease the amount of space between each line of text.


  84. Enter a value of 24 into the Line Height field and select px from the Line Height Unit list to the right of the Line Height field.


  85. Click the OK button on the Cell Properties dialog box to accept the Cell Font settings.


  86. The text within the Cell should now be set to 14 px with more space between each line and appear #6699FF in color.
  87.  

     

    Top

    Cell Padding 

    definition. Cell Padding

    Cell Padding is used to determine how much blank area or padding you want around the inside edge within each segment of a table (called a cell). Cell Padding creates blank space around the text or other elements that are inside each segment or cell of the table. You do this by typing in a number, with 0 being no padding, 1 being a very small amount of padding, and so on.



  88. Finally for this Cell we will add some extra Cell Padding to add more space between the Cell contents and the Cell Border. In the steps earlier we set the Table Cell Padding to 5 pixels which was applied to every cell in the Table. Setting the Padding of the Cell itself overides the Table setting for that Cell.


  89. With the cursor still positioned in the Top Cell click the Cell Properties button on the Editor Toolbar to re-open the Cell Properties dialog box.


  90. Enter a value of 15 into the Padding Left, Padding Top, Padding Right and Padding Bottom fields to set the Cell Padding to 15 pixels.


  91. Click the OK button on the Cell Properties dialog box to accept the Cell Padding settings.


  92. The Cell should now have 15 pixels of space between its border and the text inside the Cell.
  93.  

  94. We will now modify the bottom 2 Cells to demonstrate the last of the Cell Properties.
  95.  

    Top

    Cell Width & Height 



  96. You also have the ability to control the Width and Height of a Cell.


  97. Position your cursor inside the Bottom Left Cell and click the Cell Properties button on the Editor Toolbar to re-open the Cell Properties dialog box.


  98. Enter a value of 220 into the Cell Width field and select px from the Cell Width Unit list to the right of the Cell Width field.


  99. Enter a value of 300 into the Cell Height field.


  100. Click the OK button on the Cell Properties dialog box to accept the Cell Width and Height settings.


  101. The Cell should now have a Width of 220 pixels and a Height of 300 pixels.
  102.  

     

    Top

    Cell Background Color 



  103. Since it is difficult to see the change in Width and Height of the Bottom Cells we will add some color to the Cell background.


  104. Position your cursor inside the Bottom Left Cell and click the Cell Properties button on the Editor Toolbar to re-open the Cell Properties dialog box.


  105. From the Cell Properties dialog box click the Background Color icon to the right of the Background Color field to open the Background Color dialog box.


  106. From the Border Color dialog box select any color and click the OK button. In this example we will select #EEEEEE as the Background Color.


  107. Click the OK button on the Cell Properties dialog box to accept the Cell Background Color setting.


  108. Repeat the last 4 steps for the Bottom Right Cell.


  109. The Bottom Cells should now have a Background Color of #EEEEEE.
  110.  

     

    Top

    Cell Alignment 



  111. You also have the ability to control the Alignment of the contents within the Cell both Vertically and Horizontally.


  112. Position your cursor inside the Bottom Left Cell and click the Cell Properties button on the Editor Toolbar to re-open the Cell Properties dialog box.


  113. Select Top from the V Alignment list and Right from the H Alignment list.


  114. Click the OK button on the Cell Properties dialog box to accept the alignment settings.


  115. The text inside the Cell should now be aligned to the Top and Right of the Cell.
  116.  

    Top

    Cell Spacing 

    definition. Cell Spacing

    Cell Spacing is used to determine how much blank space you want to insert between each segment or cell. You do this by typing in a number, with 0 being no space, 1 being a very small amount of space, and so on.



  117. To end this example we will modify the Table Properties. Currently the 2 Bottom Cells have the same Background Color which makes it difficult to see any seperation between the 2 Bottom Cells. To show some seperation we will add some Cell Spacing to the Table.


  118. Select the Table by clicking anywhere on the Table border. If you cannot see the Table Border to select it then you can click the Show Borders button on the Editor Toolbar to temporarily view the invisible borders.


  119. Once you have selected the Table click the Table button on the Editor Toolbar to open the Table dialog box.


  120. From the Table dialog box enter the value 2 into the Cell Spacing field and click the OK button.


  121. The Table should now appear with 2 pixels of space between the Table Cells.
  122.  

     

  Copyright © 2005 KriosTech. All rights reserved.