Skip to main content

CSS Text Indent 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]; ?>

PHP Function Part 3 in Bangla Language

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

PHP For loop

Code: <?php for($i=1;$i<=5;$i++){ print "The value of i is $i<br />"; } print "<br />"; $arr = array(10,20,35,15,80); for($i=0;$i<count($arr);$i++){ print "The value $i index= $arr[$i]<br />"; } ?>