Different checkbox position and radio button in internet explorer

1

I'm using Bootstrap 4 and the same form is different in IE. The image below is IE and some elements are out of order.

TheimagebelowisaGoogleChromeprintiscorrect.

<divclass="form-group col-md-2 text-center pt-3">
                            <a href="#" class="text-uppercase" style="color: #fff;"><strong>Termos de uso</strong></a>
                            <div class="form-check mt-1">
                                <input class="form-check-input" type="checkbox" id="termo_aceitacao" name="termo_aceitacao" required>
                                <label class="form-check-label" for="termo_aceitacao">
                                    Aceito
                                </label>
                            </div>
                            <button type="submit" class="btn btn-success mt-2"><strong>AVANÇAR</strong></button>
</div>
    
asked by anonymous 29.01.2018 / 16:54

1 answer

1

Young girl I changed position:absolute to position:relative and it worked.

But notice that I've switched directly to the <input> tag using a style="" because the .form-check-input class can be used elsewhere.

The ideal would then be to do an override type:

.form-check-input.debug {
    position:relative
}

Follow Snippet, you can test on IE

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name=
 content=
>
    <title>Page Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" media="screen" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous" />
    <link rel="stylesheet" type="text/css" media="screen" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<style>
    
</style>
</head>
<body>
    
<div class="form-group col-md-2 text-center pt-3">
    <a href="#" class="text-uppercase" style="color: #fff;"><strong>Termos de uso</strong></a>
    <div class="form-check mt-1">
        <input class="form-check-input" type="checkbox" id="termo_aceitacao" name="termo_aceitacao" required style="position: relative">
        <label class="form-check-label" for="termo_aceitacao">
            Aceito
        </label>
    </div>
    <button type="submit" class="btn btn-success mt-2"><strong>AVANÇAR</strong></button>
</div>
    
    <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"></script><scriptsrc="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/js/bootstrap.bundle.min.js"></script>
</body>
</html>
    
29.01.2018 / 18:58