1
<title>Calculadora de Juros compostos</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA=="
crossorigin="anonymous" />
<link rel="stylesheet" href="calculadoras.css">
<script>
<body>
<div class="container-fluid d-flex justify-content-center">
<form method="post" action="juros-compostos_v2.php">
<label for="basic-url">Investimento Inicial</label>
<div class="input-group mb-3 rounded-0">
<div class="input-group-prepend">
<span class="input-group-text rounded-0 bg-warning"><strong>R$</strong></span>
</div>
<input class="form-control currency border border-warning border-top-0 border-right-0 border-left-0"
type="number" step="0.01" name="investimento_inicial" min="0.00" max="9999999999.00" required>
</div>
<label for="basic-url">Investimento Mensal</label>
<div class="input-group mb-3 rounded-0">
<div class="input-group-prepend">
<span class="input-group-text rounded-0 bg-warning"><strong>R$</strong></span>
</div>
<input class="form-control currency border border-warning border-top-0 border-right-0 border-left-0"
type="number" step="0.01" name="investimento_mensal" min="0.00" max="9999999999.00" required>
</div>
<label for="basic-url">Por quanto tempo?</label>
<div class="input-group mb-3 rounded-0">
<div class="input-group-prepend">
<span class="input-group-text rounded-0 bg-warning"><i class="far fa-clock"></i></span>
</div>
<input class="form-control currency border border-warning border-top-0 border-right-0 border-left-0"
type="number" name="meses" min="1" placeholder="Meses" required>
</div>
<label for="basic-url">Juros ao Mês</label>
<div class="input-group mb-3 rounded-0">
<input class="form-control currency border border-warning border-top-0 border-right-0 border-left-0"
type="number" step="0.01" name="taxa_de_juros" min="0.01" max="9999999999.00" required>
<div class="input-group-prepend">
<span class="input-group-text rounded-0 bg-warning"><i class="fas fa-percent"></i></span>
</div>
</div>
<button type="submit" class="btn btn-warning">Calcular</button>
</form>
</div>
Try adding a
style="widht: 100%"
inside the inputs...– Web Developer
added in input and also tried via css, but unfortunately it didn’t work.
– Guilherme Silva