Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Sample Windows 8 Page Control demonstrating how to style the back button.
<!DOCTYPE html>
<meta charset="utf-8" />
<!-- WinJS references -->
<link href="//Microsoft.WinJS.1.0/css/ui-light.css" rel="stylesheet" />
<script src="//Microsoft.WinJS.1.0/js/base.js"></script>
<script src="//Microsoft.WinJS.1.0/js/ui.js"></script>
<link href="/css/default.css" rel="stylesheet" />
<link href="/pages/home/home.css" rel="stylesheet" />
<script src="/pages/home/home.js"></script>
<style type="text/css">
.color-blue-dark {
color: #2b5797;
.border-thick-blue-dark {
border-color: #2b5797 !important;
border-style: solid;
border-width: 2px;
.win-backbutton:hover, .win-backbutton:hover:active {
background-clip: border-box;
background-color: #eff4ff;
<!-- The content that will be loaded and displayed. -->
<div class="fragment homepage">
<header aria-label="Header content" role="banner">
<button class="win-backbutton color-blue-dark border-thick-blue-dark" aria-label="Back" disabled type="button"></button>
<h1 class="titlearea win-type-ellipsis">
<span class="pagetitle">Welcome to cleverly_win_cogat7and8!</span>
<section aria-label="Main content" role="main">
<p>Content goes here.</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment