How to Add Text Border in Blogger HTML - Colored Left Border with Text Background Color
| How to Add Text Border in Blogger HTML - Colored Left Border with Text Background Color (HTML Code For Blog and Website) |
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:
Sample text line 1
Sample Text Line 2
</div>
Result:
Sample Text Line 2
HTML Code: Change the Color of the Left Border
Sample text line 1
Sample Text Line 2
</div>
Result:
Sample Text Line 2
HTML Code: Add Space After Left Border
<div style="margin-left: 15px;">
Sample text line 1
Sample Text Line 2
</div></div>
Result:
Sample Text Line 2
HTML Code: Padding Top and Bottom
<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 2
HTML Code: Font Style and Text Align
<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 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.
0 comments:
Post a Comment
Please Share Your Thoughts