Click here to Skip to main content
15,891,431 members
Articles / Web Development / HTML

Customized Twitter Bootstrap sites in WebMatrix

Rate me:
Please Sign up or sign in to vote.
5.00/5 (3 votes)
16 Dec 2012CPOL4 min read 43.2K   1.1K   16  
How to create and customize a Twitter Bootstrap site with WebMatrix 2 and OrangeBits Compiler
<!DOCTYPE html>
<html>
<head>
    <title>Twitter Bootstrap Example</title>
    <link href="bootstrap/css/bootstrap.css" rel="stylesheet" media="screen">
</head>
    <body>
        
        <!-- The main container. -->
        <div class="container">
            
            <!-- A menu bar. -->
            <div class="navbar">
                <div class="navbar-inner">
                    <a class="brand" href="#">Twitter Bootstrap Example</a>
                    <ul class="nav">
                        <li class="active"><a href="Default.cshtml">Home</a></li>
                        <li><a href="About.cshtml">About</a></li>
                        <li><a href="Contact.cshtml">Contact</a></li>
                    </ul>
                </div>
            </div>

            <h1>Twitter Bootstrap</h1>
            <p>This is the first example!</p>
            
            <!-- Example row, with four columns. -->
            <div class="row">
                <div class="span3">
                    <h2>Apple</h2>
                    <p>The apple is the pomaceous fruit of the apple tree, species Malus domestica in the rose family.</p>
                </div>
                <div class="span3">
                    <h2>Orange</h2>
                    <p>The orange (specifically, the sweet orange) is the fruit of the citrus Citrus × ​sinensis, species Citrus × ​sinensis in the family Rutaceae.</p>
                </div>
                <div class="span3">
                    <h2>Peach</h2>
                    <p>The peach, Prunus persica, is a deciduous tree, native to China and South Asia, where it was first cultivated.</p>
                </div>
                <div class="span3">
                    <h2>Pear</h2>
                    <p>The pear is any of several tree and shrub species of genus Pyrus, in the family Rosaceae.</p>
                </div>
            </div>
            
            <hr />
            
             <!-- Another row, with two columns. -->
            <div class="row">
                <div class="span6">
                    <h2>Cat</h2>
                    <p>The domestic cat (Felis catus or Felis silvestris catus) is a small, usually furry, domesticated, carnivorous mammal.</p>
                </div>
                <div class="span6">
                    <h2>Dog</h2>
                    <p>The domestic dog (Canis lupus familiaris), is a subspecies of the gray wolf (Canis lupus), a member of the Canidae family of the mammalian order Carnivora.</p>
                </div>
            </div>
            
            <hr />
            
            <p><small>Created by Dave Kerr as an example of the Twitter Bootstrap Framework.</small></p>

        </div>
        
        <!-- Include jQuery and Boostrap. -->
        <script src="http://code.jquery.com/jquery-latest.js"></script>
        <script src="bootstrap/js/bootstrap.min.js"></script>

    </body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Chief Technology Officer Federfarma Pavia
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions