Utilisation CSS
14 messages
• Page 1 sur 1
- co7645
- WRInaute passionné

- Messages: 1032
- Inscription: 18 Fév 2006
Utilisation CSS
Bonjour,
Je lutte depuis plusieurs jours (et nuits...) avec les CSS. Pour mon site en profil, leur utilisation serait surement profitable. Cependant, je n' obtiens pas de resultat...je n' arrive pas à intégrer la couleur du fond (image de la base de nemo) Pouvez vous m' aider? De plus, il faut mettre la feuille de style à la racine du site....j' ai peur d' avoir fait une bourde à ce niveau...que cela signifir t il au juste?
Je lutte depuis plusieurs jours (et nuits...) avec les CSS. Pour mon site en profil, leur utilisation serait surement profitable. Cependant, je n' obtiens pas de resultat...je n' arrive pas à intégrer la couleur du fond (image de la base de nemo) Pouvez vous m' aider? De plus, il faut mettre la feuille de style à la racine du site....j' ai peur d' avoir fait une bourde à ce niveau...que cela signifir t il au juste?
-

Aye-Aye - WRInaute passionné

- Messages: 1917
- Inscription: 15 Avr 2005
Concernant l'image, tu peux de même utiliser les propriétés suivantes associées à la propriété générique background-image.
propriété background-repeat, valeurs possibles : repeat, repeat-x, repeat-y, no-repeat
background-attachement, valeurs possibles : scroll, fixed
background-position, valeurs possibles : pourcentage, longueur, [top center bottom], [left center right]
- co7645
- WRInaute passionné

- Messages: 1032
- Inscription: 18 Fév 2006
(re)bonjour,
Désolé mais je ne m' en sors pas.Voici ce que j' ai tenté :
body {background-image:http://www.gitemontsaintmichel.com(images/nth_theme_business_modern_wood_frame_bg.gif);font-size:11px; font-family:Arial; }
a:link { color:#000000; text-decoration:none; font-weight:normal; }
a:hover { color:#999999; text-decoration:none; font-weight:normal; }
a:visited { color:#000000; text-decoration:none; font-weight:normal; }
a:active { color:#000000; text-decoration:none; font-weight:normal; }
h1 { font-family:Arial; font-size:13px; color:#000000; text-decoration:none; font-weight:bold; }
h2 { font-family:Arial; font-size:12px; color:#000000; text-decoration:none; font-weight:bold; }
Pouvez vous me corriger?
Merci
Désolé mais je ne m' en sors pas.Voici ce que j' ai tenté :
body {background-image:http://www.gitemontsaintmichel.com(images/nth_theme_business_modern_wood_frame_bg.gif);font-size:11px; font-family:Arial; }
a:link { color:#000000; text-decoration:none; font-weight:normal; }
a:hover { color:#999999; text-decoration:none; font-weight:normal; }
a:visited { color:#000000; text-decoration:none; font-weight:normal; }
a:active { color:#000000; text-decoration:none; font-weight:normal; }
h1 { font-family:Arial; font-size:13px; color:#000000; text-decoration:none; font-weight:bold; }
h2 { font-family:Arial; font-size:12px; color:#000000; text-decoration:none; font-weight:bold; }
Pouvez vous me corriger?
Merci
- FlorentP
- WRInaute discret

- Messages: 145
- Inscription: 25 Juin 2005
Mauvais : background-image:http://www.gitemontsaintmichel.com(images/nth_theme_business_modern_wood_frame_bg.gif);
Bon : background-image:url(images/nth_theme_business_modern_wood_frame_bg.gif);
Note : l'url de l'image dans les parenthèse, est a spécifier relativement à ton fichier css.
C'est a dire que si ton fichier css est déjà dans le répertoire "images" (ce qui ne serait pas logique, certe), il ne faut mettre que : url(nth_....gif)
Bon : background-image:url(images/nth_theme_business_modern_wood_frame_bg.gif);
Note : l'url de l'image dans les parenthèse, est a spécifier relativement à ton fichier css.
C'est a dire que si ton fichier css est déjà dans le répertoire "images" (ce qui ne serait pas logique, certe), il ne faut mettre que : url(nth_....gif)
- co7645
- WRInaute passionné

- Messages: 1032
- Inscription: 18 Fév 2006
Je suis vraiment désolé...mais je n' y parviens pas....pourtant pour le reste (h1 par exemple cela fonctionne)...mais le fond est toujours blanc.
J' ai mis l' image en question à la racine du site avec ce code :
body {background-image:url(nth_theme_business_modern_wood_frame_bg.gif);font-size:11px; font-family:Arial; }
a:link { color:#000000; text-decoration:none; font-weight:normal; }
a:hover { color:#999999; text-decoration:none; font-weight:normal; }
a:visited { color:#000000; text-decoration:none; font-weight:normal; }
a:active { color:#000000; text-decoration:none; font-weight:normal; }
h1 { font-family:Arial; font-size:13px; color:#000000; text-decoration:none; font-weight:bold; }
h2 { font-family:Arial; font-size:12px; color:#000000; text-decoration:none; font-weight:bold; }
HELP
J' ai mis l' image en question à la racine du site avec ce code :
body {background-image:url(nth_theme_business_modern_wood_frame_bg.gif);font-size:11px; font-family:Arial; }
a:link { color:#000000; text-decoration:none; font-weight:normal; }
a:hover { color:#999999; text-decoration:none; font-weight:normal; }
a:visited { color:#000000; text-decoration:none; font-weight:normal; }
a:active { color:#000000; text-decoration:none; font-weight:normal; }
h1 { font-family:Arial; font-size:13px; color:#000000; text-decoration:none; font-weight:bold; }
h2 { font-family:Arial; font-size:12px; color:#000000; text-decoration:none; font-weight:bold; }
HELP
-

Mth - WRInaute occasionnel

- Messages: 367
- Inscription: 24 Aoû 2005
Moi je tentereais ça en laissant l'image dans le fichier "images"
body {background: url(http://www.gitemontsaintmichel.com/imag ... ame_bg.gif);font-size:11px; font-family:Arial; }
Si l'image doit se répéter sur toute la page :
body {background: url(http://www.gitemontsaintmichel.com/imag ... ame_bg.gif);font-size:11px; font-family:Arial; repeat; }
body {background: url(http://www.gitemontsaintmichel.com/imag ... ame_bg.gif);font-size:11px; font-family:Arial; }
Si l'image doit se répéter sur toute la page :
body {background: url(http://www.gitemontsaintmichel.com/imag ... ame_bg.gif);font-size:11px; font-family:Arial; repeat; }
Dernière édition par Mth le Lun Juin 05, 2006 20:00, édité 2 fois.
14 messages
• Page 1 sur 1
Lectures recommandées sur ce thème :
Qui est en ligne
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 2 invités


