[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/wsr/ - Worksafe Requests


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


I'm attempting to change the font on some css layout to the crayola font but for whatever reason it doesn't seem to be working, any tips? Here's the code (note that I'm a fresh beginner so it's going to look stupid):

<style>
@font-face {
font-family: 'Crayola';
src: url('https://fonts.cdnfonts.com/css/crayola') format('truetype');
font-weight: normal;
font-style: normal;
}

body {
font-family: 'Crayola', sans-serif;
}
>>
>>1457366
try this, works on my machine

<style>
@font-face {
font-family: 'Crayola';
src: url('https://fonts.cdnfonts.com/s/37868/BoldCrayola-Regular.woff');
font-weight: normal;
font-style: normal;
}

body {
font-family: 'Crayola', sans-serif;
}
</style>
>>
>>1457366
I don't see Crayola on cdnfonts.com. There's only Crayola Kiddy, which would be imported from https://fonts.cdnfonts.com/css/crayola-kiddy-font. Also it's best practice to have fallback fonts in case the preferred font doesn't work or can't be accessed for some reason.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.