Skip to content

Commit dae7d64

Browse files
committed
Remove scrollbars due to overflow by adding box-sizing: border-box
Requested in Maps4HTML/MapML.js#350.
1 parent db9cd9d commit dae7d64

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

examples/Section5-1.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@
66
<title>Requirements - Section 5.1.html</title>
77
<script type="module" src="../dist/mapml-viewer.js"></script>
88
<style>
9-
html,
10-
body {
11-
height: 100%;
12-
}
13-
* {
14-
margin: 0;
15-
padding: 0;
16-
}
9+
html,
10+
body {
11+
height: 100%;
12+
}
13+
body {
14+
margin: 0;
15+
}
16+
*, ::before, ::after {
17+
box-sizing: border-box;
18+
}
1719

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

0 commit comments

Comments
 (0)