• Start Here
  • Work With Me
  • Parenting
  • Kids Activities
  • Working Moms
  • Productivity Tips
  • Number of items in cart: 0

    • Your cart is empty.
    • Total: $0.00
    • Checkout

Fab Working Mom Life

A Working Mom Blog: Let's thrive as working moms.

  • Blog
  • Motherhood
    • Breastfeeding
    • Kids Activities and Crafts
    • Parenting
    • Pets
    • Pregnancy
  • Career
    • Military
    • Website and Blogging
    • Work
    • Working Mom
  • Lifestyle
    • Entertainment
    • Finances
    • Food
    • Gift Guides
    • Health
    • Home Life
    • Organize
    • School
    • Travel
  • Resources
    • Blogging Resources
    • Working Mom Life Resources
  • About
    • About Julie
    • Disclosure Policy and Disclaimer
    • Privacy Policy
    • Terms and Conditions
    • Subscribe
  • Work With Me
    • Advertise Here or Hire Me
    • Guest Post Here
    • Link and Image Policy
    • Side Hustle Interview
    • As Seen On
  • Freebies
    • Affirmations for Working Moms
    • Christmas Countdown Printable
    • Halloween Countdown Printable
    • Monthly Budget
    • Nanny Interview Questions Checklist
    • Start a Blog? email course
    • Printables
  • Shop
    • Budget Workbook Planner
    • 12 Month Habit Tracker Printable
    • Christmas Games and Planning Printables
    • Gingerbread Party Planner Christmas Games Bundle
    • Nanny Contract Template
    • Babysitter Caregiver Nanny Binder Planner
    • Baby’s First Year Journal
    • Mind Dump Planner Journal
    • Self-Love Planner for Moms Printable
    • My Zazzle Store
    • My Amazon Store
    • Etsy Store

Note: posts contain affiliate links, earning me a commission. By using this site, you agree to our use of browser cookies. Read our disclosure and privacy policies for more details.

HTML Tip: How to Create a Custom Style for Text Boxes

October 7, 2015 by Julie 13 Comments

In this post, I will show you two options for controlling the size and colors of a text box on your post.

  • Example 1: Specify Blockquote Style
  • Example 2: Add a Class to a DIV


Custom-Text-Boxes
 

If you are ready to read how to style your text boxes and step through both examples with me, check out my post on Working on Working Mom!

EDIT Since it looks like Working On Working Mom is currently down, I have shared the full tutorial below. Enjoy!
Hi everyone! I’m Julie. Thanks Angela for inviting me to guest post on Working on Working Mom! Today I’m going to share how to edit the style of your text boxes.
I will show you two options for controlling the size and colors of a text box on your post.–>

Table of Contents

Toggle
  • Example 1: Specify Blockquote Style
  • Example 2: Add a Class to a DIV
    • Example 2, Option 1: Create New Style Class
    • Example 2, Option 2: Stylize the individual DIV

Example 1: Specify Blockquote Style

I like to use the blockquote feature to highlight special text or a writing prompt, and I have styled my blockquote accordingly. The reason I choose to use the blockquote to emphasize specific text, is it already indents and differentiates the text, allowing me to only need to add customization in the colors used. In the screenshot below, the area with the darker background and italics text is my styled blockquote.

VR_blockquote_screenshot


You can make this styling a couple of ways. The most consistent way is to edit your theme’s stylesheet so that all blockquotes will have the same look. In WordPress you can do so through your dashboard by going to Appearance then Editor then editing your style.css file. Below is the code I entered into my stylesheet to create the text box you see in the screenshot.

 

blockquote{
background: #891e42;
font-style: italic !important;
color: #fff;
}

 

The specific items I chose to style in my blockquotes are the background color of the blockquote text box, the font style to be italic, and the font color. I had to use “!important” to make sure that another font-style command in the stylesheet doesn’t override the command I’m trying to customize.

So with this, I just simply use the blockquote button in my WordPress Visual Editor or enter the code myself if typing in the Text Editor. My text box code in the post itself will just look like this:

However, if you are uncomfortable changing your theme’s stylesheet, you may also use styling directly in the blockquote tag. This requires typing more into the Text Editor, and you will need to remember to be consistent each time you use the tag if you wish to have the same look across all your quoted/text areas. I will show how to do this second option in the next example.

