2

I´ve downloaded tweeter bootstrap (not the bootststrap for MVC) to a brand new MVC4 project, but I can´t make it work.

No errors in browser´s F12 window.

Here is my _layout code:

<!DOCTYPE html>
<html>
  <head>
    <title>Bootstrap 101 Template</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
    <link href="@Url.Content("~/Content/bootstrap-theme.min.css")" rel="stylesheet" media="screen">
  </head>
  <body>
    <script src="@Url.Content("~/Scripts/jquery-2.0.3.min.js")"></script>
    <script src="@Url.Content("~/Scripts/bootstrap.min.js")"></script>
    <h1>Hello, world!</h1>
      @RenderBody()
  </body>
</html>

When the screen pops up, I get a normal Hello, world! body (no bootstrap fonts). My system has the following files:

enter image description here

What may I be doing wrong?

0

1 Answer 1

6

You only included the bootstrap-theme.min.css file and not the base bootstrap.css file. (though you did include the bootstrap.js file)

Sign up to request clarification or add additional context in comments.

1 Comment

Ups!!! That´s what 10 hours of coding does with your brains.... Thanks Andrew for that!

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.