+33 3 83 56 65 26 +33 6 87 42 95 30 Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. Lun-Ven : 9.00 à 17.00
Questions relatives à l'utilisation de cette version.

problème @font-face et firefox 3.6

More
16 years 8 months ago #16954 by totophe
bonjour

testant le @font-face, il se trouve que curieusement j'ai réussi à le faire fonctionner correctement sous IE7 mais pas sous firefox 3.6, ayant pourtant téléchargé un format woff.

en fait sous firefox, la police demandé (ici Andyb) s'affiche, mais me décale tout le reste du site vers le bas

je précise que je tourne en local (apprentissage) avec xampp et joomla 1.5.15

ci joint mon code css si cela peut aider :
Code:
@font-face { font-family: 'andy'; src: local('Andy'), local('Andy-Bold'), url('../fonts/Andyb.ttf'), url('../fonts/Andyb.woff') format('woff') format('truetype'); } .andy { font-family:andy, sans-serif; font-size:26px; text-align:center; color:#000000; } html { text-align:center; } body { padding: 0px; margin: 0 auto; background: #043231 url(../images/fnd.jpg); color: #FFF; font-family: Arial, helvetica, tahoma, sans-serif; font-size : 14px; text-align: center; } #global { position:absolute; margin: 0 auto; width: 960px; left: 50%; top: 50%; margin-top: -325px; margin-left: -480px; text-align: center; height:650px; border: 1px solid #ffffff; } #header { height:150px; width:900px; margin: 0 auto; background: #666; } #top { background:none; margin: 0 auto; height:60px; width:600px; } #bodymiddle { background:#666; width:960px; height:400px; margin: 0 auto; } #bas { width:960px; height:30px; margin: 0 auto; padding-top: 10px; background: transparent; text-align: center; }

vu que j'apprends, la classe andy n'est appliquée qu'à une phrase, ci joint la partie du code concernée:
Code:
<div id="top"> <p class="andy">Tararata</p> </div>

merci par avance si quelqu'un a une piste

Please Connectez-vous or Create an account to join the conversation.

More
16 years 8 months ago #16961 by lavsteph
Bonjour,

je ne suis pas spécialiste en css, mais voilà quelques infos qui pourrait être intéressantes.

developer.mozilla.org/en/CSS/@font-face
www.w3.org/TR/css3-webfonts/#font-descriptions

Please Connectez-vous or Create an account to join the conversation.

More
16 years 8 months ago #16962 by totophe
bonjour
merci de la piste, je vais lire tout cela
j'ai déjà gagné un peu avec un magin:0; ;)

Please Connectez-vous or Create an account to join the conversation.

More
16 years 8 months ago #16964 by lavsteph
Avec firefox tu peux trouver de l'aide avec les plugins Firebug et Webdevelopper. ;)

Please Connectez-vous or Create an account to join the conversation.

Moderators: lavsteph, tramber91, Scottux, serge
Time to create page: 0.146 seconds

News extensions

News Communautés

News sécurité