Need WordPress or Thesis theme customizations? View my services for details.

Thesis Tutorial – Styling of Note, Alert and other boxes in posts

by George Serradinho on October 5, 2009




Submit to Shoutmeme.com

I have seen many sites use this method and I am one of them too. You can style your alert and note boxes that display in your posts.

The boxes don’t normally have images in and this post will show you how to add an image on the left and have the wording displayed on the right hand side. The two examples below are for the note and alert boxes, but you could create boxes for any other reason. The same would apply.

Note Box

This is an example of the note box that will appear in my posts.

This is the code you would enter in your posts (html code).

This is an example of the alert box that will appear in my posts.

This is the css code you would put in your custom.css file.

.custom .format_text p.note {background: #E3F0F2 url(images/note.png) center no-repeat; border: 1px solid #66CCCC; background-position: 7px 50%; text-align: left; padding: 10px 10px 10px 45px; -moz-border-radius-bottomleft:4px; -moz-border-radius-bottomright:4px; -moz-border-radius-topleft:4px; -moz-border-radius-topright:4px; -webkit-border-top-left-radius:4px; -webkit-border-top-right-radius:4px; -webkit-border-bottom-left-radius:4px; -webkit-border-bottom-right-radius:4px;}

This shows a note image on the left and then what ever wording I have on the right.

Alert Box

This is an example of the alert box that will appear in my posts.

This is the code you would enter in your posts (html code).

This is an example of the alert box that will appear in my posts.

This is the css code you would put in your custom.css file.

.custom .format_text p.alert {background: #ffffa0 url(images/alert.png) center no-repeat; border: 1px solid #E6DB55; background-position: 7px 50%; text-align: left; padding: 10px 10px 10px 45px; -moz-border-radius-bottomleft:4px; -moz-border-radius-bottomright:4px; -moz-border-radius-topleft:4px; -moz-border-radius-topright:4px; -webkit-border-top-left-radius:4px; -webkit-border-top-right-radius:4px; -webkit-border-bottom-left-radius:4px; -webkit-border-bottom-right-radius:4px;}

This shows an alert image on the left and then what ever wording I have on the right.

Creating other boxes:

All you have to do is copy the css styling of the alert box and change the p.alert to p.new_name. Upload another image for that box and change the image name in the css styling.

Final Thought

You could create other boxes that you require just by copying the css styling and giving it another naming convention. I hope this helped a bit and that you have updated your boxes or created new ones.

      Submit to Shoutmeme.com   

Guest Posts

If you want to guest post on Serradinho, please visit our Guest Posting Guidelines

Bookmark/Share

Submit post to StumbleUpon Submit post to Twitter Submit post to Delicious Submit post to Digg Submit post to Reddit Submit post to Technorati Submit post to Facebook

Other Interesting Posts:


Author Information

Article by George Serradinho

I am the proud owner of Serradinho and have made this my second home. I'm into blogging, downloads, WordPress and the internet in general. I also love meeting and helping others and learning new techniques.

{ 25 comments… read them below or Leave your opinion! }

1 steppinout October 5, 2009 at 5:47 pm

Follow on Twitter Follow @steppinoutblog on Twitter.



Yet another great tutorial George. Thanks soooo much!
steppinout´s last blog ..New Spark Program For Web Developers – Microsoft WebsiteSpark My ComLuv Profile

Reply

2 Sanjeev October 5, 2009 at 7:26 pm

Follow on Twitter Follow @clickonf5 on Twitter.



Hey George,
Thanks for the valuable tips as this notes and warning style looks cool.

There is a plugin named “wp-note” thru which you can do the similar kind of notes or warning in your post. Those who are not familiar with HTML or CSS may go for that plugin.
Sanjeev´s last blog ..Show Your Upcoming Events on your Blog Using Google Calendar My ComLuv Profile

Reply

3 George Serradinho October 6, 2009 at 6:58 am

Follow on Twitter Follow @gfserradinho on Twitter.



@Sanjeev – thanks for noting the plugin, would help others out :)

Reply

4 Klaus @ TechPatio October 6, 2009 at 12:05 am

Follow on Twitter Follow @TechPatio on Twitter.



Are we allowed to use your “warning” image (and “note also, for those interested), or do you have them copyrighted?

Thanks for the tutorial, regardless.
Klaus @ TechPatio´s last blog ..Usenet Access Discontinued For Verizon And AT&T – Best Usenet Server Recommendation My ComLuv Profile

Reply

5 George Serradinho October 6, 2009 at 6:59 am

Follow on Twitter Follow @gfserradinho on Twitter.



@Klaus – you can use them, no problem. I will probably change mine in the coming days :)

Reply

6 Klaus @ TechPatio October 6, 2009 at 10:01 am

Follow on Twitter Follow @TechPatio on Twitter.



“I will probably change mine in the coming days”

… why am I not surprised, hehe. I don’t think I’ve ever been to serradinho.com more than a few times where it looked the same, you seem to have a new design every week :D
Klaus @ TechPatio´s last blog ..Usenet Access Discontinued For Verizon And AT&T – Best Usenet Server Recommendation My ComLuv Profile

Reply

7 George Serradinho October 6, 2009 at 10:25 am

