Making nicer graphics in Bb Learn

The source code below will create a nice framed, text-wrapped, scaling figure in Bb Learn, with an italicized caption centered below. In short, you need to embed the CSS in-line, because Bb Learn strips out the header from the HTML.

Saint Tropez and its fort in the evening sun

Saint Tropez

St. Tropez and its fort in the evening sun. St. Tropez and its fort in the evening sun. St. Tropez and its fort in the evening sun. St. Tropez and its fort in the evening sun. St. Tropez and its fort in the evening sun. St. Tropez and its fort in the evening sun. St. Tropez and its fort in the evening sun. St. Tropez and its fort in the evening sun. St. Tropez and its fort in the evening sun. St. Tropez and its fort in the evening sun. St. Tropez and its fort in the evening sun. St. Tropez and its fort in the evening sun.

Just create a blank page or item, go into the Code View by clicking the < > button, and copy/paste the following code:

<p>text above the graphic</p> <div id="figure" style="float: right; margin: 5px; padding: 5px; border-width: thin; border-color: silver; border-style: solid; width: 25%;"> <img src="http://www.w3.org/Style/Examples/007/st-tropez.jpg" style="float: right; width: 100%;" alt="Saint Tropez and its fort in the evening sun" /> <p style="text-align: center; font-style: italic; font-size: smaller; text-indent: 0px;"> <a href="http://en.wikipedia.org/wiki/Saint-Tropez" target="_blank" title="Saint Tropez">Saint Tropez</a> </p> </div> <p>text beside and below the graphic</p>

Next, replace the image link and title info with those for your own graphics. You can also change the float from right to left, or change the width from 25% to anything you like.

How it works line by line:

Reference: http://www.w3.org/Style/Examples/007/figures.en.html