Show sourcecode
The following files exists in this folder. Click to view.
include_1.php
include_2_bottom.php
include_2_rnd_nr.php
include_2_top.php
index.php
ovn_in1.php
ovn_in2-4_sid1.php
ovn_in2-4_sid2.php
ovn_in2-4_sid3.php
ovn_in2_sid1.php
ovn_in2_sid2.php
ovn_in2_sid3.php
include_2_top.php
208 lines UTF-8 Windows (CRLF)
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<?php
error_reporting(-1); // Report all type of errors
ini_set('display_errors', 1); // Display all errors
ini_set('output_buffering', 0); // Do not buffer outputs, write directly
echo('
<!DOCTYPE HTML>
<html lang="sv">
<head>
<title>S_' . $sid_nr . '</title>
<meta charset="utf-8">
<style>
body {
font-size: 14px;
width: 100%;
font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
display: flex;
flex-direction: row;
justify-content: center;
}
.fruktlådan {
margin: auto;
display: grid;
grid-template-areas:
"header header aside"
"section article aside"
"footer footer footer"
;
grid-template-columns: 200px 400px 200px;
grid-template-rows: 100px auto 100px;
}
header {
border: 1px solid black;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
grid-area: header;
font-size: 2em;
color: white;
font-weight: bold;
background-color: crimson;
}
.navigering {
border: 1px solid black;
grid-area: section;
background-color: chartreuse;
display: flex;
flex-direction: column;
justify-content: flex-start;
padding: 10px;
}
nav {
font: black;
background-color: white;
border: 1px solid black;
padding: 10px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
aside {
border: 1px solid black;
grid-area: aside;
background-color: yellow;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
row-gap: 23px;
}
footer {
border: 1px solid black;
grid-area: footer;
background-color: grey;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
article {
border: 1px solid black;
grid-area: article;
padding: 5px;
}
.rubrik1 {
font-size: 1.4em;
font-weight: bold;
}
.rubrik2 {
font-size: 1.8em;
font-weight: bold;
}
.rubrik3 {
font-size: 1.2em;
font-weight: bold;
}
.stortext {
font-size: 3em;
font-weight: bold;
}
.reklam {
background-color: white;
border: 2px solid red;
}
aside>div {
width: 150px;
text-align: center;
padding: 8px;
}
img {
border: 2px solid black;
width: 150px;
}
.fetstil {
font-weight: bold;
}
a{
background-color: rgb(158, 162, 166);
border: 1px solid black;
width: 152px;
margin: 1px;
text-align: center;
text-decoration: none;
color: black;
margin: 0px;
padding: 3px;
}
a:hover {
background-color: lime;
}
#nowin {
background-color: red;
font-weight: bold;
}
#navovning10 {
margin: 2px;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
}
</style>
</head>
<body>
<div class="fruktlådan">
<header>Läste fel i uppgiften men fixar snart hela layouten</header>
<section class="navigering">
<nav>
<div class="rubrik1">
Aktuella nummer
</div>
<a href="ovn_in2-4_sid1.php">1</a><br>
<a href="ovn_in2-4_sid2.php">2</a><br>
<a href="ovn_in2-4_sid3.php">3</a><br>
</nav>
<nav role="hemlis">
<div class="rubrik1">
Layout
</div>
</nav>
</section>
<aside>
<div class="rubrik2">Reklam</div>
<div class="reklam">
<span class="rubrik3">Superpris!</span>
<br>
9,90kr/kg
</div>
<div class="reklam"><span class="rubrik3">Kanonpris!</span>
<br>
0,99kr/hg
</div>
<div class="reklam">
<span class="rubrik3">Fantompris!</span>
<br>
4,95kr/<sup>1</sup>/<sub>2</sub>kr
</div>
</aside>
<footer>
<span><span class="stortext">© Harry Molin</span>20231114</span>
</footer>
<article><span class="rubrik2">Siffra: </span><br>
')
?>