Re: [css-d] Floating boxes with variable heights

2012-08-02 Thread Markus Ernst
Am 28.07.2012 13:58 schrieb Georg: On 28.07.2012 13:29, Markus Ernst wrote: http://www.rapid.ch/de/rapid-einachsgeraete/prospekte.html The headings here match the width of 3 image elements plus borders and the 2 margins between them. With space characters added to the margins, the width cannot

Re: [css-d] Floating boxes with variable heights

2012-07-30 Thread Boray ERIS
On Thu, Jul 26, 2012 at 12:58 PM, Markus Ernst derer...@gmx.ch wrote: Hi Something that I asked myself for years already: If you have some floating boxes, you may want them to fill the available width and then continue at a next row. Now, if these boxes do not have a fixed height, this will

Re: [css-d] Floating boxes with variable heights

2012-07-29 Thread Philippe Wittenbergh
Le 29 juil. 2012 à 14:29, David Hucklesby a écrit : In Webkit, I can only find a minimum font size setting. (Safari; Chrome)?? In Firefox, there's an additional Allow pages to choose their own fonts checkbox. Normally this is set, so I tried toggling it. No problem. Gecko and WebKit treat

Re: [css-d] Floating boxes with variable heights

2012-07-29 Thread Georg
On 29.07.2012 07:29, David Hucklesby wrote: Now you made me double-check. :) Always a good thing ... that I don't do as often as I should these days ;-) In Webkit, I can only find a minimum font size setting. (Safari; Chrome)?? Five-step font-size selection under Settings -- Show advanced

Re: [css-d] Floating boxes with variable heights

2012-07-29 Thread Philippe Wittenbergh
Le 29 juil. 2012 à 15:01, Philippe Wittenbergh a écrit : Gecko and WebKit treat 'font-size: 0' in a special way - they both respect it no matter what, just because too many webpages use this to hide text under images or something similar, I forgot what the exact argument was when Gecko

Re: [css-d] Floating boxes with variable heights

2012-07-29 Thread Georg
On 29.07.2012 11:41, Georg wrote: On 29.07.2012 07:29, David Hucklesby wrote: Now you made me double-check. :) Always a good thing ... that I don't do as often as I should these days ;-) To make my solution work we have to determine the exact width of the auto-added white-space. As

Re: [css-d] Floating boxes with variable heights

2012-07-28 Thread Markus Ernst
Am 27.07.2012 01:43 schrieb Georg: On 27.07.2012 00:46, Georg wrote: On 27.07.2012 00:18, Boray ERIS wrote: Is this a joke? Nope. It's CSS! ...an if you don't bother to test this old float-alternative at your end, here are a few examples.

Re: [css-d] Floating boxes with variable heights

2012-07-28 Thread Georg
On 28.07.2012 13:29, Markus Ernst wrote: http://www.rapid.ch/de/rapid-einachsgeraete/prospekte.html The headings here match the width of 3 image elements plus borders and the 2 margins between them. With space characters added to the margins, the width cannot be caluclated reliably anymore.

Re: [css-d] Floating boxes with variable heights

2012-07-28 Thread Philippe Wittenbergh
Le 28 juil. 2012 à 20:29, Markus Ernst a écrit : The headings here match the width of 3 image elements plus borders and the 2 margins between them. With space characters added to the margins, the width cannot be caluclated reliably anymore. Write your source code without any white-space

Re: [css-d] Floating boxes with variable heights

2012-07-28 Thread Philip TAYLOR
Philippe Wittenbergh wrote: Le 28 juil. 2012 à 20:29, Markus Ernst a écrit : The headings here match the width of 3 image elements plus borders and the 2 margins between them. With space characters added to the margins, the width cannot be caluclated reliably anymore. Write your source

Re: [css-d] Floating boxes with variable heights

2012-07-28 Thread Georg
On 28.07.2012 13:58, Georg wrote: Sort of - in a round-about way. The auto added space is approx .5em either side of an inline-block, so by subtracting 1em from margin at front-side (often means negative front-margin) and offsetting the blocks (position: relative) to line up 1em further in -

Re: [css-d] Floating boxes with variable heights

2012-07-28 Thread Philip TAYLOR
David Hucklesby wrote: You are on the right track when you talk about a container. There's another alternative that lets you retain the white-space in the HTML, which is to use a font-size of zero on some container, and restore the font-size on the paragraphs with a value other than EMs or

Re: [css-d] Floating boxes with variable heights

