Twitter Bootstrap as UI-kit

image1366-570x194.png

 

HTML and CSS are not foreign words for me but I regret, I’m not a Web designer – I see myself as a webdeveloper. But at least a dressy side is a must. But thank good there are some ready “Systems”.

Twitter Bootstrap

Twitter Bootstrap is a Toolkit for every kind of Web applications. It includes some basic styles and also some special styles for Buttons, charts, forms and so on. After all it is a smart Grid-System. Compared to other CSS Grid Frameworks Twitter Bootstrap seems to be more “round” and it offers some basic elements.

The best way is to take a look online. You will find a source on GitHub.

Technics behind it

Twitter Bootstrap is using Less to build the CSS and it also contains ready Javascripts for some little UI gimmicks like Popups, Dropdowns, Dialogs, …

The embedding

All you have to do is to embed the Styles (the Less files plus the Less Javascript files or the ready CSS). An example which you will also found on the GitHub examples:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Bootstrap, from Twitter</title>
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Le styles -->
    <link href="../bootstrap.css" rel="stylesheet">
    <style type="text/css">
      /* Override some defaults */
      html, body {
        background-color: #eee;
      }
      body {
        padding-top: 40px; /* 40px to make the container go all the way to the bottom of the topbar */
      }
      .container > footer p {
        text-align: center; /* center align it with the container */
      }
      .container {
        width: 820px; /* downsize our container to make the content feel a bit tighter and more cohesive. NOTE: this removes two full columns from the grid, meaning you only go to 14 columns and not 16. */
      }

      /* The white background content wrapper */
      .content {
        background-color: #fff;
        padding: 20px;
        margin: 0 -20px; /* negative indent the amount of the padding to maintain the grid system */
        -webkit-border-radius: 0 0 6px 6px;
           -moz-border-radius: 0 0 6px 6px;
                border-radius: 0 0 6px 6px;
        -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15);
           -moz-box-shadow: 0 1px 2px rgba(0,0,0,.15);
                box-shadow: 0 1px 2px rgba(0,0,0,.15);
      }

      /* Page header tweaks */
      .page-header {
        background-color: #f5f5f5;
        padding: 20px 20px 10px;
        margin: -20px -20px 20px;
      }

      /* Styles you shouldn't keep as they are for displaying this base example only */
      .content .span10,
      .content .span4 {
        min-height: 500px;
      }
      /* Give a quick and non-cross-browser friendly divider */
      .content .span4 {
        margin-left: 0;
        padding-left: 19px;
        border-left: 1px solid #eee;
      }

      .topbar .btn {
        border: 0;
      }

    </style>

    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="images/favicon.ico">
    <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
    <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
    <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
  </head>

  <body>

    <div class="topbar">
      <div class="fill">
        <div class="container">
          <a class="brand" href="#">Project name</a>
          <ul class="nav">
            <li class="active"><a href="#">Home</a></li>
            <li><a href="#about">About</a></li>
            <li><a href="#contact">Contact</a></li>
          </ul>
          <form action="" class="pull-right">
            <input class="input-small" type="text" placeholder="Username">
            <input class="input-small" type="password" placeholder="Password">
            <button class="btn" type="submit">Sign in</button>
          </form>
        </div>
      </div>
    </div>

    <div class="container">

      <div class="content">
        <div class="page-header">
          <h1>Page name <small>Supporting text or tagline</small></h1>
        </div>
        <div class="row">
          <div class="span10">
            <h2>Main content</h2>
          </div>
          <div class="span4">
            <h3>Secondary content</h3>
          </div>
        </div>
      </div>

      <footer>
        <p>&copy; Company 2011</p>
      </footer>

    </div> <!-- /container -->

  </body>
</html>

It creates this side:

image1367

Roadmap

There is also a Roadmap for this Project which is cultivated by some developers on Twitter:

image1368

Result

Twitter Bootstrap seems to be a great entrance for non-designer with many nice elements. The only think I’ve missed is a version for Mobile websites – I’m looking forward to it.

Download and everything else on GitHub.

Read more

Fix: the value ‚x‘ is not valid for Foo in ASP.NET MVC

