Get 25% Discount For HostGator- $110 OFF! | Series: Become a Pro Blogger!, Create and Sale Ebooks , PDF Editing Ways


Saturday, May 8, 2010

Creating Customized HTML Text Area Boxes



HTML-Text-Boxes Its really important to keep everything as attractive as possible while writing posts. Text Area boxes are a useful method of showing long bunch of text or code on your blog. Just last month I wrote two posts 25 Vertical Navigation Menus and 30 Horizontal Navigation Menus where I have used a lot of coding and all those coding were displayed inside fully customized text areas that made the post looked clean and neat. Text boxes are good only if there length and height is well controlled and today with this tutorial we will learn several ways of styling our default text areas.

Kindly see a demo first,

 

Live Demo

 

Before

text-boxes

After

text-boxes

How to Customize the Text Area Box?

To do this follow the steps below,

  1. Go to Blogger > Layout > Edit HTML
  2. Search for </b:skin>
  3. And just above it paste the code below,

.mbt-textarea {
padding:0;
margin:0;
background: #fff;
width:400px;
height:40px;

color:#666;
font:12px arial;
border:1px dotted #289728; }

.mbt-textarea:hover {
color:#289728;
border:2px solid #666;
}

 

     4.  Finally save your template!

How to show the Stylized Text Area Effect inside Blogger Posts?

To display this customized text area you only need to add the following code in the Edit HTML section of your Blogger Editor,

<textarea class="mbt-textarea" readonly="readonly">WRITE-TEXT-HERE</textarea>

 

Simply replace WRITE-TEXT-HERE with your text that you want to appear inside a box.

How to Customize The CSS of The Text Box?

If you wish to change the font, color or in short the entire look of the text box then you just need to edit the following areas in the CSS code above,

background: #fff; –> This Changes background color of the text area
width:400px; –> This changes width size of box
height:40px;  -> This changes box height

color:#666;  -> This changes font color inside text box
font:12px arial; –> This changes font size and font family respectively
border:1px dotted #289728; } –> This changes the border size, style (i.e dotted, solid, dashed) and color. Editing it will change the look of the border/outline across the text

.mbt-textarea:hover {
color:#289728; –> This changes font color on mouse hover
border:2px solid #666;  -> This changes border size, style and color on mouse hover

Now Simply edit the above codes as guided and create a perfectly suiting Text box for your beloved blogs. I hope it will be as interesting for most of you as it seems :> Do not hesitate to ask for any help if needed!



Respected Readers:
We educate thousands of bloggers a week with our tutorials. To help us go ahead with the same spirit, a small contribution from your side will highly be appreciated.


If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you subscribe to our regular Email Updates!

Thanks for making this possible! Kindly Bookmark and Share it.
Technorati Digg This Stumble Facebook Twitter
Create your own blog!

17 comments:

Comment Page :
Poras on 3:40 PM, May 08, 2010 said... #

Its Great and From now i will use this in my blog

Take Look At This http://www.myworld4free.co.cc/

I Used Boxes In Every Post So This Is Very Useful To Me

Thanks For Sharing.Great Post

TechGyo on 7:47 PM, May 08, 2010 said... #

Good for bloggers, But Mohd, This way of text boxes doesn't allow us to have H2,h3 tags.

But I have found another way the below codes inside DIV tag


style=" overflow-x: scroll; overflow-y: scroll; "

Mohammad Mustafa Ahmedzai on 8:20 PM, May 08, 2010 said... #

@Porus

You welcome brother! :>

@TechGyo

Dear there is no need to add H tags inside text boxes. Its good only to add some code or long piece of text inside it for copy-paste purpose. And yup the code that you shared it disabling the scrolling effect but how is it related to H tags.

BTW your blog has turned into a stunning piece dude! :p

Anup@Hack Tutors on 9:26 PM, May 08, 2010 said... #

Already told you. You are very Good in coding ;) and now word to say :P

Indra jaya on 11:13 AM, May 09, 2010 said... #

Nice yaur tutorials

Beben on 8:15 PM, May 13, 2010 said... #

i have read this tutorial on allblogtools (Max)...:D

Robin Hood Softwares on 10:32 AM, May 17, 2010 said... #

Hi. How R u? I need your help.

You can see shoutbox in my blog. It is an Ajax shout box. When you click on shoutbox icon on side bar, a popup window opens with shoutbox inside that you can see. When we click anywhere on the background, it closes. I have mentioned the way to close just below the shoutbox popup box in text form "CLICK ON THE BACKGROUND TO CLOSE THIS WINDOW".

What I need is to place this text on left or right, side of the popup box. It should be near to the box and exactly on the center portion from top of the popup box. This is because for the compatibility of the visitors. I mean, not all the monitors have the same resolution. If the resolution is small, it is difficult to find the text for the visitors. So I decided to place the text from bottom to left or right side (middle)

I hope you got what I need. If not kindly tell me. I will explain in detail. Waiting for your reply.

Hope you are fine.

Robin Hood Softwares on 8:07 AM, May 18, 2010 said... #

Also what change should be made in the code, if I need to life the entire shoutbox, a little bit to the top to fit some screen resolutions

khaled on 6:48 PM, May 21, 2010 said... #

hi mohammad ..

Thank you for this topic featured .. God bless you .. I really

liked your blog

and is now in My Favorites ... God bless you...khaled

Mr.Junaid Abbasi on 9:50 PM, August 19, 2010 said... #

thanks man due to this my site looks good....
man how to re arrange html in text area ?
have a look.
http://techshake.info

Joao on 8:59 PM, November 24, 2010 said... #

Thanks for post.
This is very important for me.

T.v Serials on 11:14 AM, January 29, 2011 said... #

I hope this article will help me greatly in controlling and styling your text areas in a far better way. Thanks, Take care! :>

ผิวขาว on 3:41 AM, April 22, 2011 said... #

Thank you is post !

HP Ce285A toner expert on 12:38 PM, April 28, 2011 said... #

HTML text area boxes are good for long articles. Thanks for the tutorial.

Desi Tv Forum on 12:49 PM, June 04, 2011 said... #

Great Post Thankx For Sharing

Prince Reaz on 12:19 PM, September 29, 2011 said... #

cool.......... Thanks
www.appforpc.tk

Dustin on 12:30 PM, January 18, 2012 said... #

http://cinemaleak.blogspot.com/2012/01/topless-sunny-leone-in-saree.html
http://cinemaleak.blogspot.com/2012/01/priya-new-hot-and-cute-pics-latest.html
http://cinemaleak.blogspot.com/2012/01/topless-hot-pics-of-gabriella-fhm.html
http://cinemaleak.blogspot.com/2012/01/topless-sunny-leone-in-saree.html
http://cinemaleak.blogspot.com/2012/01/aishwarya-priyanka-in-dabboo-ratnani.html
http://cinemaleak.blogspot.com/2012/01/malaika-arora-at-launch-of-sunsilk.html
http://cinemaleak.blogspot.com/2012/01/diya-mirza-at-filmfare-nominations-bash.html
http://cinemaleak.blogspot.com/2012/01/bipasha-basu-in-dabboo-ratnanis.html
http://cinemaleak.blogspot.com/2012/01/katrina-kaif-louis-vuitton-fall.html
http://cinemaleak.blogspot.com/2012/01/esha-gupta-top-less-on-femina-issue.html

Confused? Feel free to ask

Your feedback is always appreciated. I will try to reply to your queries as soon as time allows.

Note:
1. To add HTML CODE in comments then please use our HTML Encoder
2. You can always Try the tutorial on our HTML Editor
3. Please do not spam Spam comments will be deleted immediately upon my review.

Regards,
Mohammad

 

Recent Posts

Join Me On Facebook

4907+ Followers

Join The Team!

Licensed Under CC

Recent Comments

Follow Me On Twitter

1954+ Followers

| My Blogger Tricks (MBT) © 2012. All Rights Reserved | Contact | About |