[Vuejs]-Bootstrap4 Form Example is Rendering Incorrectly

2๐Ÿ‘

โœ…

if you are looking for a simple solution for a static website or basic stuff
all you need to do is to add this cdn to your html


    <link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">

and this bootstrap javascript cdn for dropdowns and navbar

<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>

and the jQuery cdn

check this link for a live preview

https://stackblitz.com/edit/web-platform-ss4nvu?file=script.js

basicly this

    <link rel="stylesheet" type="text/css"
        href="https://stackpath.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://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>

at the head tag ๐Ÿ™‚

but i see that you mentioned vue js in the tags you are looking for an answer so i also recommend on going throw the website of vueJS bootstrap which is amazing if you have any trouble i am available also in gmail ๐Ÿ™‚

dolev146@gmail.com

2๐Ÿ‘

You forgot to link css files from bootstrap.

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

copy paste it in the head of your html

also read the get started documentation: bootstrap get started doc

Leave a comment