More CSS Tricks For Images and Bullet Points
I have been using CSS for ages to layout my blogs and it never really occured to me that I could use the same techniques on my Squidoo Lenses... DUH! So I started experimenting on my lens, changing font size, changing colors etc.
Now, there are a bundle of great lenses about using CSS to really make your lens pop - this lens takes just two very simple elements and will break them down into very easy to follow steps that you can follow again and again....
I'm going to show you how you can place an image anywhere in your text, so you don't have to rely on the module image.
I'm also going to show you how you can use a custom image in your bulleted lists - instead of the boring plain dots... plus a couple of other nifty little techniques.
Special thanks to those lensmasters who shared their knowledge that helped me realize I could do this. I do pay homage to them a little later on this page.
So sit back and relax, and enjoy the techniques I'm about to share.
CSS Tricks: Angel Blessings
When my lenses are blessed, I like to thank the Squid Angel. It is a big honor to receive a SquidBlessing. The Squid Angels are a group of volunteers on Squidoo. More information can be found on this Squid Angel lens.This Lens has been blessed by

VBright105
Angel Graphic courtesy of GransGrans Animations
Customizing Your Bullets
- A standard bulleted list
- Line 2
- Line 3
- A jazzy star as your point.
- Some space underneath each point to make it easy to read.
or this:
- A different image with the text a bit further away...
Well, follow these instructructions and you'll be producing wonderfully beautiful bulleted lists like these.
The first thing you need to know is that you need these two codes:
<ul> Is the code to open an 'unordered list'. Any item that you want to appear in your bulleted list, needs to appear after this code.
<li> Is the code to identify each list item. That is the item that requires a bullet point of some sort.
</li> Is the code to identify the end of each list item.
</ul> is the code to identify the end of the bulleted list.
The thing to remember with HTML code is that nearly every code is a pair..... and bulleted lists are no different. You require a pair of each of the codes <ul> and </ul> as well as <li> and </li>.
Your basic un-numbered list will look like:
<ul>
<li>Your list text goes here</li>
<li>Your list text goes here</li>
<li>Your list text goes here</li>
</ul>
To style your bullet points, you need to know a couple of things:
- The image you want to use; and
- The web address (or url) of where the image is stored
http://yourwebaddress.com/image.jpg
Once you have this information, you can then style your list.
To add your image as your dot point, add the following to your <ul> style code: list-style-image:url(websiteurl)
It will look like: <ul style="list-style-image:url(http://yourwebsite.com/image.jpg);">
Now that you have your image set, you may want to change the spacing between the image and the text. This will depend on the effect you are trying to achieve and sometimes you will use an image that needs more space after it.
To change the spacing between the image and your text, add the following to your <li> style code: padding-left:35px;
It will look like: <li style="padding-left:35px;">
Remember!!! The larger the number, the more space between the bullet and the text
Some examples:
- The padding-left style is set to 35px
Changing the number 60px:
- The padding-left style is set to 60px
To indent the bullets, you need to know about the margin-left: style attribute. Let's say you want to indent your list 20px from the left hand margin - your list would be:
<li style="margin-left:20px;">
Some examples:
- The margin-left style is set to 35px
Changing the number 20px:
- The margin-left style is set to 20px
Changing the number 40px:
- The margin-left style is set to 40px
You can combine the style elements to achieve the effects you want
e.g:
<li style="margin-left:20px;padding-left:15px;">
The above example will look like:
- The margin-left style is set to 20px and the padding-left style is set to 15px
Now I haven't covered every possible style attribute here, but I've given you some basics... I've summarized these attributes below - feel free to copy them to your hearts content:
Summary of styling attributes for un-numbered lists:
<ul>: Identifies the start of your un-numbered list
list-style-image:url(image_url): Applies a different image as the bullet point to a list
<li>: Identifies the start of your un-numbered list item
padding-left:10px: Will add space between the bullet image and the text. The larger the number, the more space between
margin-left:10px: Will indent the bulleted list to the left, the higher the number, the larger the indent
</li>: Identifies the end of your un-numbered list item
</ul>: Identifies the end of your un-numbered list
BONUS!!!
I didn't cover this styling option, but if you're feeling brave or adventurous, see how this goes...
margin-right:10px: Will indent the bulleted list on the right, the higher the number, the larger the indent. This is cool if you don't want your list to be full width of the section.
CSS Design Resources for you

The Zen of CSS Design:
Visual Enlightenment for the Web
(Voices That Matter)


Positioning Your Images
For example, being able to place an image to the right of a certain bit of text in a lens.... like this:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec sollicitudin libero id elit. Sed euismod nonummy neque. Nam dignissim urna vel urna. Nunc aliquet. Nunc vel dui mattis magna varius condimentum. Etiam lacus enim, aliquam ultricies, luctus ut, placerat id, lectus. Vestibulum laoreet commodo tortor. Nunc eget urna. Suspendisse ac orci. Vivamus quis tortor facilisis velit interdum blandit. Mauris euismod convallis diam. Quisque turpis metus, aliquam sed, euismod sit amet, mollis a, ligula. Maecenas ultricies turpis vitae augue. Suspendisse potenti. Etiam hendrerit cursus eros.
Or, if you have a nifty bulleted list, using the tutorial above, you might want to add a picture to add depth or discussion, or simple to break all that text up... Something like:

