Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1399 connectés 

  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Body background

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Body background

n°1242858
fourniey
Rendre au prochain
Posté le 10-11-2005 à 04:16:28  profilanswer
 

J'ai mis la commande suivante pour avoir une image de fond; il s'agit d'une photo.
 
<BODY background="c:\temp\phbourse.gif">
 
Le problème est que l'image se répète à droite et je ne veux pas cela.
 
Merci de m'aider!

mood
Publicité
Posté le 10-11-2005 à 04:16:28  profilanswer
 

n°1242879
olivthill
Posté le 10-11-2005 à 08:51:47  profilanswer
 

Il faut utiliser "no-repeat". Malheureusement <BODY background="c:\temp\phbourse.gif" no-repeat> ne marche pas.
 
Il faut définir un style pour le background dans le header :

Code :
  1. <html>
  2. <head>
  3. <style type="text/css">
  4. body {
  5.   background:url("c:\temp\phbourse.gif" ) no-repeat;
  6. }
  7. </style>
  8. </head>
  9. <body>
  10. Test
  11. </body>
  12. </html>

n°1243042
fourniey
Rendre au prochain
Posté le 10-11-2005 à 12:08:39  profilanswer
 

Merci beaucoup!


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  HTML/CSS

  Body background

 

Sujets relatifs
[Firefox] Hauteur background image qui ne s'allonge pas [edit][résolu] IE 5.5 problème avec une ancre "top" dans le body
Comment charger deux fonctions dans la balise body ?Aligner 2 éléments sur 1 même ligne & background??
backgroundTexte explicatif pour image de background.
Passer des images en backgroundbackground
Tableau et backgroundImage fixe sur mon <body Background>
Plus de sujets relatifs à : Body background


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR