CONNEXION
  • RetourJeux
    • Tests
    • Soluces
    • Previews
    • Sorties
    • Hit Parade
    • Les + attendus
    • Tous les Jeux
  • RetourActu
    • Culture Geek
    • Astuces
    • Réalité Virtuelle
    • Rétrogaming
    • Toutes les actus
  • RetourHigh-Tech
    • Actus JVTECH
    • Bons plans
    • Tutoriels
    • Tests produits High-Tech
    • Guides d'achat High-Tech
    • JVTECH
  • RetourVidéos
    • A la une
    • Gaming Live
    • Vidéos Tests
    • Vidéos Previews
    • Gameplay
    • Trailers
    • Chroniques
    • Replay Web TV
    • Toutes les vidéos
  • RetourForums
    • Hardware PC
    • PS5
    • Switch
    • Xbox Series
    • Overwatch 2
    • FUT 23
    • League of Legends
    • Genshin Impact
    • Tous les Forums
  • PC
  • PS5
  • Xbox Series
  • PS4
  • One
  • Switch
  • Wii U
  • iOS
  • Android
  • MMO
  • RPG
  • FPS
En ce moment Genshin Impact Valhalla Breath of the wild Animal Crossing GTA 5 Red dead 2
Etoile Abonnement RSS

Sujet : [help] bouton css et html

DébutPage précedente
1
Page suivantePage suivante
jons99 jons99
MP
Niveau 6
22 octobre 2014 à 17:53:10

salut a vous
je voudrait mettre (en vertical) plusieurs bouton dans mon site mais problème j'y arrive pas, je comprend pas comment on insert le css des bouton dans le html
mes codes ci-dessous:

CSS:
body
{
background-image:url(./photo/fond1.jpg);
}

h1
{
text-align: center;
}

p
{
font-size: 16px;
font-style: normal;
text-decoration: underline;
text-indent: 25px;
margin-top:55px;
}

.bouton1
{
width: 260px;
height: 93px;
backround: url('imgetp1.png');
transition: 700ms;
}

.bouton2
{
width: 260px;
height: 93px;
backround: url('imgetp2.png');
transition: 700ms;
}

.bouton3
{
width: 260px;
height: 93px;
backround: url('imgetp3.png');
transition: 700ms;
}

.bouton4
{
width: 260px;
height: 93px;
backround: url('imgetp4.png');
transition: 700ms;
}

.bouton5
{
width: 260px;
height: 93px;
backround: url('imgetp5.png');
transition: 700ms;
}

.bouton:hover
{
width: 260px;
height: 93px;
background: url('imgetp1hov');
}

HTML:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="style.css" />
<title>page d'acceuil</title>
</head>

<body>
<h1><img src="./photo/photologo.png"></h1>

<p>Mis a jour le 22/10/2014</p>

<div class="bouton1">

<a href="index2">bouton</a>
</div>

</body>
</html>

njn[g]fdfdfd]fd njn[g]fdfdfd]fd
MP
Niveau 5
22 octobre 2014 à 18:27:10

<button class="bouton1">Bouton</bouton>
<button class="bouton2">Bouton</bouton>
<button class="bouton3">Bouton</bouton>
<button class="bouton4">Bouton</bouton>
<button class="bouton5">Bouton</bouton>

button {
display:block;
}

njn[g]fdfdfd]fd njn[g]fdfdfd]fd
MP
Niveau 5
22 octobre 2014 à 18:34:05

et autant refaire tout :

button {
width: 260px;
height: 93px;
transition: 700ms;
}

tu peux tout mettre dans une classe commune. :oui:

jons99 jons99
MP
Niveau 6
22 octobre 2014 à 21:39:34

c'est bien beau d'avoir un bouton qui est fait comme ça mais
ce que je veut c'est faire un bouton avec 2 images de format png

a tu une soluce pour ça stp ??

DébutPage précedente
1
Page suivantePage suivante
Répondre
Prévisu
?
Victime de harcèlement en ligne : comment réagir ?
Infos 0 connecté(s)

Gestion du forum

Modérateurs : Thymotep
Contacter les modérateurs - Règles du forum

Sujets à ne pas manquer

La vidéo du moment