Simple Tweaks to Spice Up Your Lens
The basic tools provided by Squidoo will do pretty much everything you need to get your content out to your audience. But sometimes you want to format it a little differently, and this is where inline CSS comes into play. Here I show some of the tricks I use on my lenses, and the code that does that.
If you haven't used inline CSS before, you should first read Basic HTML and Advanced HTML. These explain of the basic principles of using CSS on your lenses.
Themes for Lenses - NEW!
Table of Contents
I will give you one hint: the height needs to be set to be 25 times the number of modules in your lens, plus/minus a bit. For this one here, I've used a height of 300 pixels.
- Start Simple, Keep it Subtle, Be Sympathetic
- Squidoo Classes
- Official Squidoo Colors
- Borders and Dividers
- Tidy Wrapping of the Introduction Module
- Hacking the Introduction Title
- Warning!
- Turning Inline Tags into Blocks
- Floating Paragraphs
- Hacks for YouTube and Video Modules
- Two Column Tables
- Making Tables
Start Simple, Keep it Subtle, Be Sympathetic
It is far better to work with the common format and style of Squidoo, and only use CSS to tweak it to your advantage.
Squidoo Classes
Instant styles for your lens
The first one is the 'poweredby' class, which is perfect for linking to a source article or story:
Powered by: <p class="poweredby"></p>
Font Classes: Easily set the size and/or style of your text. These will work with any HTML tag:
class="lm_smallest_font"
class="lm_smaller_font"
class="lm_larger_font"
class="lm_largest_font"
class="lm_serif"
class="lm_sans_serif"
Border Classes:
A Post-It Note
<p class="postit-inner"></p>
Thin border
<p class="lm_thin_border"></p>
Thick border
<p class="lm_thick_border"></p>
Gray box with border
<p class="twitterstorm-post"></p>
The Most Important Thing
<p class="important-thing"></p>
If you're super sneaky, you can combine multiple classes with styles, and get some very cool effects. For example:
The Most Important Thing (centred with blue border)
<p class="important-thing textcenter" style="border-color: #069;"></p>
Official Squidoo Colors
You can add color to your lens in a way that is sympathetic to the overall theme of Squidoo. The two main colors used on lenses is #069 (blue) and #F90 (orange). For a darker shade of orange, use #C60.
You can use these codes with the color or background attribute of most HTML elements, as well as for borders. For example, the blue text above is done with the following HTML:
<b style="color: #069;">...</b>
Web Links
Links are usually blue, but you can change them to be orange like this:
<a href="..." style="color: #c60;">...</a>
For more colors you can use on your lens, read HTML Tips for Color.
Quick Tip
Use the <span> tag when you want to add some style to just a few words, e.g. background or text color.
Borders and Dividers
You can make a block of text stand out by putting in within a frame, very similar to "The Most Important Thing" module. The code to do this is below.
You can vary the color, line style and thickness to whatever you want. Full details about the border styles can be found on this page by the W3 Consortium.
<p style="border: 3px solid #f90; padding: 16px;">...</p>
Using very similar CSS, you can get the effect of a dividing line.
In this example, I've set only the border-bottom, styled as a double silver line. Note: Instead of putting your text inside the paragraph, you need to leave it empty, and put the text afterwards.
<p style="border-bottom: 3px double silver;"></p>...
More Tips for Making Borders
While the easiest way to create borders is with the pre-defined classes mentioned above, there are many more different effects you can create using CSS. Here are some more lenses with examples and instructions for adding borders to your lenses.-
Squidoo CSS Borders
-
The following CSS border codes show you the various CSS properties you can use to change the HTML styles to the border. It also provides you with a way of setting border styles for one or more sides of an element. It is not difficult and can re...
-
Create Stunning CSS Backgrounds with Images
-
Have you heard of CSS Backgrounds? Do you have a Squidoo lens or two? How about a website? A MySpace profile? Are you bored by all those plain old white backgrounds? Here I'm going to show you how to spice up your lenses and pages and create bea...
-
Add Borders to Your Lens Photos on Squidoo
-
Would you like to jazz up the photos on your lenses? You can use borders on your images to give them much more impact and to help them "pop." You just need to use a little bit of simple HTML magic. I have included easy instructions for a variety of...
Tidy Wrapping of the Introduction Module

Scroll back up to the top of this lens, and take another look at the Introduction module. What do you notice is different? How does it compare to this module, with the same image in the corner? (Bear with me while I pad this bit of text to be a bit longer, so that it demonstrates the effect that you would normally on a lens.)
Yes, long Introductions will usually wrap underneath the lens photo, as it does here, making it look untidy. It looks really bad if you have a border as well.
However, the Introduction of this lens does not wrap around the lens photo, and the border is drawn neatly around the text.
But you can fix that. How? Simply put the text into an indented paragraph, with the left margin set to 262 pixels:
<p style="margin-left:262px;">...</p>
The 262 pixels used here is the magic number that should work on most lenses, as the largest size a photo can be is 250 pixels. If your lens photo is a little smaller, you'll need to change this (width of the image, plus 12 pixels). For older lenses, 128 pixels often works well, as demonstrated here.

