4 <meta name="viewport" content="initial-scale=1">
5 <title>Designing Websites for iPhone X: Before</title>
6 <link rel="stylesheet" type="text/css" href="style.css">
9 background-color: #729fcf;
13 display: inline-block;
18 border-right: 3px solid rgba(255, 255, 255, 0.5);
21 text-decoration: none;
26 #topBar a:last-child {
37 background-color: #3465a4;
49 text-decoration: none;
78 <div id="topBar"><a href="#">Blog</a><a href="#">Photos</a><a href="#">Projects</a></div>
81 <h2>two hours ago</h2>
83 <p>Welcome to my sample blog!</p>
84 <p>This post is here to help demonstrate how easy it is to take an existing site, along with full-width bars and fixed-position elements, and make it take full advantage of iPhone X's edge-to-edge display.</p>
85 <p>The actual post describing how to adopt the new API is over on the <a href="#">WebKit blog</a>.</p>
86 <p>There, you will learn all about new WebKit features, including <code>viewport-fit</code>, <code>constant()</code>, safe area insets, and <code>min()</code> and <code>max()</code>.</p>
87 <p>I hope that it helps you adopt these new features in your websites.</p>
89 <div id="bottomBar"><a href="#">About Me</a><a href="#">Contact</a><a href="#">Site Map</a></div>