CONNEXION
  • RetourJeux
    • Sorties
    • Hit Parade
    • Les + populaires
    • Les + attendus
    • Soluces
    • Tous les Jeux
    • Gaming
  • RetourActu Gaming
    • News
    • Astuces
    • Tests
    • Previews
    • Toute l'actu gaming
  • RetourBons plans
    • Bons plans
    • Bons plans Smartphone
    • Bons plans Hardware
    • Bons plans Image et Son
    • Bons plans Amazon
    • Bons plans Cdiscount
    • Bons plans Decathlon
    • Bons plans Fnac
    • Tous les Bons plans
  • RetourJVTech
    • Actus High-Tech
    • Intelligence Artificielle
    • Smartphones
    • Mobilité urbaine
    • Hardware
    • Image et son
    • Tutoriels
    • Tests produits High-Tech
    • Guides d'achat High-Tech
    • JVTech
  • RetourCulture
    • Actus Culture
    • Culture
  • 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 2
    • Xbox Series
    • Switch
    • Pokemon pocket
    • FC 25 Ultimate Team
    • League of Legends
    • Tous les Forums
  • PC
  • PS5
  • Xbox Series
  • Switch 2
  • PS4
  • One
  • Switch
  • iOS
  • Android
  • MMO
  • RPG
  • FPS
En ce moment Genshin Impact Valhalla Breath of the wild Animal Crossing GTA 5 Red dead 2
Liste des sujets

[help] bouton css et html

jons99
jons99
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
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
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
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 ??

Sous forums
  • Aide à l'achat Mac
  • Création de sites web
  • Création de Jeux
  • Linux
  • Programmation
  • Internet
  • Steam Deck
  • Macintosh
  • Hardware
La vidéo du moment