How Did They Do That!?
Buy this print at AllPosters.com
Find the Trick You Want
- Why Am I Telling You How to Do This?
- Adding Images
- What if I Want to Change the Size of the Photo?
- What If I Want to Place My Image on the Right Margin?
- Centering the Image
- What If I Want Margins or Borders Around My Photo?
- If You Want More Information on Adding Borders
- What If I Want the Entire Image to be a Hyperlink?
- Give Credit Where Credit is Due
- I Want to Put Text and Images Side by Side
- Finally a Book on HTML for the Rest of Us!
- These Lensmasters Really Know Their Code!
- Other Helpful Squidoo Lensmaking Lenses
- It's Vitally Important That You Read This Section Very Carefully - And Buy Something
- Give Me Some Feedback!
Why Am I Telling You How to Do This?
Who do I think I am?
I'm no computer expert. In fact, I'm pretty far down the list of people you should consult about HTML, somewhere between your 8-year-old niece and the dog. But I'm learning, and the contents of this lens includes some of what I've learned. We all know how confusing all this can be when we first start looking at it. This lens is a simple, step-by-step version of the basics to get you started and help you gain confidence.There are a bunch of really talented lensmasters around that really DO know HTML. You can find lots of lenses to help you. I'm here just to help you get your feet wet in a friendly and easy-to-read tutorial.
I'm not even sure that the information below is the "right" way to do these things. However, this is what works for me. All you folks out there who really do know what you're doing, please leave your comments and corrections. I'll be very grateful.
Adding Images
To place an image in a module, you have to have the image sitting on the web somewhere.
Here is the magic command to place a photo in a text module:
<img src="url of the image you want to display">
This will place your picture on the page wherever you place the command. If you put the photo at the beginning of a line, it will sit at the left margin.

If you place it <img src="url of the image you want to display"> in the middle of text your photo will appear like it does below.
If you place it
in the middle of text (like this) your photo will appear like it does here with the text next to it.
The dimensions of the photo will be the same as the dimensions on the url from which you took it.
Buy Posters at AllPosters.com![]()
NOW, go open a text module into edit. You can use one of your already published lenses or you can start a new one. Don't worry, you can delete the module after you've played around. But you might find that you like what you've done and want to add it to your lens.
Go find a photo already on the web. Look to make sure the photographer has okayed the use of the photo. Copy the url and paste it into your test module in the appropriate place. Save and see your results. Experiment! See what happens when you make little changes.
What if I Want to Change the Size of the Photo?
The other way to change the photo is with HTML. This can come in handy when you need to tweak the size or just a bit or make the image smaller. Using this to enlarge an image very much isn't a good idea.
Use the same command as above, but add specifications as to height or width in pixels:
<img src="url of the image you want to display" height="400px;"/>
To maintain the proper proportions, you might want to specify just height OR width, unless you are trying to get some funky looking pic. Watch the punctuation and spelling.

If you enlarge the photo very much, the quality of the image may suffer, and the cattle look somewhat annoyed.
If you specify both height and width:
Use the same command as above, but add specifications as to height and width in pixels.
<img src="url of the image you want to display" height="150px" width="500px"/> then THIS is what I get.

The lesson here is to keep in mind proper proportions unless you want really stretchy cows.
NOW, go mess up the proportions of your photo in your test module. Play around. I'll wait here.
What If I Want to Place My Image on the Right Margin?
<img src="url of the image you want to display"/>
You are going to tell it to place the photo on the right margin.
<img src="url of the image you want to display" align="right"/>

What if you want to get fancy and change the size too?
<img src="url of the image you want to display" align="right" height="200px"/>
Centering the Image
<p align="center"><img src="url of image you want to display"/></p>

Once again, you can change the size just like before.
What If I Want Margins or Borders Around My Photo?
Here is one way to do it:
<img src="url of the image you want to display" style="margin:10px 15px 10px 15px;"/>
The four "margin numbers" refer to top, right, bottom, and left of your image. There's not much to see here, except there's a little extra space visible on the left side of the photo. These margins will become more important when you begin wrapping text around the images. See the module below about another way to add margins to your photos.

BORDERS If you want a nice border around your image, you can do it. I'll show you the basics here. There are lots of fancier things you can put around your image. The following example shows a basic border. You should specify width, color and texture. .
<img src="url of image you want to display" style="border:5px solid tan"/>

What if you want to put a border around a centered photo?
<p align="center"><img src="url of image you want to display" style="border:5px solid tan"/></p>

