i have a simple html layout of my main page, this work finely as single
page, but when i insert it how a page of angular application the layout is
broken. In particularly my sidebar and the side content dont expand to full
height and i have try several times to fix, in index.html of angular
application i have correctly referenced my page.css.
this is my simple page :
* {
padding: 0;
margin: 0;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;}
html,
body {
height: 100%;}
body {
/*padding: 20px 0;*/
background-color: cadetblue;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;}
#Container {
width: 100%;
/* or: any fixed width that fits you */
height: 100%;
margin: 0 auto;
/*padding: 20px 0;*/
background-color: white;}
#Header {
height: 75px;
/* or: any fixed height that fits you */
background-color: #777777;
/*margin: 0 20px;*/
width: 100%;
z-index: 5;
/*width: 100%;
height: 55px;*/
position: relative;
left: 0;
top: 0;
z-index: 5;
padding-right: 30px;
/*box-shadow: 0 2px 4px 0 rgba(4, 59, 100, 1);*/}
.logo {
width: 30%;
height: 100%;
float: left;
background-color: #FFF;
background-image: url(../../resources/mylogo.png);
background-position: center;
background-size: contain;
position: relative;
z-index: 10;}
#Page {
height: calc(100% - 125px);
/* 100% - (Header.height + Footer.height) */
width: 100%;
display: table;
/*border-spacing: 20px;*/}
#SideBar {
display: table-cell;
width: 20%;
background-color: #0300FF;
color: #FFF;
height: 100%;
padding: 10px 0 30px 0;
position: relative;
overflow: hidden;}
.footer {
height: 50px;
width: 100%;
color: #FFF;
background-color: #011836;
line-height: 30px;
font-size: 13px;
padding: 0 30px;}
.version {
float: right;
/*display: table-cell;*/
vertical-align: middle;}
.main-nav {
overflow-x: hidden;
overflow-y: scroll;
top: 10px;
left: 0;
right: -17px;
bottom: 30px;
position: absolute;}
.main-nav-item {
height: 35px;
margin: 3px 0;}
.main-nav-item .nav-item {
color: #FFF;
line-height: 35px;
padding-left: 20px;}
.main-nav-item .nav-item i {
margin-right: 10px;}
.main-nav-item .nav-item label {
margin: 0;
cursor: pointer;}
.main-nav-item.active .nav-item {
border-left: 3px solid #FFF;
background-color: #011836;}
/*#Content {
display: table-cell;
background-color: #ffffff;
}*/
.main-content {
/*height: 100%;
padding-left: 300px;
padding: 0 0 30px 300px;
background-color: #EDEDED;*/
display: table-cell;
background-color: #ffffff;}
.main-content .content {
height: 100%;
width: 100%;
padding: 20px;
overflow-x: hidden;
overflow-y: auto;}
<!DOCTYPE html><html>
<head>
<meta charset="utf-8" />
<title></title></head>
<body>
<div id="Container">
<div id="Header">
<div class="logo">
</div>
</div>
<div id="Page">
<div id="SideBar">
<ul class="main-nav">
<li class="main-nav-item" ui-sref-active="active">
<a ui-sref="one">
<div class="nav-item" ui->
<i class="fa fa-sign-in"></i>
<label>One</label>
</div>
</a>
</li>
<li class="main-nav-item" ui-sref-active="active">
<a ui-sref="two">
<div class="nav-item" ui->
<i class="fa fa-sign-in"></i>
<label>Two</label>
</div>
</a>
</li>
<li class="main-nav-item" ui-sref-active="active">
<a ui-sref="three">
<div class="nav-item" ui->
<i class="fa fa-sign-in"></i>
<label>three</label>
</div>
</a>
</li>
<li class="main-nav-item" ui-sref-active="active">
<a ui-sref="four">
<div class="nav-item" ui->
<i class="fa fa-sign-in"></i>
<label>Four</label>
</div>
</a>
</li>
</ul>
</div>
<div class="main-content">
<div ui-view="main" class="content">
Content
</div>
</div>
</div>
<div class="footer">
<div class="version">Copyright ...</div>
</div>
</div></body>
</html>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.