Customized Text Font on a Page - CSS
willtredo
Registered Users Posts: 1 Beginner grinner
I'm trying to use my own font for the body text on page I created and am using the following CSS code:
@font-face { font-family: Dirty Ego; src: url('http://www.mediafont.com/storage/contents/1120/font.eot'); /* IE */ src: local('Dirty Ego'), url('http://www.mediafont.com/storage/contents/1120/DirtyEgo.ttf'); /* non-IE */ }
When I click on "Customize Site", "Edit Theme", go to the "Advanced" tab and enter this code nothing seems to happen. Anyone know what additional steps are needed to have the font come through?
Thank you!
Will
@font-face { font-family: Dirty Ego; src: url('http://www.mediafont.com/storage/contents/1120/font.eot'); /* IE */ src: local('Dirty Ego'), url('http://www.mediafont.com/storage/contents/1120/DirtyEgo.ttf'); /* non-IE */ }
When I click on "Customize Site", "Edit Theme", go to the "Advanced" tab and enter this code nothing seems to happen. Anyone know what additional steps are needed to have the font come through?
Thank you!
Will
0
Comments
Yes ... All you've done is told the web-browser to download the font for the user ... now you need to actually tell the webpage where you want to use 'Dirty Ego'.
for example, if you want the entire page body to use it, you would call it out:
If you just wanted a specific area to be the font, say, the lightbox Photo Title, you'd do it in that CSS call-out:
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
Shouldn't that say 'font-family' instead of 'font-face'?
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Woopsies -- you're quite right!!! I've fixed my original post now
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations