Home Guides Glossary

HTML Tricks and Tips

Sometimes you reach a point where you need to do a little bit of customization and adding a small snippet of HTML is a neat way to spice up a campaign. We do stress the importance of not over-using these html tricks and tips. If you have many style changes to make, a custom style is the way to go.

Also, accuracy counts! Always make sure you're using the html snippets correctly. Proof read, look for typos and test before sending out your email to your subscribers :)

Now, onto the tricks and tips:

How to center text:

The code:

<center>This Will Center My Section Title</center>

What to look out for: Make sure you "close" the tag at the end with a / like this: < / center>

Before (in edit mode):
Code for centering text

After (in preview mode):
Display of centered text in preview mode

How to change the font color:

The code using a color name:

<span style="color:red">This text must stand out!</span>

Using a hex code: You can select an even more specific color by using the color's hex code. That's a 6 character code that looks like this: #FF0000

You can find a list of codes here, or grab the exact code for a color on your website by using a color picker program.

The code using a color hex code:

<span style="color:#FF0000">This text must stand out!</span>

What to look out for: Make sure you "close" the tag at the end with a / like this: < / span>

Before (in edit mode):
Code for changing font color

After (in preview mode):
Display of color changed font

How to change the font size:

The code:

<span style="font-size:30px">Big Text!</span>

Adjust the pixel number to change the size of the text. A smaller number makes the font size smaller and a larger number makes the font size bigger.

What to look out for: Make sure you "close" the tag at the end with a / like this: < / span>

Before (in edit mode):
Code for changing font size

After (in preview mode):
Display of different sized font

How to change the font type:

The code:

<span style="font-family:verdana">Verdana text</span>

What to look out for: Make sure you "close" the tag at the end with a / like this: < / span>

Before (in edit mode):
Code for changing font

After (in preview mode):
Display of changed font

Now, lets put it all together!

The code:

<span style="font-family:verdana; color:blue; font-size:30px">Some blue text that really stands out!</span>

Before (in edit mode):
Code for combined changed

After (in preview mode):
Display of combined changes

How to justify text:

The code:

<p style="text-align:justify">Enter the paragraph here</p>

What to look out for: Make sure you "close" the tag at the end with a / like this: < / p>

Before (in edit mode):
Code for justifying text

After (in preview mode):
Display of justified text

Next Step

More Info

Domain Registration

Pay less for website domain names. Register your own .com, .net or .org for as low as $10.18 per year. We have everything you need to get online with your new domain.

Website Builder

Build an amazing website in just under an hour with Website Builder. Take advantage of designs created just for your industry and then customize them to reflect your one-of-a-kind idea.

Website Security

Protect your website and keep customers safe. Your comprehensive Website Security solution. Get peace of mind by securing your websites.

cPanel Hosting

Everything needed to give your website the high-performance home it deserves.  Protect transactions and secure your customer's data with a SSL Certificate
Copyright © 2005 - 2024.  All rights reserved.  Privacy Policy