background

background - HTML/CSS - Programmation

Marsh Posté le 22-08-2005 à 23:49:37    

voila je voudrai faire une taille fixe pour les liens de mon menus, avec un background et un a:hover que je fixe a 190px. Mais le probleme c'est que le background s'adapte a la taille du texte :(. voici mon code j'aimerais s'il vous plaits un petit coup de pouce ^^. :ange:  
 

Citation :

#menus a
   {
    width: 190px;
    color: #FFFFFF;
    background-image:url(hover.PNG);
    font-size:18px;
    text-decoration:none;
    list-style-type:none;
   }

Reply

Marsh Posté le 22-08-2005 à 23:49:37   

Reply

Marsh Posté le 23-08-2005 à 00:04:38    

j'ai rien compris à la question [:klem3i1]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 23-08-2005 à 00:10:23    

le background s'adapte au texte alors que je voudrais qu'il garde une taille fixe de 190 px, comment puije-faire ??

Reply

Marsh Posté le 23-08-2005 à 00:21:17    

kirua_sama a écrit :

le background s'adapte au texte alors que je voudrais qu'il garde une taille fixe de 190 px, comment puije-faire ??


 [:gratgrat]  
 
tu fais une image de 190px en no-repeat [:spamafote]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 23-08-2005 à 11:30:32    

c'est ce que j'ai fait mais comme je t'ai dit plus haut mon image s'adapte a la taiille du texte :(

Reply

Marsh Posté le 23-08-2005 à 11:32:28    

heuuu non, une image en background ne se resize pas [:klem3i1]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 23-08-2005 à 11:34:46    

http://greeedisland.Free.Fr ^^.
JE mens pas quand meme :)

Reply

Marsh Posté le 23-08-2005 à 11:42:01    

Salut,
 
ce n'est pas le background qui se resize, mais le lien qui par défaut est de type inline (la taille s'adapte au contenu); il te suffit de mettre un display:block; pour tes liens.

Reply

Marsh Posté le 23-08-2005 à 11:54:03    

merci ca marche impec ^^

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed