1

I downloaded twitter bootstrap and most of the css seems to be working, but I cannot get the buttons to render correctly. I am just getting default buttons. Below is some test html I am using:

<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href="http://twitter.github.com/bootstrap/assets/css/bootstrap-responsive.css" rel="stylesheet">
        <link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet">
    </head>
    <body>
        <div class = "container">
            <form>
                <button type = "button" class = "bnt bnt-primary"> My Button </button>
            </form>
        </div>
    </body>
</html> 

Why am I not getting the styling for the buttons?

1
  • try this <input type="button" class="btn" value="Here" /> Commented Jun 14, 2013 at 12:14

2 Answers 2

2

You're swapping btn with bnt, which won't render.

Try:

<body>
    <div class = "container">
        <form>
            <button class="btn btn-primary"> My Button </button>
        </form>
    </div>
</body>

You can see the result here: http://jsfiddle.net/YuURs/

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

Comments

1

You wrote bnt, it's btn

Try this :

<button type = "button" class = "btn btn-primary"> My Button </button>

Comments

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.