Subscribe For Free Updates!

We'll not spam mate! We promise.

0
CSS Styles
Drafting and publishing posts on your blogger.com blog takes time. Make it easier. Define your own CSS styles and use them over and over in articles. 

As a matter of fact, adding your own customized CSS styles to the template and using them in posts is possible and does not require advanced knowledge of blogger.com.

Here is a very simple example of what can be done using customized styles in blogger.com: 

This Is My Favourite Style



Let's see how it can be done. 

How To Add Your Own CSS Styles To Blogger.Com



Step #1:

Prepare the CSS style, you want to use in your posts. To do that, if you do not know much about CSS, use one of the many CSS editors that can be found on the web. For the exemple I used RapidCSS. Here is how I prepared the CSS style 'myfavouritestyle' I used in the exemple: 

Step #2:

Enter blogger.com and open the template of your blog. Edit the HTML and locate the <b:skin> tag:
Clic on it to expend 

Step #3:

Go to the end of the section and paste the style you have created with the editor (before ]]</b:skin>). 
You can add a comment (in the exemple "My Personal Styles")so you can retrieve your customized styles easily in the future. Just remember that CSS comments must start with '/*' and ends with '*/'. 

Step #4:

The last step is about the use of customized styles in posts. Once the text is entered (using 'compose'), select the text you want to highlight with your customized style, select the format (heading, subheading, minor heading) and switch to HTML view. Your text appears between two tags: 
<h2> et </h2>  for headings,
<h3> et </h3> for subheadings,
<h4> et </h4> for minor headings.

In the exemple, I selected minor heading; therefore the text  'This is my favourite style' appears surrounded by a <h4> opening tag and a </h4> closing tag in the html view.

To apply the customized style, you just have to add the class property to the opening tag as in the exemple:


That's it.

Happy blogging!

About The Author
Hasan Shaikh is the founder and admin of ShmHack, a popular blog dedicated for Learners,Geeks and Bloggers. He is currently 19 years old and loves to post articles related to blogging,SEO,adsense,hacking,security,social medias,computer and android. Find more about him...

Next
This is the most recent post.
Previous
Older Post

Post a Comment

Write Your Precious Comments Here.!

 
Top