aboutsummaryrefslogtreecommitdiff
path: root/109/index.md
blob: 3e2a2d8fba8169c878800e31c821d524b6fa67c7 (plain)
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
Title: Main element doesn't behave like a div
Author: rodarima
Created: Sun, 31 Mar 2024 21:06:02 +0000
State: closed

```html
<!DOCTYPE html>
<html>
  <head>
    <title>Main should behave like a div</title>
  </head>
  <body>
    <div style="margin-left: 20em; background: lightgreen">
      div
    </div>
    <main style="margin-left: 20em; background: lightgreen">
      main
    </main>
    <header style="margin-left: 20em; background: lightgreen">
      header
    </header>
  </body>
</html>
```
Renders:
![kk](https://github.com/dillo-browser/dillo/assets/3866127/aacfe266-a7bb-4e54-9bef-d3cfdd6dc4a6)