Skip to content

Commit 1bf72cc

Browse files
committed
Force exact dimensions with !important rules to eliminate white space
1 parent 966395f commit 1bf72cc

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

assets/images/og-image-template.html

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html style="margin: 0; padding: 0; width: 1200px; height: 630px; overflow: hidden;">
33
<head>
44
<meta charset="UTF-8">
55
<style>
6-
html, body { margin: 0; padding: 0; box-sizing: border-box; }
76
* { margin: 0; padding: 0; box-sizing: border-box; }
8-
html { height: 630px; width: 1200px; }
7+
html {
8+
margin: 0 !important;
9+
padding: 0 !important;
10+
width: 1200px !important;
11+
height: 630px !important;
12+
overflow: hidden !important;
13+
background: #0D0D0D;
14+
}
915
body {
10-
width: 1200px;
11-
height: 630px;
16+
margin: 0 !important;
17+
padding: 0 !important;
18+
width: 1200px !important;
19+
height: 630px !important;
1220
background: linear-gradient(145deg, #0D0D0D 0%, #1A1A1A 50%, #0D0D0D 100%);
1321
display: flex;
1422
align-items: center;
1523
justify-content: center;
1624
font-family: 'Inter', -apple-system, sans-serif;
1725
position: relative;
18-
overflow: hidden;
26+
overflow: hidden !important;
1927
}
2028
body::before {
2129
content: '';

assets/images/og-image.png

66.7 KB
Loading

0 commit comments

Comments
 (0)