2010-08-25 6 views

Répondre

10

Utilisez CSS à la fois pour spécifier votre image d'arrière-plan (background est très obsolète) et pour désactiver la répétition.

Mettre dans votre section head:

<style type="text/css"> 
body 
{ 
    background-image: url(images/bg_wide.gif); 
    background-repeat: no-repeat; 
} 
</style> 

Il y a aussi une propriété pour positionner l'image d'arrière-plan (background-position).

more on defining backgrounds at w3schools

+0

merci! la solution est background-repeat: repeat-x – Ronny

2

Vous pouvez utiliser ce style et de garder l'image de répéter:

body { 
    background:url(images/bg_wide.gif) no-repeat; 
} 

Le no-repeat gardera l'image de répéter.

Questions connexes