2012-07-28 Thread Georg
On 28.07.2012 17:48, David Hucklesby wrote: There's another alternative that lets you retain the white-space in the HTML, which is to use a font-size of zero on some container, and restore the font-size on the paragraphs with a value other than EMs or percents. Have you checked how

Re: [css-d] Floating boxes with variable heights

2012-07-28 Thread David Hucklesby
On 7/28/12 9:45 AM, Georg wrote: On 28.07.2012 17:48, David Hucklesby wrote: There's another alternative that lets you retain the white-space in the HTML, which is to use a font-size of zero on some container, and restore the font-size on the paragraphs with a value other than EMs or percents.

Re: [css-d] Floating boxes with variable heights

2012-07-27 Thread Peter H.
Georg, I'm intrigued by your example and have wanted that behaviour several times in the past and couldn't figure a way to achieve it without fixed height divs. But from your test page there's a bit of css that I don't understand: .floating { float-:left; width:140px;

Re: [css-d] Floating boxes with variable heights

2012-07-27 Thread Vladimir
yah it's almost like you don't need the float: left On Fri, Jul 27, 2012 at 8:09 AM, Peter H. li...@artworkers.net wrote: Georg, I'm intrigued by your example and have wanted that behaviour several times in the past and couldn't figure a way to achieve it without fixed height divs. But from

Re: [css-d] Floating boxes with variable heights

2012-07-27 Thread Georg
On 27.07.2012 14:09, Peter H. wrote: On the other hand, if 'float-' is a mistype (and doesn't exist as a declaration) then there is no float declaration and the whole thing depends on display: inline-block; Is that right? The hyphen is my quick and dirty way of disabling a declaration

Re: [css-d] Floating boxes with variable heights

2012-07-27 Thread Peter H.
thanks Georg, that's very handy. Peter - El 27/07/2012, a las 17:27, Georg escribió: an alternative to equal height floats, and inline-block are very often the best __

Re: [css-d] Floating boxes with variable heights

2012-07-27 Thread Georg
On 27.07.2012 14:09, Peter H. wrote: I wonder how far back inline-block is supported. When you say 'obsolete browsers', are you referring to IE6 and IE7? IE6/7 need some fixes for buggy support, but no real problems. Gecko was late in adding support, but can't imagine that being a problem

[css-d] Floating boxes with variable heights

2012-07-26 Thread Markus Ernst
Hi Something that I asked myself for years already: If you have some floating boxes, you may want them to fill the available width and then continue at a next row. Now, if these boxes do not have a fixed height, this will result in rows that do not start at the left edge, as this example

Re: [css-d] Floating boxes with variable heights

2012-07-26 Thread Georg
On 26.07.2012 11:58, Markus Ernst wrote: Hi Something that I asked myself for years already: If you have some floating boxes, you may want them to fill the available width and then continue at a next row. Now, if these boxes do not have a fixed height, this will result in rows that do not

Re: [css-d] Floating boxes with variable heights

2012-07-26 Thread Boray ERIS
On Thu, Jul 26, 2012 at 11:43 PM, Georg gunla...@c2i.net wrote: On 26.07.2012 11:58, Markus Ernst wrote: Hi Something that I asked myself for years already: If you have some floating boxes, you may want them to fill the available width and then continue at a next row. Now, if these boxes

Re: [css-d] Floating boxes with variable heights

2012-07-26 Thread Georg
On 27.07.2012 00:18, Boray ERIS wrote: Is this a joke? Nope. It's CSS! Georg __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ --

Re: [css-d] Floating boxes with variable heights

2012-07-26 Thread Georg
On 27.07.2012 00:46, Georg wrote: On 27.07.2012 00:18, Boray ERIS wrote: Is this a joke? Nope. It's CSS! ...an if you don't bother to test this old float-alternative at your end, here are a few examples. http://www.gunlaug.com/contents/test/test-floating-boxes.html

Re: [css-d] Floating boxes with variable heights

2012-07-26 Thread Tedd Sperling
On Jul 26, 2012, at 7:43 PM, Georg gunla...@c2i.net wrote: ...an if you don't bother to test this old float-alternative at your end, here are a few examples. http://www.gunlaug.com/contents/test/test-floating-boxes.html http://www.gunlaug.com/contents/test/test-floating-boxes-c.html

Re: [css-d] Floating boxes with variable heights

2012-07-26 Thread Georg
On 27.07.2012 01:52, Tedd Sperling wrote: You are irritatingly brilliant. :-) Naa, I refreshed my mind on old methods on... http://www.brunildo.org/test/index.html ...a few weeks ago. It's all there, just different. regards Georg