-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
118 lines (101 loc) · 3.29 KB
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Victorian Title Page</title>
<style>
body {
font-family: 'Times New Roman', serif;
text-align: center;
width: 210mm; /* A4 width */
height: 297mm; /* A4 height */
margin: auto;
padding: 50px;
box-sizing: border-box;
}
h1 {
font-size: 32px;
margin-bottom: 0;
}
h2 {
font-size: 24px;
margin-top: 5px;
margin-bottom: 10px;
}
h3 {
font-size: 20px;
font-style: italic;
margin-top: 15px;
margin-bottom: 10px;
}
h4 {
font-size: 18px;
margin-top: 20px;
}
p {
font-size: 16px;
margin-top: 10px;
}
/* Line with Diamonds */
.line-with-diamonds {
position: relative;
display: flex; /* Use flexbox for centering */
align-items: center; /* Align items vertically */
justify-content: center; /* Center items horizontally */
width: 100%; /* Full width */
margin: 20px 0;
}
.line {
height: 2px; /* Line thickness */
background-color: black;
flex-grow: 1; /* Allow line to grow */
margin: 0 20px; /* Space between diamonds and line */
}
.line-with-diamonds::before,
.line-with-diamonds::after {
content: '';
position: absolute;
top: -10px; /* Adjust to vertically align diamonds */
width: 12px; /* Width for smaller diamonds */
height: 12px; /* Height for smaller diamonds */
background-color: black;
transform: rotate(45deg); /* Turn square into diamond */
}
.line-with-diamonds::before {
left: calc(50% - 32px); /* Position left diamond */
}
.line-with-diamonds::after {
left: calc(50% + 20px); /* Position right diamond */
}
.diamond-center {
display: inline-block;
width: 20px; /* Width for center diamond */
height: 20px; /* Height for center diamond */
background-color: white; /* White fill for center diamond */
border: 2px solid black; /* Black outline for center diamond */
position: relative;
top: -8px; /* Adjust to align with the line */
transform: rotate(45deg); /* Center diamond rotated */
}
</style>
</head>
<body>
<h1>Sirradran Culinary Traditions</h1>
<div class="line-with-diamonds">
<div class="line"></div>
<span class="diamond-center"></span> <!-- Center diamond -->
<div class="line"></div>
</div>
<h2>or</h2>
<h3>The Book of Sirradran Cuisines</h3>
<div class="line-with-diamonds">
<div class="line"></div>
<span class="diamond-center"></span> <!-- Center diamond -->
<div class="line"></div>
</div>
<p>All about the ...</p>
<h4>by H. H. Lee</h4>
<p>Ministry of Culture, Autokratoria Sirradra<br>T. E. 303</p>
</body>
</html>