Use inline styling to spruce up your site text

Ever want to highlight a word or group of words in your block text with a different color, different font, or special styling? This is really easy to do using the html <span> element. No custom css needed for this one, just put the needed html right in the block.

Let’s say you want to highlight some text by making it red:
This is how you <span style="color: red;">make text red</span> in the middle of a sentence.
Resulting in:
This is how you make text red in the middle of a sentence.

What if you actually wanted to highlight the text as if using a highlighter pen?
This is how you would <span style="background-color: yellow;">highlight text</span> in the middle of a sentence.
Resulting in this:
This is how you would highlight text in the middle of a sentence.

If you want to use some exotic color that’s not one of the standard css color keywords, you can use a hexadecimal color number like this: style=”background-color: #33FFFF;” for a bright light blue.

You can get a list of color keywords as well as hexadecimal colors at the W3Schools site.

Use this technique to change fonts, font-size, add a border around text, even apply text-shadows if you wish.

You’ll need to know just a little bit of css to get the look you want, but the needed code is easy to find with a Google search.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About this site

This site is: a repository of time-savers and best practices from a user's perspective, picked up from several years of using TTG plugins.
This site is not: a support site.
Read more here.

Subscribe to new posts

Tip Jar

If this site has saved you some time, kept your hair attached, or otherwise prevented you from tossing the mouse through the monitor, feel free to donate.

Categories


Highly recommended. This is my go-to Lightroom book. Click on the book image. (affiliate link)

Affiliate link!

Current TTG versions

Backlight  4 & 5

See the Backlight Modules page on your site for latest Backlight and module versions and changelogs.

You’ll also find the latest version number and download link for the Lightroom Publisher plugin.
(BL 3 and later)

 

Backlight 1 Versions

Backlight 1.2.4
Pages module 1.2.4
Cart Add-on 4.1.7
Client Response Add-on 7.1.3
Theater Add-on 1.2.6
Galleria Add-on 1.0.0
WordPress Add-on 1.2.6
Publisher 3.2.3

Backlight 1 has seen its end of life. See this post.

CE4 Versions

note: CE4 is no longer being developed or sold. See this post.

TTG-BE: 2.0.5a
Autoindex: 7.0.8
Cart: 3.1.4a
CRG: 6.1.3a
Gallery: 6.1.10
Pages: 7.0.15
Publisher: 2.3.3
Stage: 6.1.6
Theme for WordPress: 3.1.2