- Point 1
- Point 2
- Point 3
- Point 1
- Point 2
- Point 3

Of course, where you position the images will depend on the amount of text in the bullet points and the effect you want to achieve. The image I've used here, is too tall and forces this paragraph to wrap on the right.
Here's how you do it:
The <p> is the opening 'paragraph' marker
The </p> is the closing 'paragraph' marker
style="float: right;" will make an object track to the right hand side of the area
style="float: left;" will make an object track to the left hand side of the area
The margin-left:, margin-right, margin-top, margin-bottom elements will allow you to adjust the margins on the placement of the paragraph
The width:, and height: elements modify the height and width of a paragraph to allow better placement on the screen.
So how do all these elements go together to layout a nice page??? Good question. Here are some practical examples to copy and experiment with.
Sample Paragraph, Image Wrapped On The Left
<p style="text-align:center; float:left; width:195px; margin:5px; margin-top:50px;"> <img src="http://mywebsite.com/images.jpg" width="195/" align="center" > </p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec sollicitudin libero id elit. Sed euismod nonummy neque. Nam dignissim urna vel urna. Nunc aliquet. Nunc vel dui mattis magna varius condimentum. Etiam lacus enim, aliquam ultricies, luctus ut, placerat id, lectus. Vestibulum laoreet commodo tortor. Nunc eget urna. Suspendisse ac orci. Vivamus quis tortor facilisis velit interdum blandit. Mauris euismod convallis diam. Quisque turpis metus, aliquam sed, euismod sit amet, mollis a, ligula. Maecenas ultricies turpis vitae augue. Suspendisse potenti. Etiam hendrerit cursus eros.
In this example:
- The width and height elements are set to those of the image.
- The image is encased in paragraph markers
- The margin-top element is used to force the image paragraph down to be better positioned on the text. You may need to tweak this to make it look better.
And looks like:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec sollicitudin libero id elit. Sed euismod nonummy neque. Nam dignissim urna vel urna. Nunc aliquet. Nunc vel dui mattis magna varius condimentum. Etiam lacus enim, aliquam ultricies, luctus ut, placerat id, lectus. Vestibulum laoreet commodo tortor. Nunc eget urna. Suspendisse ac orci. Vivamus quis tortor facilisis velit interdum blandit. Mauris euismod convallis diam. Quisque turpis metus, aliquam sed, euismod sit amet, mollis a, ligula. Maecenas ultricies turpis vitae augue. Suspendisse potenti. Etiam hendrerit cursus eros.
You'll notice that the image looks a little (or a lot) lower, when compared to the text - it will need reviewing.
Sample Paragraph, Image Wrapped On The Right
<p style="text-align:center; float:right; width:195px; margin:5px; margin-top:50px;"> <img src="mywebsite.com/image.jpg" width="195/" align="center" > </p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec sollicitudin libero id elit. Sed euismod nonummy neque. Nam dignissim urna vel urna. Nunc aliquet. Nunc vel dui mattis magna varius condimentum. Etiam lacus enim, aliquam ultricies, luctus ut, placerat id, lectus. Vestibulum laoreet commodo tortor. Nunc eget urna. Suspendisse ac orci. Vivamus quis tortor facilisis velit interdum blandit. Mauris euismod convallis diam. Quisque turpis metus, aliquam sed, euismod sit amet, mollis a, ligula. Maecenas ultricies turpis vitae augue. Suspendisse potenti. Etiam hendrerit cursus eros.
You'll notice that to move the image from the left to the right, all you need to do is change the float:left; element to float:right;. Simple, right? It now looks like:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec sollicitudin libero id elit. Sed euismod nonummy neque. Nam dignissim urna vel urna. Nunc aliquet. Nunc vel dui mattis magna varius condimentum. Etiam lacus enim, aliquam ultricies, luctus ut, placerat id, lectus. Vestibulum laoreet commodo tortor. Nunc eget urna. Suspendisse ac orci. Vivamus quis tortor facilisis velit interdum blandit. Mauris euismod convallis diam. Quisque turpis metus, aliquam sed, euismod sit amet, mollis a, ligula. Maecenas ultricies turpis vitae augue. Suspendisse potenti. Etiam hendrerit cursus eros.
Let's now look at how you can position an image amongst bullets.... it's almost the same.
Floating an image on the right of a bulleted list
<p style="float: right; width:200px;margin-left:5px;"><img src="http://mywebsite.com/image.jpg"></p><ul style="list-style-image: url(http://mywebsite.com/star.jpg);">
<li style="margin-bottom:10px;">Point 1</li>
<li style="margin-bottom:10px;">Point 2</li>
<li style="margin-bottom:10px;">Point 3</li>
</ul>
This looks like:

