Do CSS functions exist

0 votes

I'm not sure what to call this, but basically, let's say I have a style that I use a lot,

.somepattern{
    font-size:16px;
    font-weight:bold;
    border:2px solid red;
}

However, occasionally I want to alter the font size and border color. Could I use this code as a library so that I could set the style to a div?

<div class="somepattern">Text</div>

but still, control the 16px and red like we do with functions?

Jul 25, 2022 in CSS by Edureka
• 13,620 points

edited 5 days ago 6 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP