try to fix header on webkit browsers
This commit is contained in:
parent
afdb07bec3
commit
ab28aadbf4
|
@ -5,6 +5,7 @@ class DDHeader extends HTMLElement {
|
|||
|
||||
connectedCallback() {
|
||||
this.innerHTML = `
|
||||
<header>
|
||||
<img id="headerimg" src="/dairydemon.jpg" alt="cow with glowing eyes" />
|
||||
<div id="headermain">
|
||||
<p><a id="homelink" href="/">dairydemon.net</a></p>
|
||||
|
@ -15,8 +16,9 @@ class DDHeader extends HTMLElement {
|
|||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define("dd-header", DDHeader, { extends: "header" });
|
||||
customElements.define("dd-header", DDHeader);
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<header is="dd-header"></header>
|
||||
<dd-header></dd-header>
|
||||
<main>
|
||||
<article>
|
||||
<h1>Hi.</h1>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<header is="dd-header"></header>
|
||||
<dd-header></dd-header>
|
||||
<main>
|
||||
<aside>
|
||||
<ol>
|
||||
|
|
|
@ -11,12 +11,15 @@ body {
|
|||
align-items: center;
|
||||
}
|
||||
|
||||
header {
|
||||
dd-header {
|
||||
margin: 5px;
|
||||
width: 80ch;
|
||||
max-width: 100%;
|
||||
height: 110px;
|
||||
box-shadow: 5px 5px 5px;
|
||||
}
|
||||
|
||||
header {
|
||||
height: 110px;
|
||||
flex: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
Loading…
Reference in New Issue