101 Code To Go
Ranked #2,544 in Squidoo Community, #220,459 overall | Donates to Invisible Children
HTML and CSS to go
Let's be honest. Most people prefer to write about their passions without being bothered by HTML code, CSS code or BBCode. I know because I am one of them. But truth be told, we all want out articles and lenses to look great. Why do I know that? Because I want it too!
Sometimes there is no simple solution and the only way to achieve our goals is to work hard and sweat. Few times this is not the case. Sometimes there is a simple solution to our problems and, hold tight, this is the case. Lucky you!
What am I offering here is the easiest solution to your HTML/CSS problems. The idea came to me when I found myself cutting and pasting code from a collection of HTML/CSS codes I added up day by day on a notepad. I imagined that I wasn't the only one that didn't want to dive into lengthy dissertations about that beast hidden in the source code of every webpage, but wanted a simple reference to make my lenses look better without the hassle.
There are plenty of great guides out there on how to improve the look of your lenses, but they are too long, too complicated, too detailed. I wanted a reference, I wanted a Code To Go!
One more thing. If you find this lens useful, don't forget to nominate it as Lens of the Day!
Why this is what you were looking for?
Because it is!

How is this guide different from the others?
Why is it better? Ok, now let's go straight to the point. What makes it so precious for everyone, including the grandma that wants to add some style to her lenses and squeeze few bucks out of it without getting lost into the depths of the HyperText Markup Language (what is it anyway?).
The answer to all these questions is simple:
this is a source of solutions, not of head aches!
Too often the guides about HTML and CSS are written by gurus that take everything for granted and when you read their directions all you get is a headache. You read it and find yourself thinking: "Can't you just tell me how to do it in a simple way? I don't want to know what the padding is needed for or what px means! Just give me the code!".
And there you read: if you want to do this, combine with this, add that and don't forget to include those things and, and, and.... Boring. And my head aches.
Code to go is the ultimate resource for the people like me that simply want to know the answer, without the history lesson behind. It's very simple, direct, and for everyone! See below how to use it!
How to use this resource
It couldn't be easier!
First of all you have to know that you can include HTML tags (the codes you find on this page) in most of the modules used to create lenses. Using the codes you will find in this page is very simple and in minutes will let you personalize your lenses to give them that extra touch to make them great.
All you have to do to to use this resource is the following:
- First of all bookmark this page and add it to your favourites for future reference
- Go to the right section (text formatting, adding pictures, etc) by clicking on the link in the table of contents.
- Choose the example that solves your problem
- Copy the code. If needed, change the address (for pictures, links etc).
Don't worry! I will tell you how to do it in a simple way. - Paste the code in your lens
- Enjoy your new acquired power!
Formatting the Text
Bold, italic, underlined etc.
Although there are several tags to format text, on Squidoo you are limited only to those listed below. To format your text, simply copy the code, remove the the words "Code to go" and substitute with yours. As simple as that!
- Cut and paste this code for Bold
- <b>Code to go</b>
- Cut and paste this code for Strong
- <strong>Code to go</strong>
- Cut and paste this code for Underlined
- <u>Code to go</u>
- Cut and paste this code for Italic
- <i>Code to go</i>
- Cut and paste this code for Emphasized
- <em>Code to go</em>
Please note that most browser will render Strong as Bold and Emphasized as Italic.
Aligning the text
Righ, left, center. In 10 seconds.
<p align="Left">Code To Go</P>
So you want your text to be aligned to the right?
Simply copy the code and write your text instead of "Code To Go":
<p align="right">Code To Go</p>
You are not yet happy. There is something that bothers you. The text is not properly ordered, it looks unprofessional You want to add a bit of order and do something that almost no one does on Squidoo. So you want your text to be justified like in a newspaper? Simply copy the code and write your text instead of "Code To Go":
<p align="justify">Code To Go</p>
Making a list
Ordered or unordered?
Ok, so you have your recipe written, but you want to make the list of ingredients. Nothing simpler. You can choose to have an ordered list:
- Coffee
- Tea
- Milk
And to do this simply copy the following code and simply exchange the words Coffee, Tea, Milk with your own:
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Or if you prefer, you can use an unordered list:
- Coffee
- Tea
- Milk
And to do this simply copy the following code and simply exchange the words Coffee, Tea, Milk with your own:
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
If you prefer not to have a space between the items:
Coffee
Tea
Milk
Copy the following code and simply exchange the words Coffee, Tea, Milk with your own:
<ol>
Coffee
Tea
Milk</ol>
Breakes and paragraphs
Didn't I tell you it's easy?
Adding
breaks
in a
paragraph,
is easy.
Simply
copy and paste
this <br />
where
you want
a break.
Paragraphs
So you are writing pages and pages and your readers get lost in a flood of words?
BLABLABLABLABLABLABLABLABLABLABLA
BLABLABLABLABLABLABLABLABLABLABLA
BLABLABLABLABLABLABLABLABLABLABLA
Add a paragraph!
BLABLABLABLABLABLABLABLABLABLABLA
BLABLABLABLABLABLABLABLABLABLABLA
BLABLABLABLABLABLABLABLABLABLABLA
Simply remove the words Code to go and write your own:
<p>Code to Go</p>
Adding a link
Nothing is hard here!
So you want to add a link in your lens to the best lens ever written. Think it's hard? Think again. It's very simple! Simply copy and past the following code (remember to remove http://CodeToGo.com and add the address you want and to change the words "Code To Go" with the title of your link):
<a href="http://CodeToGo.com">Code To Go</a>
Ok, the reader used the link and left your lens. So you would like the link to open in a new page or tab. Sound tricky. It's not.
Simply copy and past the following code (remember to remove http://CodeToGo.com and add the address you want and to change the words "Code To Go" with the title of your link):
<a href="http://CodeToGo.com" target="_blank">Code To Go</a>
Now you can click the link and it'll open in a new window like this.
Adding an email link
Quick, isn't it?
There is another little option you might want to use: adding an email link. It will look like this: send me some luv
To add your own email address, simply copy and past the following code (remember to remove CodeToGo@squidoo.com and add your email address and to change the words "Code To Go Mailbox" with what you want to appear in the link):
<a href="mailto:CodeToGo@squidoo.com">Code To Go Mailbox</a>
Adding Pictures
You don't really need to know what padding means...
Now things get complicated. LoL! Not really, I was joking!
Adding images is very simple. For example here I put the logo of this lens.

To do the same with your image, simply copy this code (remember to remove http://CodeToGo.com/CodeToGo.jpeg and add the address of your picture):
<img src="http://CodeToGo.com/CodeToGo.jpeg" />
So now you want the image to be clickable, to redirect your readers to the best lens ever written (no, it's not the best, but feel free to read it anyway).
That's easy too. Here it's how it would look like:

To do the same with your image, simply copy this code (remember to remove http://CodeToGo.com and add your destination link and remove http://CodeToGo.com/CodeToGo.jpeg and add the address of your picture):
<a href="http://CodeToGo.com"><img src="http://CodeToGo.com/CodeToGo.jpeg" /></a>
Now that you know how to add picture, you might want to arrange them properly within your text. To the left, to the right... Below you can see the examples.
Aligning picture
Right, left, dance with me!
One step to the left...

As you can see the image is nicely positioned on the left side. To do this simply copy the following code (remember to remove http://CodeToGo.com and add your destination link and remove http://CodeToGo.com/CodeToGo.jpeg and add the address of your picture):
...one step to the right...

As you can see the image is nicely positioned on the right side. To do this simply copy the following code (remember to remove http://CodeToGo.com and add your destination link and remove http://CodeToGo.com/CodeToGo.jpeg and add the address of your picture):
<img src="http://CodeToGo.com/CodeToGo.jpeg" style="float: left; margin: 0px 0px 5px 5px;" />
...one jump to the middle!

As you can see the image is nicely positioned on the middle. To do this simply copy the following code (remember to remove http://CodeToGo.com and add your destination link and remove http://CodeToGo.com/CodeToGo.jpeg and add the address of your picture):
<p align="center"><img src="http://CodeToGo.com/CodeToGo.jpeg"></p>
Please note that these pictures are small. You might want to resize your pictures to 200 pixels. You can find the tool you need here: resize your pictures online. It's very easy to use it! Simply need to upload your picture and write in the text field the size (or select the standards).
Squidu signature: how to edit
Because the forum is life!
So you finally figured out that the Squidoo community has a Forum. And you also understood that writing on the forum is by far the best way to get the word out about your fantastic lenses. Or maybe you don't know it yet, but I'm telling you. It is. Really.
How does it work? Well, you share your ideas with other people, show them you're a smart guy and... well. Don't expect them to click on your unknown name, browse through your lenses and go exactly on that lens you want the to read. The truth is: we are all born lazy.
Ok, so how do you advertise the best lens ever written in your posts? Very easy. Like this:
The best lens ever written
First of all login in the Forum. Simply click here and press the Login button (upper left corner). Click the Profile button. In the Profile menu on the left, click Personality. In the page that load, you will find the field Compose your signature. See below for more information on how to add a link, format the text and add colours.
Squidu Signature: how to add a link
It takes 30 seconds!
In the Compose your signature field simply add this code
[url=http://CodeToGo.com]Code To Go[/url]
Be sure to remove http://CodeToGo.com and replace it with the address of your fantastic lens AND change the words Code To Go with the title of your lens. Easy as pie.
Maybe you would like to allow the other Forum contact you via mail? Nothing easier. To make a link to your email address that looks like this Code To Go just copy the following code (remember to remove the CodeToGo@squidoo.com and add your own email address):
[email=CodeToGo@squidoo.com]CodeToGo@squidoo.com[/email]
But you can do more! As you have seen before, you can format the text in your lenses. In a similar fashion, you can do it in your Squidu Forum signature.
Remove the words Code To Go and replace with your own for the following:
If you want the text to be bold use this:
[b]Code To Go[/b]
If you want the text to be underlined use this:
[u]Code To Go[/u]
If you want the text to be italic use this:
[i]Code To Go[/i]
Squidu signature: add colours
Because it's not all black and white.
You can use blue...
[color=#0000FF]Code To Go[/color]
...green...
[color=#00FF00]Code To Go[/color]
...even fuchsia!
[color=#FF00FF]Code To Go[/color]
The characters #0000FF define the colour of the text. Simply change it with your favourite colour code!
For a complete list of colour codes go here: all the colours you ever wanted.
Wanna learn how to do it yourself?
Reading is good for you!
I have now showed you how the guru's secrets to a good web page are actually very simple to understand and use. If you want to go the extra mile and want to become a HTML/CSS master, you want to consider one of these great books!
Was this lens the solution to your problems?
I surely hope it was!
I'm always willing to improve the material I write. But to do it I need your help! Take part to the poll and let me know your opinion!
Do you have a request or a comment?
We are here for you!
Do you have a special need not described here? You want to add a link, a picture or format the text and still don't know how? Send it to me and I'll prepare the code for you!
-
-
Leilani-m
Dec 8, 2011 @ 2:05 am | delete
- I love this! Simple and very useful :)
-
-
-
bangcool
Aug 1, 2011 @ 9:12 pm | delete
- great lense, will be back latter to see some new lense
-
-
-
Quickcutters
Jul 23, 2011 @ 12:32 am | delete
- That's awful nice of you, I just may take you up on that.
-
-
-
Blessedmombygrace
Jul 15, 2011 @ 9:53 am | delete
- Great tips, great lens. Blessed.
-
-
-
MaxL Jul 16, 2011 @ 4:13 am | delete
- Thank you very much! :)
-
- Load More
About Me
Featured Lenses
After the coffee the cake!
by MaxL
A scientist with the passion for photography who likes to share his opinion with others.
- 7 featured lenses
- Winner of 13 trophies!
- Top lens » Full Spectrum Photography Community on Squidoo
Explore related pages
- Quick and Easy Peach Cobbler Recipe Quick and Easy Peach Cobbler Recipe
- ★ Homemade Fancy Dress Ideas & DIY Halloween Costumes ★ ★ Homemade Fancy Dress Ideas & DIY Halloween Costumes ★
- Strawberry Banana Smoothie Recipe Strawberry Banana Smoothie Recipe
- Tools For Squidoo Lensmasters ヅ Tools For Squidoo Lensmasters ヅ
- Easy Blackberry Cobbler Recipe Easy Blackberry Cobbler Recipe
- Peach Smoothie Recipe Peach Smoothie Recipe