Example 2: Add a Class to a DIV

You also don’t have to use the blockquote feature specifically to create the text box look. If you want a special text box outside your normal way of quoting text, you can just style a div in any way you want. In this example I will show two ways to style a div. One way will be to update the stylesheet with a special class of your making, and another will be to edit the style manually in the div itself.

Example 2, Option 1: Create New Style Class

In my stylesheet, I created a new class called “SpecialTextBox”, and the code looks like this:
 

.specialtextbox {
background: #BC8F8F;
color: #800000;
height: 200px;
width: 350px;
overflow: auto;
text-align: left;
border-width: 1px;
border-style: solid;
border-color: #800000;
} /*Julie-made*/

 

You can see that I even made a comment to remind myself that I added that piece of code to my pre-made theme. You can call this class whatever you want, just be sure to include the “.” at the beginning. Then, when you are ready to use it, you will add class=”specialtextbox” (or whatever you named it) to the div you want to follow that style command. The first two commands are for the background color followed by the text color. If you are not familiar with HEX codes for colors, the HTML Goodies site has a great table with examples you can use. The next group is for the height and width of the text box. Overflow:auto is to add a scrollbar if the text exceeds that size. Then the last pieces are to align the text and control the border. Obviously these are all optional and can be tweaked to your preference, and other CSS styling commands can be added as well. Then you call the class as follows when you create the div for your text box in the Text Editor.

Example 2, Option 2: Stylize the individual DIV

Option two is to skip the stylesheet altogether and just add the style commands in the div tag. You will see the same commands as above inside the “style” area within the div, below.

That code translates to the following:

 

The text you wish to emphasize in a lovely text box will go here. You can include a quote, a joke, a writing prompt, or anything else that you would like to draw attention to in a special way.

 

 

As you can see, there are quite a few options to stylize a text box (as well as just about everything else). Try it out and let us know which option you prefer.

HTML Tip: How to Create a Custom Style for Text Boxes

 

 

Join the Working Mom List

Join the Working Mom collective and get support and tools to help you thrive! Subscribers get access to my library of resources and printables.

Thank you for joining the tribe! Now check your email to confirm your subscription.

There was an error submitting your subscription. Please try again.

Powered by Kit

Categories: Tips and Resources, TopPosts, Website and Blogging Tags: Blogging tips

the PAST
the FUTURE

Comments

  1. aNoviceMum says

    December 25, 2015 at 9:05 am

    Looks interesting, off to read more.

    Reply
  2. Beth says

    October 16, 2015 at 4:32 pm

    I’m still learning HTML (again!) great post
    Thank you for linking up with #justanotherlinky

    Reply
  3. Something Crunchy Mummy says

    October 11, 2015 at 2:58 pm

    HTML confuses me but you explained it well. Thanks for linking up to #justanotherlinky xx

    Reply
  4. Angela @ Setting My Intention says

    October 9, 2015 at 7:08 pm

    I start to break out into a nervous sweat at the thought of making changes to code. I tend to ask my husband to do all of that. Your directions are really though and the text boxes do indeed look great! Found you from the #LFEO link up

    Reply
    • Julie says

      October 12, 2015 at 11:16 am

      Well it is a good thing that your hubby can help you out then :)

      Reply
  5. Jill Morgenstern says

    October 9, 2015 at 12:11 pm

    Looks great! I use those for my disclosures when I do a post with Amazon links!

    Reply
    • Julie says

      October 13, 2015 at 9:55 am

      Ooh, great idea to use a stylized text box for disclosures. I just do italics, I should try that out.

      Reply
  6. Angela Gilmore says

    October 7, 2015 at 6:10 pm

    Yay! Thanks again for posting! I love this tutorial, and I actually learned from it! Plus I still love your text boxes! ;)

    Reply

Comments are held for moderation. Links are no follow.

