Hacer Responsive formulario básico
Publicado por Richard (2 intervenciones) el 20/02/2021 03:35:02
Hola, me pueden ayudar hacer responsive mi formulario?? por favor
o si me explican el concepto para ver si puedo hacerlo yo :(

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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Consultar Ordenes</title>
<link rel="stylesheet" href="bootstraplog/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="assetslog/signup-form.css" type="text/css" />
<link href="distlog/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
<script src="assetslog/Validaciones.js" type="text/javascript"></script>
<style>
body {
background-color: #dadada;
}
</style>
<style>
/* The switch - the box around the slider */
.switch {
position: relative;
display: inline-block;
width: 64px;
height: 25px;
}
/* Hide default HTML checkbox */
.switch input {
opacity: 0;
width: 0;
height: 0;
}
/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 20px;
width: 20px;
left: 14px;
bottom: 3px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #2196F3;
}
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 15px;
}
.slider.round:before {
border-radius: 50%;
}
</style>
</head>
<body>
<?php
$mensajeError = NULL;
if (filter_input_array(INPUT_GET))
{
$error = strtoupper(filter_input(INPUT_GET, 'Error', FILTER_SANITIZE_STRING));
if (!empty($error))
{
$mensajeError = 'Debe ingresar Documento o Email para buscar la orden';
}
}
?>
<div class="container" align="center">
<div class="container" align="left"><img src="logo.png" width="105" height="84" alt="logo"/></div>
<h3 class="mt-5"> Consulta rápida de órdenes</h3></div>
<div class="row">
<div class="col-12 col-md-12">
<!-- Contenido -->
<div class="signup-form-container">
<form name="index" method="post" action="pages/tables/data.php">
<div class="form-header" align="center">
<h3 class="form-title" align="center"><i class="fa fa-user"></i>
Seleccionar búsqueda</h3>
</div>
<div class="form-body">
<i class="fas fa-id-card fa-lg"></i> <label class="switch"><input type="radio" id="Criterio" name="Criterio" value="Documento" checked="checked" /><span class="slider round"></span>
</label> RUC, Cédula o DNI
<br><hr>
<i class="fas fa-envelope-open-text fa-lg"></i> <label class="switch"><input type="radio" id="Criterio" name="Criterio" value="Email"/><span class="slider round"></span>
</label> Email </div>
<div class="input-group mb-3">
<div class="input-group-prepend"> <span class="input-group-text" id="basic-addon1"><span class="glyphicon glyphicon-check"></span></span> </div>
<input type="text" id="itBuscar" name="itBuscar" required="required" class="form-control" placeholder="Ingresar RUC, Cédula, DNI o Email" maxlength="100"/>
</div>
<div class="form-footer">
<button type="submit" class="btn btn-primary" id="btnBuscar" onmousedown="return ValidarFormulario();"/> <span class="glyphicon glyphicon-search"></span> Buscar </button>
</div>
</div>
<div align="center">
<label id="labelMensajeError" style="color: red; "><?php echo !empty($mensajeError)?$mensajeError:'';?></label>
</div>
</form>
</div>
<!-- Fin Contenido -->
</div>
</div>
<!-- Fin row -->
</div>
</body>
</html>
Valora esta pregunta


0