Professor Al Fichera
Web Page Design (When Tables Ruled)
EMBEDDING TABLE CAPTIONS
Creating CSS for Table Captions, Part 3

 

Here's another little trick to aid you in the production of captions for your Tables. Why not place the caption information in a style block as well? It will certainly save time and keep a consistency to your documents.

The Code for the caption on the Table below is shown below the Table

This CSS caption is Right Aligned
CELL 1 CELL 2 CELL 3 CELL 4 CELL 5

There's only a few things you can do for now in Cascading style Sheets, but these are fairly important features that will help you save time. You can choose to Align the Text to the Left, Center, and Right, pick a Font family a Size, and color as well.


<style type="text/css">
<!--
caption  {
    font-family: arial black;
    font-size: 14pt;
    color: red;
    text-align: right;
    }
-->
</style>

Well, what do you think, worth taking the time to do? Sure!
If you wish you can go back to the old ways Part One here... or go to the new way Part 2 here.

Return to Profal2 Miscellaneous