This same trick can be used on Text / Write modules that have a photo in the top-right corner, as shown by this example. The image you upload will be scaled down to 250 pixels, so use a right margin of 262 pixels to keep it clear. If your image is smaller than this, then adjust the margin accordingly. (And I'm going to have to fill then end of this paragraph so that you can really see the effect of setting the right-hand margin.)
<p style="margin-right:262px;">...</p>
Hacking the Introduction Title
Don't worry if you see the HTML code appear after you save the title - it'll look just fine when you Publish the lens.
Note: you cannot add HTML to titles of the other modules - only the Introduction allows this.
Warning!
Not all browsers will render CSS in exactly the same way, so what looks great in one might look awful in another.
Make sure you test your lens in at least Firefox and Internet Explorer.
No CSS here - this is just "The Most Important Thing" module...
Turning Inline Tags into Blocks
Everyday tags like <b> and <a> are known as 'inline' tags, but you can change them into 'block' tags instead. The effect is similar to using <p>, but without the extra padding/margins you usually get. For example...
this line is bold, using <b> tag as a block with a background color.
This is a handy trick that can be used to nest blocks inside one another. All you need to do this is to use "display: block" in the style attribute of the tag, followed by any other styles you which to use. This technique works especially well on hyperlinks. You can click (or hover) over any part of the lines below to activate the links:
» Squidoo Homepage» Squid University» Google Search
Throw in some additional styles, such as borders, padding, centering and colors, and you can create some pretty interesting effects.
Floating Paragraphs
A very commonly used trick on Squidoo Lenses is to add an floating image to a module, and let the text flow around it - see how to do this on the HTML Tricks lens.

Everyone's an expert
on something!
www.squidoo.com
But what if you wanted to have a caption too, or not have an image at all?
Here is a floating paragraph that you can have anything you like in, and the surrounding text will flow around it.
You can have the box on the left or the right, and a width of your choice. Take the opportunity to include other styles at the same time, such as fonts, colors, backgrounds and borders.
<p style="float:right; width:200px;">...</p>
This style of floating paragraph is used extensively by the Amazon Link Generator to embed products into lenses with pictures, text, prices and "Buy Now" buttons.
Hacks for YouTube and Video Modules
Someone on the forum recently asked: is it possible to center a YouTube video?
I suggested that they could use a floating paragraph to get the effect. Here's how:
First, edit the options of the module, and turn off the title, description, and maybe the rating and details too. (Because of a bug, you'll leave at least one of the options enabled.) Next, insert the following code into the module's description:
<p style="float: left; width: 140px; height: 1px;"></p>
I often use something very similar to replace the YouTube description on the right-hand side with something more appropriate that I have written. For that, you'll need to use the style "float: right; width: 300px;".
This trick also works on the new Video module, though you'll need to use 90px instead of 140px to center it. You'll probably find that this module looks much better than the YouTube module, because of the larger size and the lack of text on the side.
<p style="float: left; width: 90px; height: 1px;"></p>
Two Column Tables
Extending the technique described above to utilise two floating paragraphs, you can get text in two vertical columns.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh eusmod tincidunt ut laoreet dolore magna aliquam erat volputate. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait facilisi.
<p style="float:left; width:290px;">...</p><p style="float:right; width:290px;">...</p>
Note: Make sure that you don't put a new line between the two paragraphs, or your columns will be staggered. The widths of each paragraph should be about half of the width of the module, which is ~590 pixels for maxed lenses, and ~600 pixels for unmaxed lenses.
Remember to follow the paragraphs with <br clear="all"> before you include any more text.
You could easily extend this technique to have 3 or more columns. Simply add more floating paragraphs, set them all to "float: left;" and reduce the width as necessary.
Making Tables
just got easier
There is now a Table Generator that makes it really easy to build tables for Squidoo Lenses. See the lens featured below for details, and a step-by-step guide.
-
Tables for Squidoo Lenses
-
The <table> and associated tags are not permitted on Squidoo, and if you attempt to put these into your lens, they will get stripped out. The Table Generator will convert CSV data or a HTML table into code that is compatible, and looks just as...
Example Usage
- My Top Games for the Wii
- On this lens I repeatedly used horizontal dividers in Squidoo Blue to bring out the links at the end of each review. I also changed all of the links to be in blue, which conveniently complements the blue that Nintendo use.
- Harry Potter and the Deathly Hallows - Book 7
- The cursive font is used frequently to give the lens an appropriate magical feel, and floating paragraphs allow the product links to be integrated alongside the text.
- Photoshop Tips And Tricks
- This lens has a couple floating paragraphs, one with an Amazon Link and the other with a simple image + caption. In the middle of the lens is a module with a Squidoo Blue border around it, drawing the visitor to the affiliate links within it.
Further Reading
More tips on using HTML and CSS on Squidoo
-
HTML And CSS Mentor
-
Many of you start writing your lenses without any HTML and CSS, but as you start understanding Squidoo, you want to learn how to spice your lenses up. HTML and CSS is just the ticket that you may be looking for. Here, on this lens, you will learn fr...
-
HTML and CSS
-
HTML and CSS work closely together. Let me tell you one thing about myself. I've been playing with HTML since 98, but the past few years, i've been using it even more and most of what I have learned, I've learned on my own. I even know css which is a...
-
Simple HTML tricks to use with Squidoo
-
Squidoo has a nice editor for your lenses, but things can be improved. This lens will show you some simple tricks to include more than possible with simply using the editor. These tricks should be used in modules like the link list, or the write modu...
-
Make a Fancy Table of Contents
-
A clickable Table of Contents helps visitors navigate webpages. A table of contents also shows what's on a single webpage, which helps visitors decide whether your page is worth reading! A great table of contents within the first screen is a powe...
Love This Lens?
Reader Feedback
-
Reply
- Knowlen_Wanderer Knowlen_Wanderer Nov 28, 2009 @ 1:50 pm
- Although I make my own websites I really get bogged down when it comes to manually inputting the html.
Good effort on this lens though :)
-
Reply
- Spook Spook Nov 11, 2009 @ 7:26 am
- Still hopeless at all this. I just don't try hard enough. Thanks for everything you do on Squidoo. Blessed by an Angel.
-
Reply
- divacratus divacratus Oct 27, 2009 @ 5:42 pm
- Really helpful! Thanks!
-
Reply
- WordCustard WordCustard Oct 25, 2009 @ 11:08 am
- Will favourite this and come back often - thanks for putting it together.
-
Reply
- JuneMary JuneMary Oct 21, 2009 @ 5:30 pm
- Thank you. Lots to learn but it's clearly explained.
June.
-
Reply
- ambalajecatering ambalajecatering Oct 20, 2009 @ 7:03 am
- Great tips! I just started with squidoo and this guide is very useful.
Thanks mate.
-
Reply
- Shadowchaser Shadowchaser Oct 7, 2009 @ 6:30 pm
- Defiantly a helpful Lens.
-
Reply
- Niche4you Niche4you Oct 7, 2009 @ 2:55 pm
- Thanks,
Will be trying some of this, as soon as i get a bit more confident using squidoo.
-
Reply
- OnlyFunStuff OnlyFunStuff Oct 7, 2009 @ 7:40 am
- Great help and info like everything you produce, will use it to spice up my lenses.Thanks
-
Reply
- Komrad87 Komrad87 Oct 2, 2009 @ 12:21 pm
- Thanks for the lens. Could use some extra fancy stuf in my coming up lenses
- Load More
More Ways to Spice Up Your Lens
Here are some more ways to make your lens look hot!-
Lensmaster Tools and Utilities
-
SQUIDUtils.com Utilities and Tools for the Expert Lensmaster SquidUtils is the place to find complementary utilities and tools for your Lenses on Squidoo. Here you can see all of your lenses and groups, with shortcuts to some of the most vital func...
-
Browser Toolbar for Squidoo
-
This new browser toolbar from SquidUtils.com puts powerful tools at the finger tips of Lensmasters. Featuring quick links to all your Squidoo accounts, lenses and groups, and easy access to all the social functions, this toolbar will be indispensable...
-
Lens Workshop Addon for Firefox
-
This addon for Firefox incorporates extra features into the Lens Workshop and a few other pages on Squidoo. The most significant improvements are: Lensrank updates, colored tags, detailed stats, integrated ping and improved support for Groups. See t...
-
A Guide to Groups for Lensmasters
-
Groups are collections of Lens, usually focused on a particular theme or interest. Groups are run by Groupmasters, to maintain and promote them. The are a large number of Groups on Squidoo now, so deciding which ones to join can be a difficult task,...
-
How To Add Amazon Product Links
-
It used to be possible to embed the official Amazon Product Links into a lens (if you were an Amazon Associate). However, since the support for IFrames was withdrawn from Squidoo, this is no longer an option. At SQUIDUtils.com there is a special to...
About thefluffanutta
Lensmaster thefluffanutta has been a member since September 4 2006, has rated 690 lenses, favorited 187, and has created 96 lenses from scratch. This member's top-ranked page is "My Top Wii Games". See all my lenses
My Bio
I write about what I know, and I build tools for Lensmasters at SquidUtils.com. Read more about me on my Lensography, and follow me on twitter.

by thefluffanutta
(more)