Trackbacks

  1. Linky Party! - Dishing Delish says:
    October 16, 2015 at 8:07 am

    […] As always this week’s features are from last weeks party!! It wasn’t easy picking just ONE POST !!! Amanda’s Pick: Setting Monthly Goals: October 2015 from Setting My Intention I am a planner & a goal setter and was inspired by how Angela gets every part of life out on ‘ paper.’ ~Amanda~ Amanda’s Pick: Setting Monthly Goals: October 2015 from Setting My Intention I am a planner & a goal setter and was inspired by how Angela gets every part of life out on ‘ paper.’ ~Amanda~ Amy’s Pick: Slow Cooker Applesauce from Strength & Sunshine I was looking for a good apple sauce recipe for my crockpot..and here it is! My boys love applesauce so I’m excited to find this simple, yet delicious recipe! ~Amy~ Jacqui’s Pick: Chocolate Protein Pancakes from Jennifer Meyering These pancakes look so good for breakfast, and the photography is simply stunning! ~Jacqui~ Mindy’s Pick: Nightmare Before Christmas Sugar Cookies from Skill Up Skillet Pat’s Pick: Easy Fall Stovetop Potpourri from Windstead Wandering I received a mini-slow cooker that, with a family of 5, I’ve never been able to find a use for up ’till now! THIS is just perfect – all-natural and just yummy! Luv!” ~Pat~ Mindy’s Pick: Nightmare Before Christmas Sugar Cookies from Skill Up Skillet Pat’s Pick: Easy Fall Stovetop Potpourri from Windstead Wandering I received a mini-slow cooker that, with a family of 5, I’ve never been able to find a use for up ’till now! THIS is just perfect – all-natural and just yummy! Luv!” ~Pat~ HTML Tip: How to Create a Custom Style for Text Boxes from Velvet Rose […]

    Reply
  2. WooHoo! Learning From Each Other Blog Party! - Busy Boys Brigade says:
    October 16, 2015 at 1:32 am

    […] HTML Tip: How to Create a Custom Style for Text Boxes from Velvet Rose […]

    Reply
  3. Learning from Each Other # 12 - My Creative Scoop says:
    October 15, 2015 at 11:51 pm

    […] As always this week’s features are from last weeks party!! It wasn’t easy picking just ONE POST !!! Amanda’s Pick: Setting Monthly Goals: October 2015 from Setting My Intention I am a planner & a goal setter and was inspired by how Angela gets every part of life out on ‘ paper.’ ~Amanda~ Amy’s Pick: Slow Cooker Applesauce from Strength & Sunshine I was looking for a good apple sauce recipe for my crockpot..and here it is! My boys love applesauce so I’m excited to find this simple, yet delicious recipe! ~Amy~ Jacqui’s Pick: Chocolate Protein Pancakes from Jennifer Meyering These pancakes look so good for breakfast, and the photography is simply stunning! ~Jacqui~ Mindy’s Pick: Nightmare Before Christmas Sugar Cookies from Skill Up Skillet Pat’s Pick: Easy Fall Stovetop Potpourri from Windstead Wandering I received a mini-slow cooker that, with a family of 5, I’ve never been able to find a use for up ’till now! THIS is just perfect – all-natural and just yummy! Luv!” ~Pat~ HTML Tip: How to Create a Custom Style for Text Boxes from Velvet Rose […]

    Reply
  4. Learning From Each Other #12 - says:
    October 15, 2015 at 11:11 pm

    […] As always this week’s features are from last weeks party!! It wasn’t easy picking just ONE POST !!! Amanda’s Pick: Setting Monthly Goals: October 2015 from Setting My Intention I am a planner & a goal setter and was inspired by how Angela gets every part of life out on ‘ paper.’ ~Amanda~       Amy’s Pick: Slow Cooker Applesauce from Strength & Sunshine I was looking for a good apple sauce recipe for my crockpot..and here it is! My boys love applesauce so I’m excited to find this simple, yet delicious recipe! ~Amy~       Jacqui’s Pick: Chocolate Protein Pancakes from Jennifer Meyering These pancakes look so good for breakfast, and the photography is simply stunning! ~Jacqui~       Mindy’s Pick: Nightmare Before Christmas Sugar Cookies from Skill Up Skillet         Pat’s Pick: Easy Fall Stovetop Potpourri from Windstead Wandering  I received a mini-slow cooker that, with a family of 5, I’ve never been able to find a use for up ’till now! THIS is just perfect – all-natural and just yummy! Luv!” ~Pat~   HTML Tip: How to Create a Custom Style for Text Boxes from Velvet Rose […]

    Reply
  5. Learning From Each Other Blog Party #11 | Dreaming of Leaving says:
    October 14, 2015 at 9:51 am

    […] As always this week’s features are from last weeks party!! It wasn’t easy picking just ONE POST !!! Amanda’s Pick: Setting Monthly Goals: October 2015 from Setting My Intention I am a planner & a goal setter and was inspired by how Angela gets every part of life out on ‘ paper.’ ~Amanda~ Amy’s Pick: Slow Cooker Applesauce from Strength & Sunshine I was looking for a good apple sauce recipe for my crockpot..and here it is! My boys love applesauce so I’m excited to find this simple, yet delicious recipe! ~Amy~ Jacqui’s Pick: Chocolate Protein Pancakes from Jennifer Meyering These pancakes look so good for breakfast, and the photography is simply stunning! ~Jacqui~ Mindy’s Pick: Nightmare Before Christmas Sugar Cookies from Skill Up Skillet Pat’s Pick: Easy Fall Stovetop Potpourri from Windstead Wandering I received a mini-slow cooker that, with a family of 5, I’ve never been able to find a use for up ’till now! THIS is just perfect – all-natural and just yummy! Luv!” ~Pat~ HTML Tip: How to Create a Custom Style for Text Boxes from Velvet Rose […]

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Comments are held for moderation.

