|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#11 | |
|
New Member
![]() Join Date: Jul 2012
Posts: 8
|
Quote:
This is easily achieved by a table, IF each td element contains exactly one paragraph. Can it be done without a table? |
|
|
|
|
|
|
#12 | |
|
Diamond Member
![]() Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,092
|
Quote:
jQuery overkill? Just for this perhaps. I see your point. However, there could well be other aspects of his site that he has not mentioned that would require js. In which case he is in prime standing. Plus, pulling the core from a CDN really doesn't create that much overhead (~60K).
__________________
John Darling Graphic / Web Designer / Front-end Developer SmarterTools Inc. (877) 357-6278 www.smartertools.com jsdarling.com |
|
|
|
|
|
|
#13 | |
|
Diamond Member
![]() Join Date: May 2012
Location: Blackpool
Posts: 1,280
|
Quote:
That sounds like the WORST possible example of a readable or usable layout I can imagine. There could exist a situation there where a "column" may be only one or two words wide!!! It is going against the natural reading habit/methods/teaching/rules of ALMOST EVERY LANGUAGE ON THE PLANET!!!!! Now if your documents are going to be Tategaki, then fine go ahead, but if you want them to be read in ANY western language, I would rethink the idea.
__________________
When the mind is enlightened, the spirit is free and the body matters not. |
|
|
|
|
|
|
#14 | |
|
Diamond Member
![]() Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,092
|
Quote:
OP: The problem with your table solution is, like Chris stated, if you have a paragraph large enough it will crush the other two cells to a state that is barely readable. Meaning, you need to set width on the cells to limit this. Hence, back to my example.
__________________
John Darling Graphic / Web Designer / Front-end Developer SmarterTools Inc. (877) 357-6278 www.smartertools.com jsdarling.com |
|
|
|
|
|
|
#15 | |
|
Diamond Member
![]() Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,092
|
Quote:
__________________
John Darling Graphic / Web Designer / Front-end Developer SmarterTools Inc. (877) 357-6278 www.smartertools.com jsdarling.com |
|
|
|
|
|
|
#16 | |
|
New Member
![]() Join Date: Jul 2012
Posts: 8
|
Quote:
If I set the column width to a constant, then in some cases one column will be very high, and will spill over to a new page, that will contain only the continuation of that column. I think it would be more convenient to make the column wider, so that it will all fit in a single page. |
|
|
|
|
|
|
#17 |
|
Diamond Member
![]() Join Date: May 2012
Location: Blackpool
Posts: 1,280
|
Laying out for print documents and designing layouts for web documents are different disciplines and making a dogs breakfast of your web layout should NEVER take precedence over a usable HTML document layout
If you need a different print layout using CSS, then have a different style sheet for print using the media="print" attribute value. You can also use media queries to define different rule sets. ALSO page-break rules can be used in print style rulesets, whereas they do not have any effect in screen rulesets.
__________________
When the mind is enlightened, the spirit is free and the body matters not. |
|
|
|
|
|
#18 | |
|
Diamond Member
![]() Join Date: Oct 2008
Location: Arizona, USA
Posts: 1,092
|
Quote:
__________________
John Darling Graphic / Web Designer / Front-end Developer SmarterTools Inc. (877) 357-6278 www.smartertools.com jsdarling.com |
|
|
|
|
|
|
#19 | |
|
New Member
![]() Join Date: Jul 2012
Posts: 8
|
Quote:
So, my original question pertains to this print-specific CSS: what should I put in that CSS, in order to have the column widths adjust to their content, and achieve minimum height? |
|
|
|
|
|
|
#20 |
|
Diamond Member
![]() Join Date: May 2012
Location: Blackpool
Posts: 1,280
|
This is off the cuff thinking and not actually tried and tested.
Give the html and body elements 100% height to make them fit to the content length rather than stopping at the viewport height/length. Set display: table; with a 100% width and height on a "wrapper" element. Set display: table-row on a child element of "wrapper" with 100% height, Put your "columns" as child elements of this inner element, with 100% height and display: table-cell;. That should be a starting point at least. Not forgetting to allow for padding and margins in the 100% length/height calculations.
__________________
When the mind is enlightened, the spirit is free and the body matters not. |
|
|
|
![]() |
| Tags |
| columns, css, dynamic, width |
| Thread Tools | |
| Display Modes | |
|
|