JCross: Center thy Clues
Posted by Stan Bogdanov on 07 November 2009 - 17:33Introduction
Time for another small enhancement.Clues in a JCross crossword in HotPotatoes come left-aligned. It surely is a little more stylish to have them centered above the crossword grid.
Here are some samples from the Taxonomy, under the 'Crossword' section, of what we're trying to achieve. Visit these exercises and click on a clue, especially the ones both across and down.
· Regular, just plain text crossword · Image Crossword · Audio Crossword.
So, here's how to center the clues in two easy steps.
Step 1 - Create your crossword.htm web page
Step 2 - Edit some CSS
Open the output .htm file in a text/HTML editor and find the CSS part. Look for a chunk of code saying:div#ClueEntry{
Change it to look like this:
div#ClueEntry{ font-family: Verdana,Geneva,Arial; font-size: 10pt; margin-bottom: 1em; /* Centered clues */ text-align: center; margin-right:auto; margin-left:auto; display:block; } |
Save, preview, enjoy! And come back for more tips and trick.
You may also want to see the Audio Crossword Tutorials (Beginner and Advanced).
Related tutorials:
- Video Tutorials
- JCross: change background colour of cells in Hotpotatoes JCross Crossword
- HotPotatoes Tutorials and How-to's | Portfolio
- Flash Video II - Using SWFObject v2 and a playlist for flv
- Embedding DivX Video in HotPotatoes on the web
- Taxonomy by Potato
- Glosses in HotPotatoes exercises
- Taxonomy listed by exercise type
- Podcasting
Rate this:Votes: 337 |
Share it: |



Write a comment