custom-font


CSS custom font: <b> works but font-weight:bold does not


Hello I added a custom font in my css like this:
#font-face {
font-family: dosis;
src: url(Dosis-Regular.otf);
font-weight:normal;
}
#font-face {
font-family: dosis;
src: url(Dosis-SemiBold.otf);
font-weight:bold;
}
It works like this:
<b> This appears bold </b>
But not like this:
p{font-weight:bold;} /* in CSS file */
<p> This does not appear bold </p> /* in HTML file */
Do you have any idea what could be the problem?
it may be over-written somewhere else. try this:
p{font-weight:bold !important;}

Related Links

use custom fonts in tilemill?
CSS custom font: <b> works but font-weight:bold does not
How do i add custom fonts in the font awesome plugin??? Can it be done using EOT file?

Categories

HOME
android
sonarqube
api
checkstyle
nvd3.js
pascal
jelastic
vscode-extensions
can
nsbundle
lanczos
teechart
okhttp
openstreetmap
fhir
mel
shared-libraries
scrolltop
modbus-tcp
jmp
enterprise-miner
user-experience
babel
easeljs
dynamically-generated
perlbrew
data.stackexchange.com
slidetoggle
jquery-multiselect
bulletphysics
soot
carrierwave
panoramas
clickjacking
code-snippets
android-gridview
hard-drive
installshield-le
sendbird
python-import
reverse
roblox
reason
parse-tree
jpad
flatmap
kill
escpos
softmax
logback-groovy
tcc
android-checkbox
android-exoplayer
berkeley-db-je
photos
show-hide
mesosphere
wcftestclient
insight
modelsim
cup
check-mk
polyline
autosar
async.js
dup
gcloud-ruby
boost-serialization
sklearn-pandas
yajsw
beanstalk
spring-retry
oracle-spatial
roadkill-wiki
zen-cart
graphics2d
apache-commons-daemon
mraid
infosphere-spl
cosine-similarity
sip-server
human-computer-interface
raygun
mdichild
create.js
jqmodal
buffering
video-codecs
pyunit
jsr286
wiimote
box2d-iphone
mysql-error-1205
uipagecontrol
w3c-geolocation
cuteeditor
unattended-processing
zen
wcf-instancing
mathematical-notation
linfu-dynamicproxy
httpcookie

Resources

Encrypt Message