bonjour a tous
je sis sous boostrap et j utilise
le module des cards

je souhaiterais que lorsque l écran arrive a une certaine dimension que pars exemple
ce bouton
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
<a href="#" class="btn btn-primary">Go somewhere</a>

se place sous la class body

j ai essaye ce code mais sans succès

Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<style>
 
 
@media (min-width: 576px)  {
  .a{
        visibility: hidden;
    }
        .b{
        visibility: visible;
    }
}
 
</style>
    <title>Hello, world!</title>
  </head>
  <body>
  <div class ="a">
    <div class="card" style="width: 18rem;">
  <img src="..." class="card-img-top" alt="...">
  <div class="card-body">
    <h5 class="card-title">Card title</h5>
    <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
    <a href="#" class="btn btn-primary">Go somewhere</a>
  </div>
</div>
</div>
  <div class ="b">
    <div class="card" style="width: 18rem;">
  <img src="..." class="card-img-top" alt="...">
  <div class="card-body">
   <a href="#" class="btn btn-primary">Go somewhere</a>
    <h5 class="card-title">Card title</h5>
    <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
 
  </div>
</div>
</div>