Make a "Chalkboard" - Fun CSS Trick!
Ranked #588 in Squidoo Community, #79,366 overall
Use a Text Module to Simulate a Chalkboard!
Thanks to Pethound for giving me this idea!
If you use this "chalkboard widget", I'd appreciate a credit to Greekgeek, linked to this lens. Or, if that would look too messy, please just link to, favorite, lensroll, or feature any one of my lenses on any one of yours. Thanks!
Example "Chalkboard Module"
Wow, this only took me 20 minutes to create, including the graphics!
Here is an
example chalkboard.
It's really easy to make!
Credit where due: I drew the graphic based on this "Make a chalkboard background" Photoshop tutorial.
How to Make This Chalkboard Module
Copy This Template into a TEXT Module
<img src="http://tinyurl.com/2c6dufg" style="float: left; padding: 0px; margin: 0px;"><p style="background-image: url(http://tinyurl.com/38cvrkp); repeat: repeat-y; padding: 20px 40px; font-size: 24px; line-height: 36px; font-family: Comic Sans MS, Trebuchet MS; color: white; margin: 0px;">Here is an
example chalkboard.
It's really easy to make!</p><img src="http://tinyurl.com/2g37rx7" style="padding: 0px; margin: 0px;">
STEP 2: Change the text color-coded ORANGE to whatever text you like. (It'll be white on the finished version, but if I made it white here it would vanish.) You could even include images!
STEP 3: Save the module and see how it looks.
STEP 4: Adjust the way the text looks however you like. Parts color coded BLUE may be changed to adjust padding, font size, and fonts as you like. You could even set the text color to yellow instead of white. See my CSS Codes Tutorial for an explanation of what each of these settings (padding, font-size) does and how to adjust them.
OTHER OPTIONS:
If you want the text to be centered, add this somewhere in all those codes, for example, after margin:0px; and before the quotation mark: text-align: center;
If you want to have some text on the chalkboard different sizes or colors, enclose it in a span tag. For example, you could create a big headline like this:
<span style="font-size: 50px; color: yellow;">This text will be yellow and 50 pixels tall.</span>
400 Pixel Wide Chalkboard
Looks pretty good, doesn't it?
Here's a narrow
chalkboard that's
centered in a
text module.
How to Make the 400 Pixel Wide Chalkboard
Copy and Paste the following Template into a Text Module
<img src="http://tinyurl.com/2clh7le" style="float: left; padding: 0px; margin: 0px;"><p style="background-image: url(http://tinyurl.com/244qruy); repeat: repeat-y; padding: 30px 150px 10px; font-size: 24px; line-height: 36px; font-family: Comic Sans MS, Trebuchet MS; color: white; margin: 0px; text-align: center;">Here's a narrow
chalkboard that's
centered in a
text module.</p><img src="http://tinyurl.com/2366nvn" style="padding: 0px; margin: 0px;">
STEP 2: Change the text color-coded ORANGE to whatever text you like. (It'll be white on the finished version, but if I made it white here it would vanish.) You could even include images!
STEP 3: Save the module and see how it looks.
STEP 4: Adjust the way the text looks however you like. Parts color coded BLUE may be changed to adjust padding, font size, and fonts as you like. You could even set the text color to yellow instead of white. See my CSS Codes Tutorial for an explanation of what each of these settings (padding, font-size) does and how to adjust them.
Note that the padding of 150px sets the space between the text and the left and right margins. If you make this number too small, the text will extend out to the left and right past the frame of the chalkboard.
OTHER OPTIONS:
See the GREEN part? Delete that if you do NOT want the text to be centered.
If you want to have some text on the chalkboard different sizes or colors, enclose it in a span tag. For example, you could create a big headline like this:
<span style="font-size: 50px; color: yellow;">This text will be yellow and 50 pixels tall.</span>
Need More Squidoo Graphics?
Here's more of my graphics tutorials and Squidoo clip art.
Guestbook
Drop me a note!
I hope that wasn't too confusing. If you find this template useful, please remember to give it a Like! Thank you!
-
-
xmen88
Mar 19, 2012 @ 12:02 pm | delete
- Looks great.
-
-
-
PastorCher
Jan 26, 2012 @ 1:24 am | delete
- I really want to use this, but don't understand it at all. Got a ways to go before I do, but definately worth learning.
-
-
-
lbrummer
Jul 13, 2011 @ 6:41 pm | delete
- I have a few other things I need to conquer first, but this would be perfect on my lens.
-
-
-
catbehaviors
Apr 1, 2011 @ 9:22 pm | delete
- Very nice! I've got to find someplace to use this!
Blessed by a SquidAngel. 0:)
-
-
-
SandyPeaks Feb 3, 2011 @ 6:45 am | delete
- Wonderful! I must try this!
-
- Load More
Chalkboard Graphics
This is where I'm storing the graphics needed for this "Chalkboard module" tutorial. All these graphics are CREATIVE COMMONS by Greekgeek.Maybe I should change my handle to Graphics Geek.

This work by Greekgeek is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Chalkboard Graphic: Top Frame

URL for this graphic:
http://i1.squidoocdn.com/resize/squidoo_images/-1/draft_lens13470621module120112341photo_1284684300top.png
TINYURL:
http://tinyurl.com/2c6dufg
Chalkboard: Middle Part

URL for this graphic:
http://i1.squidoocdn.com/resize/squidoo_images/-1/draft_lens13470621module120112351photo_1284684413chalkboard.png
TINYURL:
http://tinyurl.com/38cvrkp
Chalkboard: Bottom Frame

URL for this graphic:
http://i1.squidoocdn.com/resize/squidoo_images/-1/draft_lens13470621module120112361photo_1284684645bottom.png
TINY:
http://tinyurl.com/2g37rx7
Narrow Chalkboard: top
400 pixels wide

URL:
http://i1.squidoocdn.com/resize/squidoo_images/-1/draft_lens13470621module120120821photo_1284689043top.png
TINY:
http://tinyurl.com/2clh7le
Middle of narrow chalkboard

URL:
http://i1.squidoocdn.com/resize/squidoo_images/-1/draft_lens13470621module120120831photo_1284689089middle.png
TINY:
http://tinyurl.com/244qruy
Bottom of Narrow Chalkboard

URL:
http://i1.squidoocdn.com/resize/squidoo_images/-1/draft_lens13470621module120120841photo_1284689154bottom.png
TINY:
http://tinyurl.com/2366nvn
Advanced: Make Any Sort of "framed background" Like This!
How to create your own
Squidoo makes things a little more challenging, so I created something similar. if you would like to create any sort of framed background, here's the basic strategy:
1. You will need three graphics:
(a) the top strip, (b) the whole middle, including the sides, and (c) the bottom strip.
2. The middle graphic must repeat vertically without the seam showing. Either make a "seamless tile" in Photoshop, find a "seamless tile" pattern online, or create a graphic where all color zones are vertical stripes. That is, the top edge and bottom edge must be identical.
3. Basic template:
<img src="top graphic goes here" style="margin: 0px; padding: 0px;"><p style="background-image:url(middle-image); repeat: repeat-y; padding: [some padding]; margin: 0px;"><img src="bottom graphic goes here" style="margin: 0px; padding: 0px;">
4. Squidoo sometimes adds a blank line of whitespace after images. I fixed this by adding float: left; to the style of the top image. This ONLY worked because the image was 590 pixels wide; since there was no more room for the paragraph next to the image, the paragraph moved just below it. You wouldn't need to do this anywhere except Squidoo (I hope). Elsewhere, you may need to put a <br> between the images and the paragraph.
by Greekgeek
Storyteller, former Latin teacher, student of mythology and the ancient world: I've worn many hats, but always I've dabbled in computers and the web.
Until...
more »
Explore related pages
- CSS Codes: Easy Tutorial and Quick Reference Guide CSS Codes: Easy Tutorial and Quick Reference Guide
- Advanced CSS: Tricks and Tips Advanced CSS: Tricks and Tips
- Make a Fancy Table of Contents Make a Fancy Table of Contents
- SquidU's Lensmaster Lounge: Help for New Squids SquidU's Lensmaster Lounge: Help for New Squids
- How to Upload Images on Squidoo How to Upload Images on Squidoo
- Squidoo Modules List Squidoo Modules List