Switch to full style
HTML code examples
Post a reply

adding padding to your text

Sat Jan 07, 2012 12:07 am

Adding padding to text in your html , in this example we are adding padding to div tag .
Code:
<html>
<
head>
<
title>Padding the text</title>
<
style rel="stylesheet" type="text/css">
.
textBlock {
  border: 4px dashed #ddd;
  padding: 20px;
 
}
</
style>
</
head>
<
body>
<
div class="textBlock">
 Your text is padded 
</div>
</
body>
</
html>

 




Post a reply
  Related Posts  to : adding padding to your text
 Change the margin and padding of paragraph     -  
 Able to Copy Text from Uneditable Text Boxes(JTextfields)     -  
 Adding a New Node to contact.xml     -  
 Need automatic adding to catalogs     -  
 adding abbreviations to your html     -  
 adding a button with link in skymiles_red     -  
 Adding watermark to all images in a folder     -  
 adding caption to table in html     -  
 Adding lighting to a solid sphere     -  
 Adding vertical array in java     -  

Topic Tags

HTML Div