How to Change the First and Second Characters in a Template with Two Characters in a Horizontal Row

Asked 1 years ago, Updated 1 years ago, 39 views

I am very sorry for the rudeness.

I would like to use bold font for the first two characters and normal font for the two characters in the site creation template as shown below. Could you please let me know how to use css or set it directly in the template?

Sports: Baseball

<p>Sports:</p>baseball>/p>

css smarty

2022-09-29 21:41

1 Answers

To specify a style for the element directly.

<p style="font-weight:bold">Sports:</p>

If you are classifying and specifying it in a separate style sheet.
elements:

<p class="category">Sports:</p>

Style Sheet:

.category{
    font-weight:bold;
}


2022-09-29 21:41

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.