Can someone please help me with one basic CSS question, you could be a hero right now!
I want to replace a font on my wordpress blog with a custom font I have. Here's my coding: (in red)
/*------------------------------------------------*/
/*--------------[FEATURED SLIDER]-----------------*/
/*------------------------------------------------*/
@font-face{
font-family:peacefulday;
src:url('http://www.industrialprincess.com/wp-content/themes/LeanBiz/fonts/PeacefulDay.ttf') format ("truetype");
}
#featured { position:relative; }
#featured-shadow { background: url(images/featured-bg.png) repeat-x; }
#featured-light { background: url(images/featured-shadow.png) no-repeat top center; position:relative; }
a#left-arrow, a#right-arrow { position: absolute; top: 45%; width: 63px; height: 128px; text-indent:-9999px; display: none; z-index: 6; }
a#left-arrow { background:url(images/left-arrow.png) no-repeat; left: 0px; }
a#right-arrow { background:url(images/right-arrow.png) no-repeat; right: 0px; }
.slide { padding-top: 123px; text-align: center; padding-bottom: 87px; }
.featured-description { padding-top: 33px; }
h2.featured-title { font-size: 60px; font-family: 'peacefulday', Arial, sans-serif; text-shadow: 1px 1px 1px #ffffff; margin-bottom:8px; }
h2.featured-title a { color: #e552a7; text-decoration:none; }
.featured-description p, .et_slide_text { font-size: 30px; font-family: 'Kreon', Arial, sans-serif; color: #678e8d; text-shadow: 1px 1px 1px #ffffff; }
#featured-border { background: url(images/featured-border.png) repeat-x; height: 2px; }
#featured-bottom-shadow { background: url(images/featured-bottom-shadow.png) no-repeat center 1px; height: 29px; }
.featured_shadow_bg { border: 7px solid #fff; float: left; }
.featured_image_shadow { border: 8px solid #fff; float: left; -moz-box-shadow: 0px 0px 8px rgba(0,0,0,0.1); -webkit-box-shadow: 0px 0px 8px rgba(0,0,0,0.1); box-shadow: 0px 0px 8px rgba(0,0,0,0.1); }
.featured-description { clear: both; }
.....
This is just an excerp from my CSS style sheet. Right now on the site its basically showing as an arial font instead of the peacefulday font. What is wrong? Should I put the @font-face{... at the top of the CSS sheet under Basic Styles or is it ok under the featured slider?
Thanks!
I've been trying this on my own and been having minimal luck.
JT
STOP Using PBNs - Get Better SEO and FREE Traffic!
A responsive web is a better web
A responsive web is a better web