how to have text of 2 font sizes in same line in HTML?
span { font-size: 3em;}
span b { font-size: 60%; font-weight: normal }
<span><b>$</b>63</span>
You could also avoid to use a nested element to wrap the currency sign and use the ::first-letter
pseudoclass to style it, but this requires a block
or inline-block
parent element, e.g.
span {
font-size: 3em;
display: inline-block; }
span::first-letter { font-size: 60%; }
<span>$63</span>
Only HTML: using
- Two span tags and 2. different font size in style
<span style="font-size: 25px;">Rs</span> <span style="font-size: 50px;">2000/-</span>
Check this http://jsfiddle.net/RPf4N/2/
html
<div id="mydiv">$<a>63</a></div>
ur css
#mydiv
{
font-size:20px;
}
#mydiv a
{
font-size:100px;
}