Please, look at this example. I intend making horizontal layout with pure html/css, don't bother of old browsers. I made it with display: table technique. But displaying main text containers (light-yellow) became a problem. Each of this has overflow: hidden to prevent vertical scroll. Later, I intend adding some shadow effect at the bottom. Now, I want to make in, for example, 80% height with 10% margin top and bottom. But what I get is container with larger text stretching all parents container (light-green), so 80% of it became too much.
Is there any way to avoid it without javascript?
Maybe I can get text container any height, but with some margin at the bottom. I will appreciate any solution.
overflow: hiddenon content within a table cell I believe that you have to wrap that content within adivand applyoverflow:hiddento thatdiv, not the table-cell/td.div.article-content80% of screen, not 80% of parent container. I believe this can be achieved by forcing parentdiv#contentbe exactly 100% of screen, not more. But I don't know how.div.content-wrapperinsidediv.contentwhich is as table-cell. It doesn't work.