NOW, Go practice putting borders on your photos. Try different sizes and colors. See what happens if you specify "2px dotted red." How about "15 px dotted blue."
For more information on adding borders, visit Adding Borders to Photos on Your Squidoo Lens.
If You Want More Information on Adding Borders
Visit this lens.
-
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...
What If I Want the Entire Image to be a Hyperlink?
<a href="url of the site you want to click to"><img src="url of the image you want displayed"/></a>
I think I'll center it:
<a href="url of the site you want to click to"><p align="center"><img src="url of the image you want displayed"/></p></a>
Photo courtesy of LiveLaughLove
This photo is a link to my Create Your Own Signature Salsa lens just like this text link.
Give Credit Where Credit is Due
Even with permission, it's important to credit the owner of the photo. There are lots of ways to do this. Some people place credits at the bottom of the lens, others at the end of a paragraph or module. I like to place credits as close to the image as possible, always with a link back to the original photo.
Lately, I've been putting my credits above the photo. I'd like to put them beneath, but I haven't found an appropriate way yet to do that. Here is the code that I use:
<p align="choose left, right or center"><strong style="font-size: x-small; font-weight: normal; font-family: Arial"><a href="url of image or owner's website" target="_blank">Name of photo owner</a>
If the image is aligned left, then align the credit the same way. The following example is aligned center. The credit needs to be placed before the image in its own paragraph. Here is the entire code for the credit and photo below:
<p align="center"><strong style="font-size:x-small; font-type:normal; font-family:Arial">Photo courtesy of <a href="http://www.squidoo.com/lensmaster/beeobrien">Bee and Ernest</a></strong></p><p align="center"><img src="http://farm4.static.flickr.com/3180/2762244455_e37739055e_m.jpg" /> </p>
Photo courtesy of Bee and Ernest
I Want to Put Text and Images Side by Side
No problem.
Specify in your command where you want the photo.
<img src="url of the image you want displayed" align="left"/>Then you can start typing your text......
Then you can start typing your text right after the command. Do you notice that the text here is crowding the photo quite a bit, making it look squished and less than professional?This can be fixed. Add some margins to your photo to give it a little cushion.
<img src="url of the image you want displayed" align="left" style="margin-right:30px;"/>Then you can start typing your text......
Now you can see there is a nice cushion between photo and text, making the whole paragraph look much better.If you want cushion under or above the photo, just do the same thing with "margin-top" and "margin-bottom"
If you want the photo on the other side, just align= "right" style="margin-left:30 px;"
There's nothing magical about 30 pixels either. Experiment.
Buy Posters at AllPosters.com
NOW, go play. Add text. Move things around. Remember, you are just learning this. It won't work perfectly the first time. But you are exploring to see what happens when you try new things. Don't get into a hurry. Have fun. Maybe you'll discover some new thing that HTML code does that no one has ever tried before.
Finally a Book on HTML for the Rest of Us!
Witty and clear
Head First HTML with CSS & XHTML
Amazon Price: $26.39 (as of 12/09/2009)![]()
List Price: $39.99
This beginners' guide to learning HTML is exactly what you need to get started. Reviews from Amazon buyers have been overwhelmingly positive. You don't need to be an expert already to understand the information in "Head First HTML." This is the book you need.
These Lensmasters Really Know Their Code!
-
HTML Squidoo Tricks How To Lens with sample codes step-by-step
-
HTML Squidoo Tricks How To Lens with sample codes & step-by-step instructions to change fonts, background colors, table of contents, modules & images.
-
Advanced HTML for Squidoo
-
The techniques shown here aren't much more advanced then what's in the Basic HTML tutorial. The code being used isn't any more special. But the results and presentation can appear to be more sophisticated. Hence it being the Advanced HTML tutorial. F...
-
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...
-
Basic HTML for Squidoo
-
Before you start reading all this, you may want to open Advanced HTML in a new tab, because you'll be wanting to check it out as soon as you've finished this! You can use basic HTML in a few of the lens modules. Mostly used to create hyperlinks (the...
Other Helpful Squidoo Lensmaking Lenses
There are so many helpful lenses. Please add to this list when you visit.
HTML, CSS Backgrounds on Squidoo
I am constantly striving to beautify my lenses. Ju more...6 points
squidoo css - my favorite code
I've gathered my favorite Squidoo-code for later r more...4 points
HTML Text and Image Squidoo Tips
I am constantly working on improving my lenses to more...4 points
Squidoo Widgets, PayPal and Tools
Squidoo has some great internal widget modules. Bu more...4 points
Lens Rank and Traffic on Squidoo
Now that I have learned how to improve on the aest more...3 points
My Favourite CSS Tricks for Lenses
The basic tools provided by Squidoo will do pretty more...2 points
HTML Tips for Color
Color can be applied via HTML tags to fonts, borde more...2 points
How to Legally Add Copyrighted Pictures & Art to Websites and Squidoo Lenses
Legally use famous copyrighted pictures and art on more...2 points
Free Squidoo Lensmaster Graphics and Images
Also, it includes several detailed How-To sections more...2 points
Cute modules to spice up your lens
Cute modules that will help your lens stand out. G more...2 points
Super Advanced HTML Tips and Tricks to use on Squidoo
These techniques are not really that super advance more...1 point
http://squidoo.com/htmlheroes
A compilation of useful HTML help lenses, from som more...1 point
Adding Borders to Photos on Your Squidoo Lens
Easy-to-use tutorial to help you add pizazz to you more...1 point
Squidoo Tools, Resources, and Guides
Squidoo Tools, Guides, Lens addons, Linkbuilding t more...1 point
Advanced css for squidoo - spice up your lens MORE
My lens about css for squidoo often gets the quest more...1 point
Advertise Your Lens Plexo's
Add Your Lenses to One of our Link Plexo's below a more...1 point
Internet Help For All
What I try to accomplish in this lens is to build more...1 point
http://www.squidoo.com/links_to_learn
The Hitch Hikers Guide to Squidoo Lens Making1 point
HTML Squidoo Tricks How To Lens with sample codes step-by-step
HTML Squidoo Tricks How To Lens with sample codes more...1 point
Newbie Guide to Squidoo Lensmaking
I know, I know, there are already tons of How-to-S more...0 points
Helpful Beginer Information Collection for Squidoo
I understand some of Squidoo, but there is much mo more...0 points
It's Vitally Important That You Read This Section Very Carefully - And Buy Something
These products will improve your love life and make you an expert web designer. Or not.
Tagged Mug
Pretty soon you'll be going all around the house tagging things! Let's start with your coffee mug.
Large HTML Mug
Slurp like the computer pro you are becoming! This large mug will help you get into the mood to work on your computer. Guaranteed to increase your confidence.
Give Me Some Feedback!
This is your chance to tell me what works, what doesn't, what needs to be changed, how totally wrong I am about all of this.....You can also let me know if it helps.
-
Reply
- KiwiGail KiwiGail Dec 3, 2009 @ 9:01 pm
- Thank you for this....it is far and away the clearest, easiest to follow lesson I have found anywhere on putting photos on web pages.I have bookmarked and stumbled.
-
Reply
- Bellwood-Antiques Bellwood-Antiques Nov 22, 2009 @ 11:07 am
- High I am a winter user of squidoo so I basically have to start learning the tricks all over again( i'm nott a comp. whiz by any means). I thing that this lens will be very helpful to me. I have tried to do some of the stuff that you have mentioned and I could not make it work previously (last year). I will give this a try I know that it will help alot(I hope). I may try to get in touch with you if I do not understand something, or just can't make it work properly. I hope that is ok? Thanks for the great informational lens.
-
Reply
- JoyfulPamela JoyfulPamela Nov 12, 2009 @ 10:51 am
- Thank you very much! I'm slowly learning a little more every day about these things, and this sure makes it easier.
-
Reply
- beeobrien beeobrien Oct 18, 2009 @ 11:18 am | in reply to IslGirl
- The url of the photo should end in gif, jpg or something similar. To get the correct url for your photo, choose the flickr image, click on "all sizes" above the image. The correct url to copy and paste on the squidoo page will be shown near the bottom of the page. It will look something like this: http://farm4.static.flickr.com/3137/3020866070_9a345c9390_m.jpg This is an example from my flickr photostream, but you get the idea. Let me know if this helps. Good luck.
-
Reply
- IslGirl IslGirl Oct 17, 2009 @ 1:24 pm
- This didn't work for me. I had the photos on my own computer. You said they had to live on the Web somewhere so I sent them to Flickr. I then used the html code you suggested
and you can see the results by checking my lens:
www.squidoo.com/make-photo-greeting-cards
"Make Photo Greeting Cards - With Google Images"
I can upload photos directly from my computer files to Squidoo, but, of course, they are placed where Squidoo wants them, not in context with the writing.
-
Reply
- Nnamdi546 Nnamdi546 Oct 11, 2009 @ 6:59 pm
- This lens has been very helpful....thank you
-
Reply
- Quickcutters Quickcutters Oct 9, 2009 @ 4:51 am
- Love the lens great job. 5 star from quickcutters
-
Reply
- kimmisue kimmisue Oct 3, 2009 @ 10:39 am
- Thank you! :) I appreciate this info so much!! I am new to Squidoo, with only 2 lenses to my name right now. I need help doing all these extra things! This website will be a great help in doing my 3rd lens.
-
Reply
- hayleylou hayleylou Sep 23, 2009 @ 7:23 pm
- thanks sooo much for putting this lens together, 5 stars and a fav
-
Reply
- rileywest rileywest Sep 5, 2009 @ 11:22 am
- The simplest things are just as hard as the difficult things if you don't know how to do it. Your explanation of "How To Center An Image In Squidoo" came up number 2 when I Googled "How To Center An Image In Squidoo"
Googling my question is how I find most of my answers!
Thank you!
Riley West - riley@rwestdotcom.com
- Load More
by beeobrien



