Bonsoir,
J'ai l'impression que mes labels et inputs ne sont pas correctement centrés...
J'ai utilisé la classe "container" en BootStrap 5, mais j'ai pas l'impression que ça a fonctionné?
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
38
39
40
41
42
43
44 <!DOCTYPE html> <html lang='en'> <head> <meta charset='UTF-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <title>Document</title> <link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css' integrity='sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU' crossorigin='anonymous'> <script src='https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.min.js' integrity='sha384-skAcpIdS7UcVUC05LJ9Dxay8AXcDYfBJqt1CJ85S/CFujBsIzCIv+l9liuYLaMQ/' crossorigin='anonymous'></script> </head> <body> <div class="container pt-5 text-center"> <h1>Sélection d'un portefeuille</h1> <form> <div class="pt-5"> <div class="d-inline-flex col-md-4 col-form-label text-right"> <label for="exampleInputPassword1" class="form-label d-flex justify-content-end align-items-end pe-3" style="min-width: 240px !important">Type of account</label> <select class="form-select" style="min-width: 380px !important"> <option>All agencies</option> <option>ATH - Ath</option> <option>BAU - Baudour</option> </select> </div> </div> <div class="mt-3"> <div class="d-inline-flex col-md-4 col-form-label text-right"> <label for="exampleInputPassword1" class="form-label d-flex justify-content-end align-items-end pe-3" style="min-width: 240px !important">Type of account</label> <select class="form-select" style="min-width: 380px !important"> <option>All agencies</option> <option>ATH - Ath</option> <option>BAU - Baudour</option> </select> </div> </div> <div class='row'> <div class="col-12"> <button type="submit" class="btn btn-primary">Confirm</button> </div> </div> </form> </div> </body> </html>
Partager