Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <form class="needs-validation was-validated" novalidate>
    <section class="row m-auto">
        <div class="col-md-12 d-contents">
            <div class="col-12">
                <h4 class="mb-3 mt-3">Modifier mon profil</h4>
                <h5><a href="https://codepen.io/olivier49/pen/YzyjRxX" target="_blank" title="correction cp">Correction alignement code postal ici ;)</a></h5>
            </div>
            <div class="col-md-8">
                <div class="row">
                    <div class="col-md-6 mb-3">
                        <label for="nom">Nom</label>
                        <input type="text" class="form-control" id="nom" value="si je modifie j'ai un nom!" disabled>
                    </div>
                    <div class="col-md-6 mb-3">
                        <label for="prenom">Prénom</label>
                        <input type="text" class="form-control" id="prenom" value="idem que pour le nom" disabled>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-6 mb-3">
                        <label for="email">Email</label>
                        <input type="email" class="form-control" id="email" placeholder="monemail@demo.fr" required>
                        <div class="invalid-feedback">
                            Saisir une adresse email valide.
                        </div>
                    </div>
                    <div class="col-md-6 mb-3">
                        <label for="tel">Téléphone (mobile)</label>
                        <input type="email" class="form-control" id="tel" placeholder="">
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-6 mb-3">
                        <label for="adresse">Adresse</label>
                        <input type="text" class="form-control" id="adresse" placeholder="">
                        <div class="invalid-feedback">
                            Veuillez saisir votre adresse.
                        </div>
                    </div>
                    <div class="col-md-6 mb-3">
                        <label for="ville">Ville</label>
                        <input type="text" class="form-control" id="ville" placeholder="">
                        <div class="invalid-feedback">
                            Veuillez saisir votre ville.
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-md-4">
                <div class="row">
                    <div class="col-md-12 order-md-1 order-2  mb-3">
                        <label for="bio">Bio</label>
                        <textarea class="form-control" id="bio" rows="5" placeholder="Bio"></textarea>
                    </div>
                    <div class="col-md-12 order-md-2 order-1  mt-md-4 mb-3">
                        <label for="cp">Code postal</label>
                        <input type="text" class="form-control" id="cp" placeholder="Code postal">
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-8">
            <div class="row">
                <div class="col-md-6 mb-3">
                    <div class="custom-control custom-checkbox">
                        <input type="checkbox" class="custom-control-input" id="newsletter">
                        <label class="custom-control-label" for="newsletter">Je souhaite recevoir la
                            newsletter</label>
                    </div>
                </div>
                <div class="col-md-6 mb-xs-3">
                    <div class="custom-control custom-checkbox">
                        <input type="checkbox" class="custom-control-input" id="newsletterpart">
                        <label class="custom-control-label" for="newsletterpart">Je souhaite recevoir la newsletter
                            des partenaires</label>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-12 mt-3 mb-3">
            <div class="text-right">
                <button type="submit" name="valider" class="btn btn-primary" style="background-color: #5850EB">
                    Enregister les
                    smodifications
                </button>
            </div>
    </section>

</form>
              
            
!

CSS

              
                body {
    font-family: system-ui;
}
.d-contents {
    display: contents;
}
textarea {
    resize: none;
    height: 7.775rem !important;
}
@media (min-width: 768px) {
    .mt-md-4,
    .my-md-4 {
        margin-top: 1.375rem !important;
    }
}

              
            
!

JS

              
                /*
Alors c'est du bootstrap 4.5
je sui parti du formulaire exemple checkout
https://getbootstrap.com/docs/4.5/examples/checkout/
et j'ai fait ma sauce
bon on se moque pas c'est pas constructif hein ;) 
ça m'a juste permis de me rendre compte que je galère encore beaucoup même si c'est du tout cuit, m'enfin c'est comme ça ;)
Bonne journée ;)
olivier
ps: pas testé sur safari j'ai pas le genre de matos qui va avec
*/
              
            
!
999px

Console