You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bootstrap5 - Can the Font Class Family be mixed in a web page
#10
using a class I would like to be able to apply a different font-family to specific <div>'s <p>'s etc.
if I understand correctly I should be able to do this by modifying my css file and have it follow the boot strap css file.
Below is what I have tried but it does not work. The ultimate goal would be to target the individual fonts in the font-family.
Can some one provide an example to how this can be accomplished.
Thanks in advance
At the top of my ccs file I have added
:root {
--mono-font: var(--bs-font-monospace);
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
using a class I would like to be able to apply a different font-family to specific
<div>'s <p>'setc.if I understand correctly I should be able to do this by modifying my css file and have it follow the boot strap css file.
Below is what I have tried but it does not work. The ultimate goal would be to target the individual fonts in the font-family.
Can some one provide an example to how this can be accomplished.
Thanks in advance
At the top of my ccs file I have added
:root {
--mono-font: var(--bs-font-monospace);
}
.my-mono-font {
font-family: var(--mono-font);
}
My index htm file
All reactions