0

I have used bootstrap alerts class but it's view is - enter image description here

Instead of -

enter image description here

I have added the refrence under head tag -

<script src="Scripts/bootstrap.min.js"></script>

But still it is not working. Please help as I am new for the webpage.

3
  • 2
    You need to reference CSS, not just JS. Commented Sep 25, 2017 at 19:04
  • 3
    Adding to what SLaks said, reference the CSS with a link tag in your header, and reference the javascript with a script tag at the bottom of your body. You will also need to reference jQuery before the Bootstrap script reference. Commented Sep 25, 2017 at 19:06
  • 1
    Thanks... I added the bootstrap css refrence. Commented Sep 25, 2017 at 19:24

1 Answer 1

5

Add the bootstrap CSS to your stylesheet references.

With a CDN:

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

Alternatively referencing the source from your own server:

<link rel="stylesheet" type="text/css" href="*PATH_TO_YOUR_STYLE_FOLDER*/bootstrap.min.css">
Sign up to request clarification or add additional context in comments.

2 Comments

I'm sure you could put a little more effort into your answer. Seeing is you posted this as an answer not a comment
Thanks... I added the bootstrap css refrence.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.