JCross: change background colour of cells
Posted by Stan Bogdanov on 07 November 2009 - 17:59Introduction
Here's another trick.Blank cells in a JCross crossword in HotPotatoes are black. You may want to change the background colour to match a particular colour scheme or to make it more printer-friendly and save toner. I like to have a crossword with a light-grey background color.
Here are some samples from the Taxonomy, under the 'Crossword' section, of what we're trying to achieve.
· Regular, just plain text crossword · Image Crossword · Audio Crossword.
So, here's how to change the background colour of the cells.
1. Create your crossword.htm web page
2. Edit some CSS
table.CrosswordGrid td.BlankCell{
Change it to look like this:
table.CrosswordGrid td.BlankCell{ /* My light-grey background color for the blank cells */ background-color: #a0a0a0; color: #000000; } |
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
- Center the Clues 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: 1078 |
Share it: |



Write a comment