Skip to main content

CSS Letter Spacing and Line Height Property



Code:

<style>

p {

text-indent: -100px;

width: 500px;

border: 1px solid red;

padding-left: 200px;

}

div {

letter-spacing:-1px;

padding-left: 200px;

border: 1px solid red;

}

span {

line-height: 35px;

padding-left: 200px;

border: 1px solid red;

}

</style>

<p>We are learning CSS. Today we will discuss text-indent property.We are learning CSS. Today we will discuss text-indent property.We are learning CSS. Today we will discuss text-indent property.We are learning CSS. Today we will discuss text-indent property.We are learning CSS. Today we will discuss text-indent property.We are learning CSS. Today we will discuss text-indent property.We are learning CSS. Today we will discuss text-indent property.</p>



<div>We are learning letter-spacing property.We are learning letter-spacing property.We are learning letter-spacing property.We are learning letter-spacing property.</div>



<span>We are learning line-height.We are learning line-height.We are learning line-height.We are learning line-height.We are learning line-height.We are learning line-height.We are learning line-height.We are learning line-height.We are learning line-height.We are learning line-height.We are learning line-height.We are learning line-height.</span>


Comments

Popular posts from this blog

PHP Type Casting in Bangla Language

Code: <?php print $x =(int)78.9; print "<br />"; print $y = (float)87; $z = (array)90; print "<br />"; print $z[0]; ?>

Factorial Using PHP In Bangla

Code: <form action="" method="post"> Enter Number : <input type="text" name="num" /> <input type="submit" name="submit" value="Submit" /> </form> <?php if(isset($_POST['submit'])){ $num = $_POST['num']; $fact = 1; for($i=2;$i>=1;$i--){ $fact *= $i; } print "The Factorial is: ".$fact; } ?>

PHP Function part3

Code: <?php function xyz($x,$y){ $z = $x + $y; return $z; } $b = xyz(10,20); print $b; function xyz1(){ $z[] = "he"; $z[] = "she"; $z[] = "me"; return $z; } list($x,$y,$z) = xyz1(); print "<br />"; print $x." ".$y." ".$z; ?>