Ads By Google

How To Highlight Certain Words in Your WordPress Blog

colored-fonts

A really simple tip for those who is entirely blind to html. There will be times when you want to highlight certain words with a bright background to emphasize the importance of the words. There are two ways to achieve this. One is to add another class in your stylesheet so when you write a post you can simple tag them with your CSS stylings. This method has it’s limits as every word you tag will have the same highlight color.

A more versatile method will be to use the span tag. With this you do not need to add any CSS codes and you can choose any colors you like for every different word you want to highlight. For example:

<span style="background:#00FFFF">This is a Cyan background</span>

results in:

This is a Cyan background

<span style="background:#FFFF00">This is a yellow background</span>

results in:

This is a yellow background

You can go even further like specifying the size and color of the fonts

<span style="background:#00ffff; font-size:18px; font-weight:bold;color:#FF0000">This is bold text in red</span>

results in:

This is bold text in red

Or if you like, you can just colorize the fonts without any backgrounds

<span style="color:#ff0000">This is a red color font without background</span>

results in:

This is a red color font without background
<span style="color:#ffff00; font-size: 20px; font-weight: bold">This is bold red text without background</span>

results in:

This is bold red text without background

Let your imaginations fly.

Share This Post
Ads By Google
 

Free Updates

Subscribe to receive Free WordPress Theme Tips, Reviews and Discount Codes

Related WordPress Theme Tips

CSS Codes To Highlight WordPress Post Background Color.Highlighting certain part of your post will attract your reader’s focus on something important that you might want to relate in your post. This following piece of codes will let...

Add Text And Image Shadows To Your WordPress PostTo add shadows to your text in your WordPress blog, all you need is a simple line of code. It works with all major browsers except Internet Explorer, which not...

How To Align Your WordPress Quotes Left Or RightImage via Wikipedia Sometimes we will want to quote some phrases to make it more outstanding so as to grab the attention of our readers. Of course in WordPress there...

How To Give Your Own Comments A Different Look In WordPressMaking your own comments look different from that of your readers is such a simple mod that I am knocking my head as to why I took such a long...

StudioPress 25% Thanksgiving SaleFor Thanksgiving 2011, StudioPress will be giving a 25% across the board discount. This means you get a fabulous discount for whatever Theme you purchase within this period. THE SALE...

Those who found this page were searching for:

  1. wordpress highlight textt
  2. how to hilight in wordpress
  3. i want to highlight specific text in my wordpress blog
  4. hightligt text in wordpress
  5. how to make red words with wordpress
  6. how to write pink highlighted word in blog?
  7. wordpress highlighting text post it
  8. word higligh for wordpress
  9. select all text plugin in wordpress
  10. wordpress highlight page text

8 Responses to “How To Highlight Certain Words in Your WordPress Blog”

Read below or add a comment...

  1. Kim says:

    Another great blog design tip — thanks, Costa!

  2. Blame the CSS purists for emphasizing style sheets more than inline styles. Both have their uses and I use both.

  3. Mitko says:

    “Blame the CSS purists ” I think it’s more about blame the Search Engines that kinda force you to use CSS or otherwise they show some kind of warning and stuff.

    And if you want the SEs to love you, you gotta play by their rules!

  4. Mitko says:

    Comment moved by Admin

  5. Mitko says:

    Comment moved by Admin

  6. Mitko says:

    :( I wrote all this under the wrong article, Costa can you erase them or move them sorry for the spam

Trackbacks

  1. [...] July 24, 2010 in Uncategorized Take a look at this link [...]