Horizontal scroll-bar going beyond container width - html

I'm working on a landing page.
In the third section, I will have content with a horizontal scroll bar. I already have the desired scrolling behavior, but I'd like the scroll bar to respect the container of the page.
Here's my current code:
.page {
overflow: hidden;
}
.container {
width: 60%;
margin: auto;
}
h3 {
background: #dbd0bc;
color: #000;
padding: 1rem;
}
.hs {
list-style: none;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
width: 100%;
padding: 0 20% 2rem 20%;
}
.hs .item {
display: inline-block;
width: 17rem;
background: #dbd0bc;
text-align: center;
margin-right: 0.75rem;
height: 10rem;
white-space: normal;
}
::-webkit-scrollbar {
height: 15px;
}
::-webkit-scrollbar-track-piece {
background-color: gray;
}
::-webkit-scrollbar-thumb:horizontal {
background-color: red;
border-radius: 2rem;
}
<div class="page">
<div class="container">
<h3>Section 1</h3>
</div>
<div class="container">
<h3>Section 2</h3>
</div>
<ul class="hs">
<li class="item">section 3</li>
<li class="item">section 3</li>
<li class="item">section 3</li>
<li class="item">section 3</li>
<li class="item">section 3</li>
<li class="item">section 3</li>
<li class="item">section 3</li>
<li class="item">section 3</li>
</ul>
<div class="container">
<h3>Section 4</h3>
</div>
</div>
Here are two examples of what I'd like this to be like:
https://prnt.sc/n0o0k7
https://prnt.sc/n0o21r

I'm not really sure I understand the question. The third section wouldn't be styled correctly in the container because you didn't wrap it in the container. I moved the container class's styles to the page class's style and removed all the containers to achieve your desired effect.
.page {
overflow: hidden;
width: 60%;
margin: auto;
}
h3 {
background: #dbd0bc;
color: #000;
padding: 1rem;
}
.hs {
list-style: none;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
width: 100%;
padding: 0 20% 2rem 20%;
}
.hs .item {
display: inline-block;
width: 17rem;
background: #dbd0bc;
text-align: center;
margin-right: 0.75rem;
height: 10rem;
white-space: normal;
}
::-webkit-scrollbar {
height: 15px;
}
::-webkit-scrollbar-track-piece {
background-color: gray;
}
::-webkit-scrollbar-thumb:horizontal {
background-color: red;
border-radius: 2rem;
}
<div class="page">
<h3>Section 1</h3>
<h3>Section 2</h3>
<ul class="hs">
<li class="item">section 3</li>
<li class="item">section 3</li>
<li class="item">section 3</li>
<li class="item">section 3</li>
<li class="item">section 3</li>
<li class="item">section 3</li>
<li class="item">section 3</li>
<li class="item">section 3</li>
</ul>
<h3>Section 4</h3>
</div>

Related

CSS Translated parent's sibbling hides child

