So I'm currently still new to angular as a whole so my CSS knowledge isn't too large, I've attempted to fill out the div for a custom sidebar but unless I add some kind of content in the div it doesn't actually fill out to the min-height: 100%;
I started with height: 100%,
and I've tried height: auto;
as well as removing the padding and margin.
leads to my router-outlet which leads to my SideBar component
Styles.css
html {
min-height: 100%;
overflow: hidden;
}
body {
min-height: 100%;
background-image: url('assets/Images/HomeBack.jpg');
background-repeat:no-repeat;
background-position: right top;
background-size: 539px 360px;
overflow: hidden;
}
Index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>DadWebsite</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<app-root></app-root>
</body>
</html>
SideBarTest.component.html
<div class="page-continer">
<div class="sidebar">
<p>HELLO</p>
</div>
</div>
SideBarTest.component.css
.page-container
{
min-height: 100%;
}
.sidebar
{
min-height: 100%;
width: 300px;
background: orange;
}
SideBarTest.component.ts
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-SideBarTest',
templateUrl: './SideBarTest.component.html',
styleUrls: ['./SideBarTest.component.css']
})
export class SideBarTestComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}