Ads By Google

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 you highlight the background of your post like what you are seeing now

.blue { background: #e0ffff; text-align:center; border: 2px solid #add8e6; }

Copy and paste these codes anywhere into your stylesheet. You can change the color of the background by replacing it with the color codes of your choice. Similarly for the border. If you want a wider border simply change the attributes for the border to anything higher than the 2 pixels. If you do not want dotted borders, change the word “dotted” to “solid.”

You can have as many colors as you want. All you have to do is to copy these codes again and again into your stylesheet. Each time you copy, replace the colors and the borders to your choice. Remember to change the class name though. The example above is classified by the words blue, so I can easily remember what my background colors are. So if you want a few different colored background, you must classify each with a word that you can remember easily.

To use these codes in your blog post enclose whatever you want to highlight using the <p> tag with the class attribute, like thus.

<p class=”xxxxxx”>All your text that you want highlighted here</p>

xxxxxx= the word you have used to classify all the individual background color. The example below is stated blue. Use your own specification for your own colors.

This sentence is wrapped with the p class equals blue tags

You can also add small images to these code for different purpose. It will be discussed in my next post. Meanwhile go try highlighting part of your post

Share This Post
Ads By Google
 

Free Updates

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

Related WordPress Theme Tips

How To Identify The Color Codes In Your WordPress ThemeThe colors of a WordPress Theme are the most changed part when anyone is customizing a Theme. Just a simple color difference can make your blogs theme look a lot...

Changing Background Color For Your WordPress ThemeThere are two backgrounds in a WordPress Theme. One is the overall background. If you have a fixed width theme, the color surrounding the contents is the overall background. The...

How To Create A Beautiful Background For Your WordPress PostNow this is purely for pleasure only, but maybe on some occasions it could be useful. Having a beautiful background for certain post will bring out the mood for in...

How To Highlight Certain Words in Your WordPress BlogA 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...

Align Image In Post WordPress 2.7More than a year ago, I posted the stylesheet codes for aligning images in your WordPress posts. Times have changed and WordPress has added many new advanced features. One of...

Those who found this page were searching for:

  1. wordpress+change+post+background
  2. thesis theme change "post background"
  3. add background color to post in wordpress
  4. css wordpress color background of post
  5. change post background color wordpress
  6. wordpress post background color
  7. css change the background color of my blog post
  8. custom highlight colors css
  9. free themes and web page backgrounds with css code
  10. wp background color for special posts