Switch to full style
HTML code examples
Post a reply

enlarge first letter in html paragraph

Fri Dec 16, 2011 1:07 am

enlarge the first letter in the text paragraph using CSS, we are using the first-letter CSS property to show the first letter in text paragraph larger than the other letters.
Code:
<html>
<
head>
<
title>enlarge the first letter</title>
<
meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<
style rel="stylesheet" type="text/css">
{
  margin:50px;
  width: 260px;
  
  margin
: 10px 0 10px 10px;
}

p:first-letter {
  font-size: 25px;
  float: left;
  color:red;
  margin-right: 4px;
}

</
style>
</
head>
<
body>
<
p>
Example of paragraph you can notice the first letter and see the change on it.

</
p>
</
body>
</
html>
 




Post a reply
  Related Posts  to : enlarge first letter in html paragraph
 bold-heading-paragraph-HTML-Tags     -  
 Change the letter spacing of the words     -  
 enlarge image when mouseover using javascript     -  
 id Selector with paragraph     -  
 change background of the paragraph     -  
 hide paragraph using jquery     -  
 Change the word spacing in paragraph     -  
 Change the margin and padding of paragraph     -  
 Setting maximum height of paragraph -P tag     -  
 Change the text indent in the paragraph     -  

Topic Tags

HTML Paragraph