Subscribe:

Monday

Captions

The caption tag allows you to specify sayings for your platforms. This is not an feature of the desk tag; it’s a separate factor used after the desk tag, but before the first desk row. Here is the first part of the desk markup:
<table border="3" align="right" bgcolor="#999">
<caption>This is a "cat's game" of tic-tac-toe.</caption>
<tr>
<td>O</td>
<td>X</td>
<td>O</td>
</tr>

Opening and ending caption labels encompass the real textual content you want to screen as a caption for the desk. By standard, the caption is arranged at the top-center of the desk. Two CSS qualities are useful in modifying the caption alignment:

text-align Use this to modify whether the textual content is arranged eventually left, right, or middle on whatever part it is placed.
caption-side Use this to specify on which part the caption should be placed (top, right, base, or left).

With those qualities in thoughts, can you determine how to arrange a caption along the base of a desk, and then set the textual content to be right-aligned along that edge? reveals a visible example:
                                 

and the following code provides the answer.
caption {text-align: right; caption-side: bottom;}TIP
You can also use extra style qualities to sketch more interest to a caption, such as creating it strong or different colours.

 

0 comments:

Post a Comment