I have to increase the size of a word in a middle of a normal font-size sentence.
<p class="call">To book a consultation click here or call NOW</p>
How can I enlarge the NOW word in CSS? If I create new paragraph the word will go to the new line. Any advice appreciated.
To change the font size of selected text in desktop Excel, PowerPoint, or Word: Select the text or cells with text you want to change. To select all text in a Word document, press Ctrl + A. On the Home tab, click the font size in the Font Size box.
To do this, select the Home tab on the ribbon bar, then click the small arrow icon in the bottom right-hand corner of the Font section. Once the dialog box opens, you can choose the font that you wish to use. As well as changing the font itself, you can also change the style, size, and color of your text.
To change the font size in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML <p> tag, with the CSS property font-size. HTML5 do not support the <font> tag, so the CSS style is used to add font size.
<p class="call">To book a consultation click here or call <span class='bigger'>NOW</span></p>
with CSS
.bigger { font-size:200%; }
Perhaps:
<p class="call">To book a consultation click here or call <em>now</em></p>
and in your stylesheet:
em { /* or .call em, but you should aim for consistency in your styling */
font-style: normal;
font-size: 120%;
text-transform: uppercase;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With