HTML doesn't have an element that allows to insert a figure with a caption. It was once proposed (see HTML3), but never made it into HTML4. Here is one way to simulate such a figure element: Scale model of the
Eiffel tower in
Parc Mini-France
Then in the style sheet you use the class "figure" to format the figure the way you want. For example, to float the figure to the right, in a space equal to 30% of the width of the surrounding paragraphs, these rules will do the trick:
div.figure {
float: right;
width: 30%;
border: thin silver solid;
margin: 0.5em;
padding: 0.5em;
}
div.figure p {
text-align: center;
font-style: italic;
font-size: smaller;
text-indent: 0;
}
In fact, only the first two declarations (float and width) are essential, the rest is just for decoration.
Labels:
art,
hobby,
Tutorials
Figures & captions
Rama
Thursday, May 26, 2011
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Cost-Benefit Analysis of Cloud Computing versus Desktop Grids Derrick Kondo1, Bahman Javadi1, Paul Malecot1, Franck Cappello1, David P. Ander...
-
For the recent music video for hip dubstep-rock act Nero’s first chart hit, Me & You, James May – aka Smudgethis – created a fictional ...
-
and computation requirements, and current cloud comput- ing and storage pricing of Amazon’s Elastic Compute Cloud (EC2) [4]. 2 Related Wo...
-
It is fun to celebrate with your class after you have spent 100 days at school together. This is a great elementary math game. In order to d...
-
Jika Anda seorang pemilik bisnis online Anda mungkin memahami bahwa kemampuan Anda untuk menyampaikan informasi kepada prospek Anda dan pela...
-
• Completion. The unavailability or slowness of vol- unteer resources near the end of the computation can stretch task completion times. ...
-
"Rasul" Paul, sejaman tapi lebih muda sedikit dari Nabi Isa, tak syak lagi penyebar Agama Nasrani yang paling terkemuka. Pengaruh...
-
The prevailing culture of college financing is one of federal student loans with nominal interest rates, private lender loans with high inte...
-
You may quietly use your computer and surf in the Internet and do not suspect that at the same time somebody may steal your identities and m...
-
If like me, you find yourself juggling multiple messenger applications to keep your friends, family and colleagues happy you will be glad to...
0 comments:
Post a Comment