- Point 1
- Point 2
- Point 3
Floating an image on the left of a bulleted list
<p style="float: left; width:200px;margin-left:5px;"><img src="http://mywebsite.com/image.jpg"></p><ul style="list-style-image: url(http://mywebsite.com/star.jpg);">
<li style="margin-bottom:10px;">Point 1</li>
<li style="margin-bottom:10px;">Point 2</li>
<li style="margin-bottom:10px;">Point 3</li>
</ul>
This looks like:

- Point 1
- Point 2
- Point 3
Postioning Images Continued
So, it's necessary too play with the margin-right style attribute of the image to get the position correct.
Tweaking the space between the image and the stars
<p style="float: left; width:200px;margin-left:5px; margin-right:35px;"><img src="http://mywebsite.com/image.jpg"></p><ul style="list-style-image: url(http://mywebsite.com/star.jpg);">
<li style="margin-bottom:10px;">Point 1</li>
<li style="margin-bottom:10px;">Point 2</li>
<li style="margin-bottom:10px;">Point 3</li>
</ul>
This looks like:

- Point 1
- Point 2
- Point 3
Doesn't that look better?
So let's summarize...
Image Positioning
Use the <p> and </p> to position images
Style attributes:
float: right: Will position an image on the right hand side of a block of text
float: right: Will position an image on the right hand side of a block of text
float: left: Will position an image on the left hand side of a block of text
width and heightattributes are necessary to ensure the image floats appropriately.
margin-left, margin-right, margin-top, margin-bottom attributes will provide space around the image block
padding-left, padding-right, padding-top, padding-bottom attributes will provide space within the image block
Feel Free To Copy The Code On This Page To Layout Your Pages
Some Great CSS Resources
Fetching RSS feed... please stand byHave Your Say
Does This Lens Help?
-
Reply
- Michey Michey May 4, 2009 @ 4:11 pm
- Excellent CSS Tricks, slowly by surely our lenses look better.
Regards
Michey
-
Reply
- sandyspider sandyspider May 3, 2009 @ 2:08 pm
- Very nice tips on bullets. I featured this lens in my new Squidoo tips resource lens.
http://www.squidoo.com/html-text-image-tips
-
Reply
- annetteghallowell annetteghallowell May 3, 2009 @ 11:53 am
- This is going to be another one of your lenses that is a favorite referral page! 5* favorite again!
-
Reply
- ElizabethJeanAllen ElizabethJeanAllen Apr 26, 2009 @ 4:49 am
- I know the basics but sometimes that's not enough.
I favored this lens so I could find it again when I need it.
Thanks for sharing
Lizzy
-
Reply
- mukunda22 mukunda22 Apr 22, 2009 @ 5:06 pm
- I just bookmarked this page to study as I go--
Many thanks and blessings!!
-
Reply
- GrowWear GrowWear Apr 19, 2009 @ 5:27 am
- Thanks, Charly. Needed some image padding, forgot the code; you came up. :D
-
Reply
- ekurit ekurit Apr 12, 2009 @ 11:23 am
- Thank you.. some of my stuff needed some spicing up. 5 stars... now, how did you get that big 'T' in the first paragraph? Thanks for all of your help... it's been invaluable!
-
Reply
- lwhitelaw lwhitelaw Mar 31, 2009 @ 9:27 pm
- I'll have to keep this lens in mind for my own creations - great job and thanks for sharing!
-
Reply
- spirituality spirituality Mar 24, 2009 @ 3:04 am
- Great introduction on how to do bullets on squidoo :) and thanks for featuring a few of my own lenses.
-
Reply
- Nancy Nancy Feb 7, 2009 @ 4:46 pm
- Sincing I am just starting to make a lens it was very helpfull .Nancy
- Load More
Other Great Squidoo Resources
I really have to thank these other Lensmasters for their lenses that helped me gather my thoughts in working through my own CSS Challenges.-
Advanced css for squidoo - spice up your lens MORE
-
My lens about css for squidoo often gets the question: how do I combine the code? This lens is an answer to that question.
-
My Favourite CSS Tricks on Squidoo
-
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 tric...
-
How To: Pimp Out Your Lens
-
It's okay. We all have to start somewhere and not everyone is a graphic designer. With some work though, you can take a crappy lens or even a semi-decent one and make into a superstar. That's why we're here today. To pimp your...
-
Squidoo CSS - my favorite code to spice up a lens
-
I've gathered my favorite Squidoo-code for later reference. I'm tired of trying to find that specific lens I used a css effect on and then having to go to edit-mode, copy paste, and then go back to the lens I was working on. This lens will he...
-
Pimp My Lens: Great Lensmastering Tips & Tricks Headquarters
-
PIMP MY LENS: Great Lensmastering Tips & Tricks! The home for lenses & Info & tips on how to maintain or improve any lens on Squidoo! Why have an average lens when you can have a "Splendiferous" Lens? Content, Layout, Design, Resources and more. Grea...
by Charlyjl
I'm a business woman who has finally been able to work from home. I love what I do (I always have) but the ability to be at home and be here for my fa... (more)











