An overview of Umbootstrap, including some basic components, how use it, and more.
Be sure to have your pages set up with the latest design and development standards. That means using an HTML5 doctype and including a viewport meta tag for proper responsive behaviors. Put it all together and your pages should look like this:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<!--[if lt IE 9]>
<script src="https://cdn.jsdelivr.net/g/excanvas@r3(excanvas.compiled.js),html5shiv@3.7.3"></script>
<script src="https://cdn.jsdelivr.net/g/respond@1.4.2,rem@1.3.4"></script>
<![endif]-->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300,400,400i,700">
<link rel="stylesheet" href="//static.umbler.com/umbootstrap/themes/umbler-site/dist/css/theme.min.css">
</head>
<body>
<h1>Hello, world!</h1>
<!-- jQuery, Tether and Bootstrap JS -->
<script src="//cdn.jsdelivr.net/g/jquery@3.1.1,underscorejs@1.8.3(underscore.js),tether@1.4.0"></script>
<script src="//static.umbler.com/umbootstrap/assets/dist/js/bootstrap.min.js"></script>
<script src="//static.umbler.com/umbootstrap/themes/umbler-site/dist/js/theme.min.js"></script>
<!--[if IE 9]>
<script src="https://cdn.jsdelivr.net/g/excanvas@r3(excanvas.compiled.js),html5shiv@3.7.3"></script>
<script src="https://cdn.jsdelivr.net/g/respond@1.4.2,rem@1.3.4"></script>
<script src="https://cdn.jsdelivr.net/svg4everybody/2.1.3/svg4everybody.min.js"></script>
<script>svg4everybody();</script>
<![endif]-->
</body>
</html>
<link rel="apple-touch-icon" sizes="72x72" href="/assets/favicons/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="144x144" href="/assets/favicons/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicons/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/assets/favicons/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="96x96" href="/assets/favicons/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicons/favicon-16x16.png">
<link rel="manifest" href="/assets/favicons/manifest.json">
<meta name="msapplication-TileColor" content="#f7faff">
<meta name="msapplication-TileImage" content="/assets/favicons/ms-icon-310x310.png">
<meta name="theme-color" content="#557cf2">
For more straightforward sizing in CSS, we switch the global box-sizing
value from content-box
to border-box
. This ensures padding
does not affect the final computed width of an element, but it can cause problems with some third party software like Google Maps and Google Custom Search Engine.
On the rare occasion you need to override it, use something like the following:
.selector-for-some-widget {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
With the above snippet, nested elements—including generated content via :before
and :after
—will all inherit the specified box-sizing
for that .selector-for-some-widget
.