Style sheets : A newsthread: animating layers
Contents ]
Dr Benton

Creating Texts for our News Bulletins

We still have to create the text that is displayed when the visitor clicks on an item. After each <SPAN> element, insert a <DIV> block containing the text you want to assign to each title.

Naming convention. To name your <DIV> tag, take the same name as that of the <SPAN> section to which it is assigned and add the letter d to the name. For instance, the <DIV> section associated with the Titre1 element is named Titre1d.

The first article will look like this:

<div id=Titre1d style="display:None;width:300;font-size:10px;font-family:Verdana;line-height:16px; background-image:url(logoNB.gif)">
   Before tackling more advanced issues, we will illustrate the efficiency and usefulness of CSS for online publishing. The definition of a few style rules and the application of the style sheet obtained will convince you.
</div>