image1441.png

  To get files into the MVC Controller Modelbinding from MVC is a clever method. But in fact it is a little bit complicated to set the error message if the connection failed. Example: public class RegisterModel { … [Required] [DataType(DataType.EmailAddress)] [Display(Name = "Email address")] public string Email { get; set; } [Required] [Display(Name = …

Read more

You Tube API – recall Video Meta files with .NET

  A loooong time ago I’ve blogged about how to access to You Tube with the Google Data APIs. After all that time there are several new ways how to recall files. Google offers You Tube a “simple” surface. If you prefer to do low-Level HTTP calls it is also possible. Aim: I want the …

Read more

MacBook Pro for .NET Developer – useful ore just pretty?

image1426-570x194.png

  I own a MacBook Pro (from 2010) for about a year now and because I’ve used to think about this Question since I have it, I’m going to blog about my experience now. My Notebook Configurations MacBook Pro April 2010 – 2,66 Intel Core i7 – 8GB RAM – 15’’ Glossy Display – Intel …

Read more

Windows Azure SDK for node.js & co – on GitHub!

image1424.png

  Like if assumed a while ago Microsoft does everything to place Windows Azure as “the” Cloud-Platform for several Languages & Frameworks. In the past Microsoft was famous for pushing their own Platforms and Languages into the market seems like changing their strategy and is now pushing for example node.js and publishes SDKs on GitHub. …

Read more

oEmbed – 3rd Party Content (Video/Pictures/…) embedded on your own side

image1392-570x194_thumb.png

    To embed content from other sides like YouTube, Flickr, Slideshare seems to be very difficult at the first sight especially if you want to make it “automatically” from the URL. How the embedding works depends on the content – on YouTube and so on you need a video player for Slideshare and so …

Read more

Fix: „There is a duplicate ‚uri‘ section defined“ on DotNetOpenAuth

  A little hint about what to do if you receive this error. Following setup for me: – Asp.NET MVC project including .NET Framework 4.0 – DotNetOpenAuth via NuGet installed – The Webprojects also used “Cassini” During the deployment to an ordinary IIS I received this error message: “There is a duplicate ‘uri’ section defined” …

Read more

Avoid „Duplicate Content“ with IIS7 – Domain with or without www

If you are the owner of a domain like “foobar.de” you need to make a decision: with or without www? With or without www? It’s not so easy to find an answer to this question. I prefer the www option because it’s possible to set a C-Name for a “www” Subdomain. The C-Name is important …

Read more

Icons in the „Metro Look“ for free – Monochrom/Minimalist Icons

image1397-570x194.png

  At the moment it is in to create simple but elegant designs. A good example is the metro design used by Microsoft in numerous products. Of course you need to find a fitting icon first so here is something I want to recommend to you because they are for free and you can use …

Read more

NoSQL for Windows Server, Azure & SQL Server with Apache Hadoop

image1377-570x194.png

  Microsoft promoted the Roadmap about the subject “Big Data” lately at the SQLPass. The Apache Projekt Hadoop will be a main part of this program. Hadoop? Mhh….? Hadoop is a Framework or a System which includes different components. The aim is to conduct and analyze huge (and also unsorted) files. The project includes these …

Read more

Recent Posts

  • image1366-570x194.png
    Twitter Bootstrap as UI-kit

      HTML and CSS are not foreign words for me but I regret, I’m not a Web designer – I see myself as a webdeveloper. But at least a dressy side is a must. But thank good there are some ready “Systems”. Twitter Bootstrap Twitter Bootstrap is a Toolkit for every kind of Web applications. ...

  • image1441.png
    Fix: the value ‚x‘ is not valid for Foo in ASP.NET MVC

      To get files into the MVC Controller Modelbinding from MVC is a clever method. But in fact it is a little bit complicated to set the error message if the connection failed. Example: public class RegisterModel { ... [Required] [DataType(DataType.EmailAddress)] [Display(Name = "Email address")] public string Email { get; set; } [Required] [Display(Name = ...

  • You Tube API – recall Video Meta files with .NET

      A loooong time ago I’ve blogged about how to access to You Tube with the Google Data APIs. After all that time there are several new ways how to recall files. Google offers You Tube a “simple” surface. If you prefer to do low-Level HTTP calls it is also possible. Aim: I want the ...

  • image1426-570x194.png
    MacBook Pro for .NET Developer – useful ore just pretty?

      I own a MacBook Pro (from 2010) for about a year now and because I’ve used to think about this Question since I have it, I’m going to blog about my experience now. My Notebook Configurations MacBook Pro April 2010 - 2,66 Intel Core i7 - 8GB RAM - 15’’ Glossy Display - Intel ...

  • image1424.png
    Windows Azure SDK for node.js & co – on GitHub!

      Like if assumed a while ago Microsoft does everything to place Windows Azure as “the” Cloud-Platform for several Languages & Frameworks. In the past Microsoft was famous for pushing their own Platforms and Languages into the market seems like changing their strategy and is now pushing for example node.js and publishes SDKs on GitHub. ...

Support us