I am looking for some guidance regarding how to create a printable newspaper-like layout using Foundation for sites. In plain CSS I can use css columns to create a two column layout where content from column 1 flows into column 2 when it needs to. I have tried using this in conjunction with Foundation for sites and it looks great on the webpage, but when I try to print the content breaks out of the columns. I am new to Foundation and would appreciate any assistance.
Asked
Active
Viewed 82 times
0
1 Answers
0
Try to use this here, btw. you can do it w/o Foundation as well. But you mentioned it, so create a XY-Grid and but ONE cell
inside, with auto
to width of 100%.
The layout with ZURB Foundation
<div class="grid-container">
<div class="grid-x">
<div class="cell auto">
<div class="inner">Lorem ipsum ...</div>
<div class="outer">Lorem ipsum (even more)</div>
</div>
</div>
</div>
The style.css
.outer {
border: 3px solid green;
}
.inner {
float: left;
border: 3px solid red;
width: 50%;
z-index: 1;
background-color: #77a8b8ab;
margin-right: 10px;
margin-bottom: 10px;
}
The 50%
forces the two columns, maybe use a breakpoint on mobile first / small devices to jump back to 100%.
My post was inspirated from SO

KargWare
- 1,746
- 3
- 22
- 35
-
Going to one cell inside the grid-x seems to work, coupling that with column: 2; designation in CSS is keeping the content from breaking out in print mode. I could not use the 2 div process you outlined since I am putting dynamic content in the div. I appreciate the help. – Allison Oct 06 '21 at 19:28
$billNum $title $title2 ($firstname $midname $lastname)
Synopsis: