Total members 11889 |It is currently Fri Mar 29, 2024 2:34 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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>
 




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  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     -  
 Setting maximum height of paragraph -P tag     -  
 Change the text indent in the paragraph     -  
 Changing the line height of the paragraph     -  
 Change the word spacing in paragraph     -  



Topic Tags

HTML Paragraph
cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com