What if I told you that the red and green title design down below was made up simply by fonts I have loaded on Geek with Style, and a bit of CSS styling? Kinda neat, eh? Like virtually everything in website design, there are both pros and cons to using designer webfonts instead of images. One or the other could take up more loading time depending on webfont size versus image size. But, while we’re told to not go too crazy on loading fonts directly from our site, we also don’t want image heavy pages, especially with our audience becoming more and more mobile. Many of our viewers are using limited data plans, and it sucks when 10 MBs of data is used to simply view one image on my browser.
<center><h1 id=”bodieholly”>Let Me Be Your Holiday Gifts Guide</h1></center>
No really, that bit of code between the <center></center> tags above is all I needed in my post editor to get that pretty title above, which is what I have displayed on my Holiday Gift Guide page this year. You can highlight the letters like any other font.
And this is what I use for my Technology page:
@font-face {
font-family:'FontName'; /* Give your font a name, anything you want, just keep it to one word. */ src: url('fonts/Font-Name.eot');
src: url('fonts/Font-Name.eot?#iefix') format('embedded-opentype'),
url('fonts/Font-Name.woff') format('woff'),
url('fonts/Font-Name.ttf') format('truetype'),
url('fonts/Font-Name.svg#FontName') format('svg');
font-weight: normal;
font-style: normal;
}
#FontName { font-family: 'FontName' ; } So the Elsie font on Geek with Style shows up like this in our style.css style sheet.
@font-face {
font-family:'elsie';
src: url('fonts/elsie-regular-webfont.eot');
src: url('fonts/elsie-regular-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/elsie-regular-webfont.woff') format('woff'),
url('fonts/elsie-regular-webfont.ttf') format('truetype'),
url('fonts/elsie-regular-webfont.svg#elsie') format('svg');
font-weight: normal;
font-style: normal;
}
#elsie { font-family: 'elsie' ; } All of your pretty words.
Or if you want to use the font as a header within your post, it would look like this:
All of your pretty words.
You can even have this font work for a select amount of words, using the span tag, within a paragraph if that’s your thing:
This is so amazing, I can't wait to tell you all about it!
And that’s it! 🙂
In roughly five minutes, I have a cool font to use on my site.
In roughly five minutes, I have a cool font to use on my site.
That Will Even Work With Titles and Change Colours
I just want one word in my sentence to use the new font, ’cause I’m cool like that.
I just want one word in my sentence to use the new font, 'cause I'm cool like that.
While I used a nice “regular” font to showcase how this works, you can search out Christmas themed fonts and use them in the exactly same way.
The L in the title above is the letter “L” using the font “Kr Christmas Color Me”, which shows that there isn’t really a limit (except for font designer licensing/permissions,) on what you can do with your site and font choices.
So to get the L to look like the font image, I simply added this to the paragraph above:
L Let me know if you have any questions, I’ll do my best to answer. 🙂
The evil Haka’ar has stolen the Scepter of Se’payu containing the Red Jewel of Jumanji!…
Toronto is home to countless escape room adventures, but there is one group that stands…
What's a smart home if you're still struggling to get through the front door with…
GLASS, the culmination of M. Night Shyamalan's comic book superhero thriller was released on DVD,…
In anticipation of the upcoming Spider-Man: Far From Home movie, in theatres July 2019, LEGO…
The past 20 years have seen some epic construction kits for Star Wars and LEGO…
This website uses cookies.
View Comments
Oh I love this! I'll have to try to add some cool fonts to my next blog post. Thanks!
Such great tips. I am coding illiterate so this is super helpful to get the fonts I'd like. Thank you!
So when someone loads it on mobile it just looks like plain old boring typeface (but saves on the bandwidth), is that the idea?
Actually the only mobile browser it doesn't seem to work with yet, at least with my phone, is Facebook's new browser (the one now setup so that you don't actually leave FB to view a webpage unless you hit the "Take me to Chrome" button. I've tried this page out on three other mobile browsers and it works fine. What image based fonts can do is be much data-usage friendly than images. :)
Seriously, you are so awesome. My tech guru for a reason! I'm not literate on things like this and am glad that I have you to go to! Fonts do make a big difference in how a post looks!
Pinning this! I always learn so much when I come to your blog Aeryn! Thanks.