Skip to main content

How to Add Text Border in Blogger HTML - Colored Left Border with Text Background Color

Hi Welcome to another tutorial from Free Computer Tricks, The tutorial is about HTML coding for Blogger, if you have a blog and want to customize is with various styles using HTML code, then here you can get the HTML tutorial for such customization of your Blog. Here is the tutorial about How to ad text border in Blogger with HTML code. Here is the example of how you can add a left border with color along with any text background color.
How to Add Text Border in Blogger HTML - Colored Left Border with Text Background Color (HTML Code For Blog and Website)
If you are a Blogger, then you must need this tutorial about text border. Sometimes you need to add some text lines in your blog such as HTML Codes, CSS Codes, Some Log text, Error Quotes, JavaScript Code, Special Notes etc. and you want to add a style text border and background, which is easily find out by the visitors and also it looks better on your blog. Here we will show you how to add a colored left margin and text background color with various style on your blog.

Here we will show you how to add a Colored Left Border and some text background color with text align, padding, font style, left border color, text background color and margin. To add this style text box on your blog you need to edit your blog post with HTML Mode and paste the below HTML codes in it then come back Compose Mode.

Example:

HTML Code:
<div style="border-left: 4px solid red; background-color: lightgrey;">
Sample text line 1
Sample Text Line 2
</div>

Result:
Sample text line 1
Sample Text Line 2

HTML Code: Change the Color of the Left Border
<div style="background-color: lightgrey; border-left: 5px solid #16DE25;">
Sample text line 1
Sample Text Line 2
</div>

Result:
Sample text line 1
Sample Text Line 2

HTML Code: Add Space After Left Border
<div style="background-color: lightgrey; border-left: 5px solid #16DE25;">
<div style="margin-left: 15px;">
Sample text line 1
Sample Text Line 2
</div></div>

Result:
Sample text line 1
Sample Text Line 2

HTML Code: Padding Top and Bottom
<div style="background-color: #EAECEA; border-left: 5px solid #16DE25;">
<div style="margin-left: 15px;">
<div style="padding-bottom: 15px; padding-top: 15px;">
Sample text line 1
Sample Text Line 2
</div>
</div>
</div>

Result:
Sample text line 1
Sample Text Line 2

HTML Code: Font Style and Text Align
<div style="font-family: arial; "text-align: justify;">
<div style="background-color: #EAECEA; border-left: 5px solid #16DE25;">
<div style="margin-left: 15px;">
<div style="padding-bottom: 15px; padding-top: 15px;">
Sample text line 1
Sample Text Line 2
</div>
</div>
</div></div>

Result:
Sample text line 1
Sample Text Line 2

Conclusion:
In this way you can add a decorated text border with a background color, which make your blog to looks better and it's also easy to find out by your visitor if there is any special note on your blog. So use the above HTML codes for border and text background and enjoy.

Comments

Popular posts from this blog

New CSC Banner Download available in PSD format(December 2022)

Dear VLE, Ministry has approved new Common Branding  format for CSC Center in category wise. There are three types of designs: 1. First one is for CSCs providing general services, and which do not provide UCL or BC service. 2. Second one is for CSCs that provide both BC and UCL services. 3. Third one is for CSCs that provide BC services along with other services. All VLES are to install one of these branding boards at their CSC depending on the services provided.   3 CSC banner design download PSD file - free computer tricks Links to the Designs: Generic CSC Centre Banner:- Generic CSC Centre Banner sample Download  Generic CSC Centre Banner PSD format from the below link Generic CSC Centre Banner || Download Here BC+UCL Centre Banner:- BC+UCL Centre Banner sample Download  BC+UCL Centre Banner PSD format from the below link BC+UCL Centre Banner || Download Here BC Centre Banner:- BC Centre Banner sample Download  BC Centre Banner PSD format from t...

Moto Fastboot FRP Unlock Tool - Reset/Bypass All Moto Qualcomm FRP Lock For Free !!!

Hi all, here is another interesting tutorial about Factory Reset Protection FRP bypass. If you have Moto any model with Qualcomm CPU or Chipset then use this method of Fastboot FRP Unlocking using the Free Fastboot Boot FRP Tool for Moto Qualcomm based phones. This method is so easy and working on Android 7.0 on any Moto smartphone having Qualcomm chip-set. So please follow the below tutorial to know how to remove FRP of Moto using Fastboot Mode. Here you can also download the Moto Fastboot FRP Unlock tool for free and it's small Windows software or tool, that can do the FRP unlock of any Moto smartphone with Fastboot mode, you can also watch video tutorial on YouTube to know how to use the FRP tool, tested on Moto Qualcomm Android 7.0. Moto Fastboot FRP Unlock Tool - Bypass All Moto Qualcomm FRP Lock Tool For Free !!! How To Enable USB Debugging On Moto Locked? If you need to know how to enable USB debugging on a frp locked Moto phone, without using internet or any ...

Realme Narzo 30 Pro 5G price in India and specifications

Realme Narzo 30 Pro 5G price in India and specifications Specifications Details Display 6.5-inch FHD+ IPS LCD display with 1080 x 2400 pixel resolution, 120Hz refresh rate Processor MediaTek Dimensity 800U 5G processor RAM 6GB/8GB LPDDR4x RAM Storage 64GB/128GB UFS 2.1 internal storage, expandable up to 256GB via microSD card Rear Camera Triple-camera setup with 48MP primary sensor, 8MP ultra-wide-angle lens, and 2MP macro lens Front Camera 16MP selfie camera Battery 5000mAh battery with 30W Dart Charge support Operating System Android 10 with Realme UI Connectivity Dual-SIM 5G, 4G LTE, Wi-Fi, Bluetooth 5.1, GPS, USB Type-C Other Features Side-mounted fingerprint scanner, 3.5mm headphone jack Price (As of my knowle...