I'm using ngx-datatable. It uses transform: translate3d to position every row using its height. The problem comes when I put a dropdown inside and the element below it hides the dropdown's options. As shown in the follow images:
My ngx-datatable configuration:
<ngx-datatable #chemicalResistanceGrid class="table-striped"
[cssClasses]="..."
[rows]="..."
[count]="..."
[limit]="..."
[rowHeight]="68"
[headerHeight]="40"
[footerHeight]="40"
[scrollbarV]="true"
[scrollbarH]="true"
[columns]="gridColumns"
[rowClass]="getRowClass"
[columnMode]="'force'">
<!---->
</ngx-datatable>
These examples are simpler simulations of my problem:
If I set the row elements with a sequenced z-index, the child elements are shown like:
row 0 element: (z-index: 100)
row 1 element: (z-index: 99)
This solution is not an option. I want the same result as the z-index approach and the ideal solution needs to use CSS as well. This is how the layout need to look like.
This is the entire simulation code and its snippet:
ul {
background: #b6ff00;
border-radius: 0 0 10px 10px;
}
li {
list-style: none;
}
section.datatable-body {
width: 1252px;
height: 420px;
overflow-y: auto;
overflow-x: auto;
position: relative;
z-index: 10;
display: block;
box-sizing: border-box;
font-size: 13px;
line-height: 1.42857143;
color: #333;
}
section.datatable-selection {
box-sizing: border-box;
}
section.datatable-scroller {
height: 5576px;
width: 1650px;
display: inline-block;
white-space: nowrap;
box-sizing: border-box;
box-sizing: border-box;
}
section.datatable-row-wrapper {
position: absolute;
background-color: #f9f9f9;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
flex-direction: column;
box-sizing: border-box;
white-space: nowrap;
font-size: 13px;
line-height: 1.42857143;
color: #333;
box-sizing: border-box;
}
section.datatable-body-row {
height: 68px;
width: 1650px;
white-space: nowrap;
outline: none;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
flex-direction: row;
box-sizing: border-box;
direction: ltr;
}
section.datatable-row-center {
width: 1650px;
display: flex;
position: relative;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
flex-direction: row;
flex-flow: row;
box-sizing: border-box;
white-space: nowrap;
}
section.datatable-body-cell {
width: 150px;
min-width: 200px;
max-width: 600px;
height: 68px;
/**/
white-space: nowrap;
text-overflow: ellipsis;
overflow: visible !important;
overflow-x: visible !important;
overflow-y: visible !important;
vertical-align: top;
display: inline-block;
line-height: 1.625;
text-align: left;
padding: .8rem 1.2rem .5rem;
transition: width .3s ease;
border-bottom: 1px solid #ddd;
border-right: 1px solid #ddd;
box-sizing: border-box;
-webkit-box-direction: normal;
}
section.datatable-body-cell-label {
box-sizing: border-box;
white-space: nowrap;
display: block;
line-height: 1.625;
text-align: left;
-webkit-box-direction: normal;
}
section.form-horizontal {
box-sizing: border-box;
margin: 0;
outline: 0;
color: #666;
position: relative;
display: block;
line-height: 1.625;
white-space: nowrap;
text-align: left;
-webkit-box-direction: normal;
}
section.ngx-select {
-webkit-border-radius: 0 !important;
-webkit-box-shadow: none !important;
margin: 0;
padding: 0;
display: block;
width: 100%;
height: 32px;
box-sizing: border-box;
border: 1px solid #ccc;
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
section.ngx-select-dropdown {
box-sizing: border-box;
margin: 0;
padding: 0;
display: block !important;
position: relative;
text-align: left;
}
section.ul {
width: 100%;
height: auto;
max-height: 200px;
overflow-x: hidden;
margin-top: 0;
position: absolute;
border: 1px solid red;
border-radius: 4px 4px;
bottom: 5px;
animation-name: flipInX;
animation-fill-mode: both;
box-sizing: border-box;
margin: 0;
padding: 0;
top: 100%;
left: 0;
z-index: 1000;
float: left;
min-width: 160px;
list-style: none;
font-size: 13px;
text-align: left;
}
.li {
box-sizing: border-box;
margin: 0;
padding: 0;
display: list-item;
text-align: -webkit-match-parent;
border: 1px solid red;
}
<html>
<head>
</head>
<body>
<section class="datatable-body">
<section class="datatable-selection">
<section class="datatable-scroller">
<section class="datatable-row-wrapper" style="transform: translate3d(0px, 0px, 0px);backface-visibility: hidden;">
<section class="datatable-body-row">
<section class="datatable-row-center">
<section class="datatable-body-cell">
<section class="datatable-body-cell-label">
<section class="form-horizontal">
<section class="ngx-select">
<section class="ngx-select-dropdown">
<ul id="ul">
<li class="li">Test 1</li>
<li class="li">Test 2</li>
<li class="li">Test 3</li>
<li class="li">Test 4</li>
<li class="li">Test 5</li>
<li class="li">Test 6</li>
<li class="li">Test 7</li>
<li class="li">Test 8</li>
<li class="li">Test 9</li>
<li class="li">Test 0</li>
</ul>
</section>
</section>
</section>
</section>
</section>
</section>
</section>
</section>
<section class="datatable-row-wrapper" style="transform: translate3d(0px, 68px, 0px);backface-visibility: hidden;">
<section class="datatable-body-row">
<section class="datatable-row-center">
<section class="datatable-body-cell">
<section class="datatable-body-cell-label">
<section class="form-horizontal">
<section class="ngx-select">
<section class="ngx-select-dropdown">
<ul id="ul">
<li class="li">Test 1</li>
<li class="li">Test 2</li>
<li class="li">Test 3</li>
<li class="li">Test 4</li>
<li class="li">Test 5</li>
<li class="li">Test 6</li>
<li class="li">Test 7</li>
<li class="li">Test 8</li>
<li class="li">Test 9</li>
<li class="li">Test 0</li>
</ul>
</section>
</section>
</section>
</section>
</section>
</section>
</section>
</section>
<section class="datatable-row-wrapper" style="transform: translate3d(0px, 136px, 0px);backface-visibility: hidden;">
<section class="datatable-body-row">
<section class="datatable-row-center">
<section class="datatable-body-cell">
<section class="datatable-body-cell-label">
<section class="form-horizontal">
<section class="ngx-select">
<section class="ngx-select-dropdown">
<ul id="ul">
<li class="li">Test 1</li>
<li class="li">Test 2</li>
<li class="li">Test 3</li>
<li class="li">Test 4</li>
<li class="li">Test 5</li>
<li class="li">Test 6</li>
<li class="li">Test 7</li>
<li class="li">Test 8</li>
<li class="li">Test 9</li>
<li class="li">Test 0</li>
</ul>
</section>
</section>
</section>
</section>
</section>
</section>
</section>
</section>
</section>
</section>
</section>
</body>
</html>
After some research I found the problem. The key point here is the transform element(transform:translate3d(0px, Xpx, 0px)). There is a note in W3school which enforce to use transform-style along with transformation. So, where ever I using transform I MUST use a desired transform-style mechanism; in this case preserve-3d which mean the children of the transformed element will keeps its own position. The other thing I noticed is the z-index doesn't works for the children of the transformed element. What was worked for me was the transform: translateZ(1px).
So:
database-scroller -> added transform-style: preserve-3d
datatable-row-wrapper -> keeps its transform:translate3d(0px, xxpx, 0px)
datatable-body-row.editMode(when it's in editMode)-> added transform: translateZ(1px);
$(function () {
$('.toggle-dropdown').on('click', function () {
var drop = $(this).parents('.container').find('.element');
var row = $(this).parents('.container').find('.row');
$(row).toggleClass('editMode');
$(this).html($(row).hasClass('editMode') ? '↑' : '↓');
});
});
section.wrapper {
position: relative;
transform-style: preserve-3d;
}
section.container {
position: absolute;
transform-style: preserve-3d;
height: 40px;
width: 100%;
background-color: aliceblue;
z-index: 1000;
}
div.cell {
width: 200px;
padding: 10px;
vertical-align: top;
display: inline-block;
position: relative;
}
div.editMode {
transform: translateZ(10px);
}
ul.element {
background-color: beige;
list-style: none;
z-index: 1000;
margin: 0;
padding-left: 5px;
display: none;
transition: visibility 0s, opacity 0.5s linear;
}
.editMode ul.element {
display: block;
}
.icon {
padding: 2px 5px;
background-color: gray;
border: 1px solid gray;
border-radius: 5px;
cursor: pointer;
}
<html>
<head>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
</head>
<body>
<section class="wrapper">
<section id="row1" class="container" style="transform:translate3d(0px, 0px, 0px)">
<div class="row">
<div class="cell">
<input type="text" /><span class="toggle-dropdown icon">↓</span>
<ul class="element">
<li>element 1</li>
<li>element 2</li>
<li>element 3</li>
</ul>
</div>
<div class="cell">
<input type="text" />
</div>
<div class="cell">
<input type="text" />
</div>
</div>
</section>
<section id="row2" class="container" style="transform:translate3d(0px, 40px, 0px)">
<div class="row">
<div class="cell">
<input type="text" /><span class="toggle-dropdown icon">↓</span>
<ul class="element">
<li>element 1</li>
<li>element 2</li>
<li>element 3</li>
</ul>
</div>
<div class="cell">
<input type="text" />
</div>
<div class="cell">
<input type="text" />
</div>
</div>
</section>
<section id="row3" class="container" style="transform:translate3d(0px, 80px, 0px)">
<div class="row">
<div class="cell">
<input type="text" /><span class="toggle-dropdown icon">↓</span>
<ul class="element">
<li>element 1</li>
<li>element 2</li>
<li>element 3</li>
</ul>
</div>
<div class="cell">
<input type="text" />
</div>
<div class="cell">
<input type="text" />
</div>
</div>
</section>
<section id="row4" class="container" style="transform:translate3d(0px, 120px, 0px)">
<div class="row">
<div class="cell">
<input type="text" /><span class="toggle-dropdown icon">↓</span>
<ul class="element">
<li>element 1</li>
<li>element 2</li>
<li>element 3</li>
</ul>
</div>
<div class="cell">
<input type="text" />
</div>
<div class="cell">
<input type="text" />
</div>
</div>
</section>
</section>
</body>
</html>

When the parent is float:left and the child is fixed, how to set position?

I would like to change the picture above as shown below.
Please refer to the code below.
I'm wondering how to solve this problem without 'padding-left, margin-left'
.nav-wrap {
position: relative;
overflow: hidden;
top: -2px;
width: 33.33333333333333%;
float: left;
}
.sidebar-nav {
position: fixed;
width: 380px;
padding-top: 95px;
padding-bottom: 95px;
padding-left: 20px;
padding-right: 20px;
height: 100%;
float: left;
clear: both;
overflow-y: hidden;
display: block;
background: transparent;
background: rgba(0, 0, 0, 0.28);
z-index: 10;
}
.content-wrap {
width: 66.66666666666666%;
background: #fff;
float: left;
height: 100%;
position: relative;
padding: 45px 50px;
overflow: hidden;
}
<div class="nav-wrap">
<div class="sidebar-nav">
</div>
</div>
<div class="content-wrap">
</div>
Try this instead - I've created a barebone for you without bootstrap. You can start from here.
<ul id="mainWrapper">
<li class="left-wrap">
<div class="menuList">
<ul>
<li>Menu 1</li>
<li>Menu 2</li>
<li>Menu 3</li>
<li>Menu 4</li>
</ul>
</div>
</li>
<li class="right-wrap">
Content here...
</li>
</ul>

Make div take the remaining height after another div take its height below it

I am trying to create a sidebar where year is displayed in the bottom and list of links on the top.
The year text should stay in the bottom and its height should be auto not absolute values (like 30px, 1em, 10% etc.)
The top links should remain inside the remaining height (screen height - height of year text).
When the links height exceeds, scrolling should be provided.
I have successfully achieved the first 2, but not the 3rd. When the links height exceeds, the year hides from the screen.
I have used table to achieve what I specified. (I could have used display: table; just being lazy here)
I want to achieve this using only CSS, no JavaScript.
/* Some styles */
.side-bar table {
color: #fff;
}
.side-bar-links {
background-color: #48c;
padding-top: 15px;
}
.side-bar-links li:nth-child(even) {
background-color: rgba(0,0,0,0.1);
}
.side-bar-links a {
display: block;
color: #fff;
padding: 5px 15px;
text-decoration: none;
}
.side-bar-links a:hover {
background-color: rgba(0,0,0,0.2);
}
.year {
background-color: #338;
font-size: 36px;
font-weight: 700;
padding: 5px 15px;
}
/* Positioning */
.side-bar {
position: fixed;
left: 0;
top: 0;
bottom: 0;
}
.side-bar table {
height: 100%;
table-layout: fixed;
}
.side-bar table tr:last-child td {
height: 1px;
}
.side-bar table td {
vertical-align: baseline;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="side-bar">
<table>
<tr>
<td class="side-bar-links">
<ul class="list-unstyled">
<li>> Link 1</li>
<li>> Link 2</li>
<li>> Link 3</li>
<li>> Link 4</li>
<li>> Link 5</li>
</ul>
</td>
</tr>
<tr>
<td class="year">
<b>2016</b>
</td>
</tr>
</table>
</div>
Try the following CSS and see if it works:
.side-bar {
position: fixed;
left: 0;
top: 0;
bottom: 0;
overflow: scroll;
overflow-y: auto;
overflow-x: auto;
}
You have to have something that determines the maximum height your container is going to be. Then you can handle overflow. I've modified your code a bit to change to a div layout and set up the overflow on the container. I believe this is what you're after.
The example in the snippet has a fixed height, so you may need to open it in full screen to see the whole example ('Run code snippet' - then 'full page').
You could also use percentages for heights to avoid using a fixed height.
/* Some styles */
.side-bar-links {
height: 300px;
max-height: 400px;
overflow:hidden;
background-color: #48c;
padding-top: 15px;
overflow-y: auto;
}
.side-bar-links li:nth-child(even) {
background-color: rgba(0,0,0,0.1);
}
.side-bar-links a {
display: block;
color: #fff;
padding: 5px 15px;
text-decoration: none;
}
.side-bar-links a:hover {
background-color: rgba(0,0,0,0.2);
}
.year {
background-color: #338;
font-size: 36px;
font-weight: 700;
padding: 5px 15px;
color: #fff;
}
/* Positioning */
.side-bar {
position: fixed;
left: 0;
top: 0;
bottom: 0;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="side-bar">
<div class="side-bar-links">
<ul class="list-unstyled">
<li>> Link 1</li>
<li>> Link 2</li>
<li>> Link 3</li>
<li>> Link 4</li>
<li>> Link 5</li>
<li>> Link 1</li>
<li>> Link 2</li>
<li>> Link 3</li>
<li>> Link 4</li>
<li>> Link 5</li>
<li>> Link 1</li>
<li>> Link 2</li>
<li>> Link 3</li>
<li>> Link 4</li>
<li>> Link 5</li>
<li>> Link 1</li>
<li>> Link 2</li>
<li>> Link 3</li>
<li>> Link 4</li>
<li>> Link 5</li>
</ul>
</div>
<div class="year">
<b>2016</b>
</div>
</div>
Try the following:
<html><head>
<title>Page Title</title>
<style>
/* Some styles */
.side-bar table {
color: #fff;
}
.side-bar-links {
background-color: #48c;
padding-top: 15px;
}
.side-bar-links li:nth-child(even) {
background-color: rgba(0,0,0,0.1);
}
.side-bar-links a {
display: block;
color: #fff;
padding: 5px 15px;
text-decoration: none;
}
.side-bar-links a:hover {
background-color: rgba(0,0,0,0.2);
}
.year {
background-color: #338;
font-size: 36px;
font-weight: 700;
padding: 5px 15px;
position: fixed;
bottom: 0px;
height: auto !Important;
width: auto;
}
/* Positioning */
.side-bar {
position: fixed;
left: 0;
top: 0;
bottom: 0;
overflow: scroll;
overflow-y: auto;
overflow-x: auto;
height: calc(100% - 60px);
}
.side-bar tr:first-child{height:100%;}
.side-bar table {
height: 100%;
table-layout: fixed;
width:110px;
}
.side-bar table tr:last-child td {
height: 1px;
}
.side-bar table td {
vertical-align: baseline;
}
</style>
</head>
<body>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<div class="side-bar">
<table>
<tbody><tr>
<td class="side-bar-links">
<ul class="list-unstyled">
<li>> Link 1</li>
<li>> Link 2</li>
<li>> Link 3</li>
<li>> Link 4</li>
<li>> Link 5</li>
<li>> Link 5</li>
<li>> Link 5</li>
</ul>
</td>
</tr>
<tr>
<td class="year">
<b>2016</b>
</td>
</tr>
</tbody></table>
</div>
</body></html>

Flexbox Nav Dropdown Not Under Container

I am trying to use a flexbox nav menu with dropdowns for some menus. For some reason, on hover, the dropdown lists are showing up to the right of the container I am hovering on. I would like for them to show below, like a normal nav menu.
Here is a codepen:
http://codepen.io/anon/pen/XbmaBY
HTML:
<nav id="nav">
<ul class="nav-flex">
<li class="nav-brand-flex">
<img src="img.png" \>
</li>
<li class="nav-link-flex nav-flex-dropdown">
Dropdown 1
<div>
<ul>
<li>Link 1</li>
<li>Link 2</li>
<li>Link 3</li>
<li>Link 4</li>
<li>Link 5</li>
<li>Link 6</li>
</ul>
</div>
</li>
<li class="nav-link-flex nav-flex-dropdown">
Dropdown 2
<div>
<ul>
<li>Link 1</li>
<li>Link 2</li>
<li>Link 3</li>
<li>Link 4</li>
<li>Link 5</li>
</ul>
</div>
</li>
<li class="nav-link-flex">
Regular 1
</li>
<li class="nav-link-flex">
Regular 2
</li>
<li class="nav-link-flex">
Regular 3
</li>
</ul>
</nav>
Sass:
.nav-flex {
display: flex;
list-style-type: none;
padding: 0;
background-color: #58575f;
li {
justify-content: center;
a {
align-self: center;
color: white;
font-weight: 300;
font-family: 'Open Sans', sans-serif;
letter-spacing: .4px;
}
}
#media (max-width: 760px) {
padding-top: 0;
flex-wrap: nowrap;
-webkit-flex-wrap: nowrap;
flex-direction: column;
-webkit-flex-direction: column;
background-color: #f6f6f6;
}
}
.nav-link-flex {
display: flex;
padding: 0 12.5px;
position: relative;
#media (max-width: 760px) {
width: 90%;
background-color: #494949;
border-radius: 20px;
margin-bottom: 10px;
margin-left: auto;
margin-right: auto;
font-size: 22px;
padding: 10px;
}
&:hover {
background-color: white;
a {
color: black;
text-decoration: none;
&+ div {
display: block;
}
}
}
a {
&+ div {
border-radius: 0 0 2px 2px;
box-shadow: 0 3px 1px rgba(0,0,0,.05);
display: none;
font-size: 1rem;
position: absolute;
width: 195px;
}
}
}
.nav-brand-flex {
margin-right: auto;
display: flex;
padding: 5px 0;
a {
display: flex;
img {
height: 35px;
align-self: center;
}
}
#media (max-width: 760px) {
margin: 0;
background-color: #494949;
width: 100%;
border-radius: 0;
font-size: 36px;
padding: 10px 0;
margin-bottom: 10px;
}
}
Any help would be greatly appreciated, because I cannot figure out why they are going to the right instead of below.
This happens because the default value of flex-direction is flex-direction: row. You want to override this, by adding flex-direction: column; to .nav-link-flex. So, it should be:
.nav-link-flex {
display: flex;
padding: 0 12.5px;
position: relative;
flex-direction: column; // <-- add this line in your scss
...
By way of example I've added this in to a fork of your pen.

DIVs will not render past browser viewport but text will

http://jsfiddle.net/Dmb7v/ :
<body>
<div class="Shell">
<div class="Main">
<div class="Header">
<p>Name Surname</p>
<p>G123456789</p>
</div>
<div class="Content">
<p>VIEW NAVIGATION</p>
<ul>
<li>Menu Item 1</li>
<li>Menu Item 2</li>
<li>Menu Item 3</li>
<li>Menu Item 4</li>
<li>Menu Item 5</li>
<li>Menu Item 6</li>
<li>Menu Item 7</li>
<li>Menu Item 8</li>
<li>Menu Item 9</li>
<li>Menu Item 10</li>
</ul>
</div>
</div>
<div class="Pane">
<div>
<img src="http://findicons.com/files/icons/2711/free_icons_for_windows8_metro/128/beer.png" height="48px" width="48px">
</div>
<div>
<span class="PaneText">My Team's Requests / Managed by my direct reports / Processes Completed / Processes Completed / Processes Completed / Processes Completed</span>
</div>
</div>
</div>
</body>
And CSS:
* {
padding: 0;
margin : 0;
box-sizing: border-box;
}
html, body {
height: 100%;
}
.Shell {
height: 100%;
}
.Main {
width: 332px;
height: 100%;
background-color: #ffcccc;
border: 2px solid red;
float: left;
}
.Header {
width: 332px;
height: 56px;
background-color: #ccccff;
border: 2px solid blue;
}
.Content {
width: 332px;
background-color: #ccffcc;
border: 2px solid green;
}
.Pane {
height: 100%;
width: 48px;
background-color: #ffffcc;
border: 2px solid yellow;
overflow: visible;
float: left;
}
.PaneText {
-webkit-transform: rotate(90deg);
font-size: 30px;
white-space: nowrap;
display: block;
height: 100%;
width: 48px;
}
I've built a very basic menu on the left side of the screen. I will have text vertically run down the right side of the menu. The text is rendered in full but the DIV it's inside will not.
What am I doing wrong? I've found all sorts of suggestions but none work. Suggestions such as this:
html, body {
min-height:100%;
height:auto;
height:100%;
}
None of them worked. What am I doing wrong?