How To Change The Size Of A Period In Word
I accept to increase the size of a discussion in a middle of a normal font-size sentence.
<p class="call">To volume a consultation click hither or call At present</p>
How tin can I enlarge the NOW word in CSS? If I create new paragraph the word will go to the new line. Whatever advice appreciated.
asked January 21 2011 at 12:39
VonderVonder
iii,925 15 gold badges 40 silver badges 58 statuary badges
3 Answers iii
<p class="call">To volume a consultation click here or phone call <span form='bigger'>Now</bridge></p>
with CSS
.bigger { font-size:200%; }
answered Jan 21 2011 at 12:41
HogsmillHogsmill
1,454 13 silver badges 19 bronze badges
ii
- Decide why you desire it to be bigger (the point is HTML is to depict semantics, not presentation, so you need to recollect well-nigh this sort of affair)
- Write appropriate semantic markup
- Apply CSS
Perchance:
<p grade="call">To book a consultation click hither or phone call <em>now</em></p>
and in your stylesheet:
em { /* or .call em, but you lot should aim for consistency in your styling */ font-style: normal; font-size: 120%; text-transform: majuscule; }
answered Jan 21 2011 at 12:43
QuentinQuentin
841k 114 gilded badges 1135 silverish badges 1249 bronze badges
This will also work
<p> This is some <b> TEXT </b><p>
answered February 14 2021 at 4:31
Not the respond y'all're looking for? Scan other questions tagged html css or ask your ain question.
Source: https://stackoverflow.com/questions/4758878/how-to-increase-the-font-size-of-one-word-only-in-the-line
Posted by: lopezthapt1997.blogspot.com
Just to elaborate: the indicate here is the distinction between inline elements and block elements. Y'all may want to have a look at quirksmode.org/css/display.html
January 21 2011 at 12:47
Aye, absolutely - I have slapped myself roundly. I would never utilize somthing similar 'bigger' like this - purely for illustrative puroposes
Jan 21 2011 at 12:50