About Julie

Julie of Fab Working Mom Life Welcome! My name is Julie :) I'm a mom, military spouse (which often means I'm solo parenting), I work full-time in environmental compliance, and I'm also a blogger/content creator. I write about being a working mom to help myself and other working moms in our journey to find a balance between our family, responsibilities, and hobbies. I do this because we moms need a support network to thrive both at home and at work.

Follow us

  • mail
  • instagram
  • instagram
  • tiktok
  • twitter
  • pinterest
  • facebook
  • linkedin
  • youtube
  • bloglovin

Note: posts contain affiliate links, earning me a small commission at no additional charge to you. This site uses browser cookies to store information on your computer: some are essential to make this site work, others improve your user experience, and track behavior and user patterns (for advertising purposes). By using this site, you agree to our use of cookies. Read our disclosure and privacy policies for more details.

WOW MD

Join fellow Working Moms

Grab these Affirmations for Working Moms when you Join!
View this profile on Instagram

Julie {Fab Working Mom Life} Blogger (@fabworkingmomjulie) • Instagram photos and videos

Most Popular

How to get stubborn picky eaters & toddlers to try new foods in 3 fun ways

Toddler meals for Picky Eaters: 30+ quick and easy toddler recipes 

How to Stop Toddler Whining, a Guide for Moms

Featured Posts

  • Get Ready for Back To School with these Tips (40+ Mom Hacks to Prepare for Back to School)
  • How To Pack School Lunches That Your Kids Will Actually Eat
  • The Ultimate List of Free Baby Stuff & Resources for New Moms
  • Summer Camp at Home: Ideas to Keep Kids Busy While You Work
  • 40+ Ideas for your Summer Bucket List for Kids (and the whole family)

Join the Working Mom List

Join the Working Mom collective and get support and tools to help you thrive! Subscribers get access to my library of resources and printables.

Thank you for joining the tribe! Now check your email to confirm your subscription.

There was an error submitting your subscription. Please try again.

Powered by Kit

Fab Working Mom Life Hot Topics

31 Tips to find calm in the chaos of life for working momsproductivity tips for working moms
5-things-you-need-to-know-to-breastfeed-baby-sliderthings-to-do-to-prepare-for-baby-for-first-time-moms-slider

Link to Fab Working Mom Life

Membership


Memberships page.

 

Mailing Address: 113 Cherry St #92768, Seattle, WA 98104-2205

Hours: Always Open

  • Start Here
  • Work With Me
  • Guest Post Here
  • Disclosure Policy and Disclaimer
  • Privacy Policy
  • Link and Image Policy
  • Terms and Conditions
  • Copyright Policy

Note: Posts contain affiliate links. Should you choose to purchase a product, I will receive a small commission for the sale at no additional cost to you. Fab Working Mom Life is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com and affiliated sites.

Protected by Copyscape
DMCA.com Protection Status
DMCA.com Protection Status

Copyright © 2026 · Fab Working Mom Life· Hello You Designs

Copyright © 2026 · Sweets Blog on Genesis Framework · WordPress · Log in

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT