1 reply [Last post]
Jose Cuervo
Jose Cuervo's picture
Offline
newbie
Spain
Last seen: 7 years 31 weeks ago
Spain
Timezone: GMT+1
Joined: 2013-06-10
Posts: 1
Points: 2

Hi guys.

I was trying to use @font-face and create a beautiful text-shadow (CSS Text-Shadows) at the same time but I can't even work the font-face out although I follwed to instructions on fontsquirrel font face generator.

font files have been uploaded to the correct folder as seeable in the css-code

source code:
<div class="mitteinnen"><span class="1"><span class="alex_brush">This is the text I'd like to look nicely!!</span></span></div>

css:

p.alex_brush {
 font-family:'alex_brushregular';
 color: #660504;
 font-weight: 400;
 text-shadow:  -4px 3px 0 #3a50d9, -14px 7px 0 #0a0e27;
 
}
 
@font-face {
    font-family: 'alex_brushregular';
    src: url('www.lanzarote-live.com/fonts/alexbrush-webfont.eot');
    src: url('www.lanzarote-live.com/fonts/alexbrush-webfont.eot?#iefix') format('embedded-opentype'),
         url('www.lanzarote-live.com/fonts/alexbrush-webfont.woff') format('woff'),
         url('www.lanzarote-live.com/fonts/alexbrush-webfont.ttf') format('truetype'),
         url('www.lanzarote-live.com/fonts/alexbrush-webfont.svg#alex_brushregular') format('svg');
    font-weight: normal;
    font-style: normal;
 
}

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 2 weeks 1 day ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9774
Points: 3856

Is the page live? A link

Is the page live? A link would help us to picture things better.

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.