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

BlakeConsultants - The Leading Experts in Biometric Access Control and Time & Attendance

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.

  • Twitter
  • Digg
  • Delicious
  • Submit post to StumbleUpon
  • Submit post to Facebook
  • Submit post to LinkedIn
From the desk of George Serradinho

I am the proud owner of Serradinho Blog and have made this my second home. I'm into blogging, downloads, WordPress, meeting and helping others, etc. Basically the internet in general :) Serradinho Web Services is my own company whereby I offer my services to clients. This ranges from web design, website upgrades, theme customizations, support, premium WordPress plugins and many more .....

View all posts by , there might be other posts that interest you.

{ 25 comments }

steppinout October 5, 2009 at 5:47 pm

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

Sanjeev October 5, 2009 at 7:26 pm

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 =-.

George Serradinho October 6, 2009 at 6:58 am

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

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

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 =-.

George Serradinho October 6, 2009 at 6:59 am

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

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

“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 =-.

George Serradinho October 6, 2009 at 10:25 am

@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 :)

Tinh October 6, 2009 at 12:43 pm

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!!! =-.

George Serradinho October 6, 2009 at 12:47 pm

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

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?” =-.

George Serradinho October 7, 2009 at 6:46 am

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

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 =-.

Surender Sharma October 9, 2009 at 5:09 pm

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 =-.

Himanshu October 9, 2009 at 5:27 pm

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 =-.

Sahil Kotak October 23, 2009 at 6:03 pm

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 =-.

George Serradinho October 23, 2009 at 9:33 pm

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

Hesham November 3, 2009 at 8:57 pm

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? =-.

George Serradinho November 4, 2009 at 7:14 am

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

Extreme John November 5, 2009 at 6:23 am

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 =-.

George Serradinho November 5, 2009 at 7:27 am

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

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! =-.

George Serradinho November 10, 2009 at 7:05 am

@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.

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.

Minh December 16, 2009 at 8:42 am

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 =-.

George Serradinho December 17, 2009 at 7:03 am

@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.

Comments on this entry are closed.

Previous post:

Next post:



    

Join our Revenue Sharing Program today.

Follow George Serradinho on Twitter - username: @gfserradinho.   Connect via Facebook.   Connect via LinkedIn.   Follow George Serradinho on Google.   Connect via YouTube.   Connect via Skype.

*/ ?>