| Capital Letter in a Color Block |
To get color block with a cap alongside text, use the following code:
<span style="margin-right:6px;margin-top:5px;float:left;background:red;border:1px solid black;font-size:60px;line-height:55px;padding-top:2px;padding-right:5px;font-family:verdana;">B</span>lack inside, red outside was my choice, but you could change the colors to anything. Add text between the /span and div style tags to float on the right. the font sise and line height tags can be edited to change the size of the color block.<div style="clear:both;"><br></div>
It will look like this:
Black inside, red outside was my choice, but you could change the colors to anything. Add text between the /span and div style tags to float on the right. the font size and line height tags can be edited to change the size of the color block. |
| Return to Listing |