As a novice delving into a project in the MEAN stack, I'm encountering inconsistent HTML previews. When I view it independently versus running it from the project, the display varies.
Here's the intended appearance (in standalone preview):
And this is how it looks when built within the project:
I desire the partial view to be positioned below the header and fill up the remaining screen space.
Shown below is my index.html
:
<!doctype html> <html ng-app="angulobby"> <head> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <link rel="stylesheet" type="css/text" href="./stylesheets/style.css"> <script src="https://use.fontawesome.com/7222f42b52.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-route.js"></script> <script src="/socket.io/socket.io.js"></script> ... <p>Next, we have the partial view <code>home.html
:<html> <head> <link rel="stylesheet" type="text/css" href="../stylesheets/style.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> </head> <body> <div id="container" class="container-fluid" data-ng-controller="homeController"> ... <p>Lastly, let's take a look at <code>styles.css
:html, body{ width: 100%; height: 100%; } .box { display: flex; flex-flow: column; height: 100%; } ...