Skip to content

Commit

Permalink
Remove scrollbars due to overflow by adding box-sizing: border-box
Browse files Browse the repository at this point in the history
  • Loading branch information
Malvoz committed Mar 14, 2021
1 parent db9cd9d commit dae7d64
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions examples/Section5-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
<title>Requirements - Section 5.1.html</title>
<script type="module" src="../dist/mapml-viewer.js"></script>
<style>
html,
body {
height: 100%;
}
* {
margin: 0;
padding: 0;
}
html,
body {
height: 100%;
}
body {
margin: 0;
}
*, ::before, ::after {
box-sizing: border-box;
}

/* Specifying the `:defined` selector is recommended to style the map
element, such that styles don't apply when fallback content is in use
Expand Down

0 comments on commit dae7d64

Please sign in to comment.