I'm have to rotate my body and make it full height and full width.
Well, I used the vh metric and worked perfect for width, but height still not fitting well...
I had to rotate 90 degrees but the height and width still referring the same orientation as not rotate.
Ps: I added .red
to be easier to see where the div/body
is fitting.
All I want is the rotated content fit the whole page/size of available the window
EDIT
I just found out that there is an way of doing it by computing sin
and cos
,
I wonder if the SASS can do it ? In an more automate/lazy way ?
Please refer the snippet:
div.ccw {
transform: rotate(-90deg) translateY(0px);
-webkit-transform: rotate(-90deg) translateY(0px);
-moz-transform: rotate(-90deg) translateY(0px);
-o-transform: rotate(-90deg) translateY(0px);
-ms-transform: rotate(-90deg) translateY(0px);
}
.main-screen{
width:100vh;
height:100vh;
}
.red{
background-color:red;
}
#footer{
}
#footer {
position: fixed;
bottom: 0;
width: 100%;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
<div ng-view="" class="red container-fluid main-screen ng-scope ccw"><div class="error row ng-scope">
<div class="col-xs-12 text-center">
<div class="padding-3percent logo col-xs-12 text-center">
<img class="img-responsive center-block" width="60px" src="https://raw.githubusercontent.com/plu/JPSimulatorHacks/master/Data/test.png">
</div>
<div class="padding-2percent logo col-xs-12 text-center">
<img width="60px" class="img-responsive center-block" src="https://raw.githubusercontent.com/plu/JPSimulatorHacks/master/Data/test.png">
</div>
<div class="text-center col-xs-12">
<h1>TEST</h1>
</div>
<div class="text-center col-xs-12">
<strong>Test test Test test Test test Test test Test test</strong>
</div>
<div id="footer">
<div class="text-center col-xs-12">
<p>
Test test Test testTest test Test test Test test Test test Test test Test test Test test Test test Test testTest testTest test
</p>
</div>
<div class="text-right col-xs-12">
<span>counter</span>
</div>
</div>
</div>
</div></div>
Many Thanks!