A lot of thinking has been done here..  watch:

1. I think you want an image next to your text, that doesn't allow
wrapping around it and of which the height resizes along with the text
as more appears..

2. I -think- something like this should work if that is case: (I'm just
typing from the top of my mind, so if it doesn't let me know and I'll
look it up)

div.box
    {
        overflow: hidden;
    }
div.boxImg
    {
        float: left;
        padding: 0 0 20000px 0;
        margin: 0 0 -20000px 0;
    }

>From what I think to remember the text box should automagically wrap
against the image div now, as said.. I'll give you a working solution if
this fails, lemie know.

-Rian

On Tue, 2006-02-21 at 04:13 -0800, Ischa Gast wrote:

> What I want is this:
> 
> A box with an image in the boxImg div. That div should be 100px when the
> image is 100px and 200px when the image 200px.
> 
> I have to float the boxImg when I want the text next to the image and when
> floating I have to give boxImg a specific width. So I think what i want is
> not possible but I hope it is.
> 
> One solution could be floating only the image and let the text go round it
> but that's not what I want.
> 
> I tried several things but nothing gave me the result I wanted.
> 
> Source code:
> <div class="box">
>     <div class="boxImg"><img /></div> <!-- end .boxImg -->
>     <div class="boxTxt">
>         <p>smaple text</p>
>     </div> <!-- end .boxTxt -->
> </div> <!-- end .box -->
> 
> To create something like this:
> http://ischagast.nl/img/example-01.gif
> http://ischagast.nl/img/example-02.gif
> 
> 
> 
> ______________________________________________________________________
> css-discuss [EMAIL PROTECTED]
> http://www.css-discuss.org/mailman/listinfo/css-d
> IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
> List wiki/FAQ -- http://css-discuss.incutio.com/
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Met vriendelijke groeten,
Meyson Communicatie

Rian Orie
[EMAIL PROTECTED]

Meyson Communicatie BV erkend bureau 



Postbus 94077
1090 GB Amsterdam
Joop Geesinkweg 851
1096 AZ Amsterdam




Tel. (020) 561 22 00
Fax (020) 561 22 59
ISDN (020) 362 31 69
www.meyson.nl




______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to