Follow on Twitter Follow @gfserradinho on Twitter.



@Klaus – yes, you are correct. I am trying to find whats best for my blog. Once I have all in place then I will let it be for a few months :)

Reply

8 Tinh October 6, 2009 at 12:43 pm

Follow on Twitter Follow @eblogtip on Twitter.



Excellent, I have just created another one for me call “news” and it works perfectly
Tinh´s last blog ..Bình Chọn Blog Việt 2009: Vote!!! My ComLuv Profile

Reply

9 George Serradinho October 6, 2009 at 12:47 pm

Follow on Twitter Follow @gfserradinho on Twitter.



@Tinh – I visited your site and I could see the news box. Well done and hope it helped a lot :)

Reply

10 Guillermo October 7, 2009 at 2:26 am

Hey George… Can you explain one day how do you do the notes you have at the top of the page? The one with the question mark…. Thanks you man!
Guillermo´s last blog ..La Gran Discusión de Halloween: “De qué disfrazo a la nena? De Sirenita o de Zombi?” My ComLuv Profile

Reply

11 George Serradinho October 7, 2009 at 6:46 am

Follow on Twitter Follow @gfserradinho on Twitter.



@Guillermo – you can read my post about Styling note and alert boxes. I created the box the same way, just a different name used.

Reply

12 Guillermo October 10, 2009 at 2:39 am

Do you reply your comments by email? It’s the post I’m looking at!

Forget about it.
Guillermo´s last blog ..Hora Libre II My ComLuv Profile

Reply

13 Surender Sharma October 9, 2009 at 5:09 pm

Follow on Twitter Follow @Technogati on Twitter.



Hi George,
Thanks for sharing the styling tips of Alert and note box.
Your custom styling of the comment section is also very attractive.
Surender Sharma´s last blog ..Add Author Profile After Post in Thesis Wordpress Theme My ComLuv Profile

Reply

14 Himanshu October 9, 2009 at 5:27 pm

Follow on Twitter Follow @techim on Twitter.



Nice tutorial George. I will try it for my own blog, the design of your blog is very nice. Keep rocking man!
Himanshu´s last blog ..How to deal with duplicate content issue My ComLuv Profile

Reply

15 Sahil Kotak October 23, 2009 at 6:03 pm

Follow on Twitter Follow @sahilkotak on Twitter.



Nice one George as always. I was thinking that how did you add the Social Bookmarking buttons in left side, will you mind to telling that to me?

Once again thanks for your superb tutorials.
Sahil Kotak´s last blog ..Features Of Wordpress 2.9 My ComLuv Profile

Reply

16 George Serradinho October 23, 2009 at 9:33 pm

Follow on Twitter Follow @gfserradinho on Twitter.



@Sahil – click on the ‘Thesis’ link on the menu tab and then look for a post about floating icons.

Reply

17 Hesham November 3, 2009 at 8:57 pm

Follow on Twitter Follow @FamousBloggers on Twitter.



This is one good tip, I have used on my blog already! Thanks George
Hesham´s last blog ..Why Famous Bloggers using Thesis Theme for Wordpress? My ComLuv Profile

Reply

18 George Serradinho November 4, 2009 at 7:14 am

Follow on Twitter Follow @gfserradinho on Twitter.



@Hesham – glad to be of assistance, it’s very easy to implement.

Reply

19 Extreme John November 5, 2009 at 6:23 am

Follow on Twitter Follow @extremejohn on Twitter.



Thank you George just added this little helpful Thesis piece to a few of my blogs, and it took seconds!
Extreme John´s last blog ..Facebook is No Longer Sacred My ComLuv Profile

Reply

20 George Serradinho November 5, 2009 at 7:27 am

Follow on Twitter Follow @gfserradinho on Twitter.



@Extreme John – yes, this tip is somewhat small and very easy to implement quickly. Glad to be of assistance.

Reply

21 Adrian Gonzalez November 10, 2009 at 1:11 am

I tried customizing the code and I’m not using Thesis. It didn’t go out so well. Can you remake the code into WordPress supported please?
Adrian Gonzalez´s last blog ..Twitter Finally Translates into Spanish! My ComLuv Profile

Reply

22 George Serradinho November 10, 2009 at 7:05 am

Follow on Twitter Follow @gfserradinho on Twitter.



@Adrian – it should work with any theme if you put it in your styling file (CSS file). If you can create an example for me to check out, then I can assist you.

Reply

23 Adrian Gonzalez November 11, 2009 at 6:42 am

Okay thank you! I will personally try to contact you if I need any help. Please keep blogging. Your posts are actually worth something.

Reply

24 Minh December 16, 2009 at 8:42 am

Follow on Twitter Follow @ngoanhminh on Twitter.



If you dont use Thesis theme, you can do like this by installing plugin named Wp-note :D
Minh´s last blog ..Bằng chứng nhận séc (check) của Adbrite My ComLuv Profile

Reply

25 George Serradinho December 17, 2009 at 7:03 am

Follow on Twitter Follow @gfserradinho on Twitter.



@Minh – you could do this with any theme, no plugin needed. It’s just CSS styling and then you have to use it in a post.

Reply

Leave your Opinion

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv Enabled

Previous post:

Next post: