It may be a good thing to set overflow:hidden; for times when
the text height may be shorter then the image.
>
>
>
> long text long text long text long text long text long text
> long text long text long text long text long text long text
> long text long text long text
>
>
--
BootNic Saturday, May 05, 2007 11:30 AM
A person without a sense of humor is like a wagon without springs,
jolted by every pebble in the road.
*Henry Ward Beecher*
Re: simple image + text CSS layout question
am 06.05.2007 03:14:10 von Neredbojias
On Fri, 04 May 2007 11:35:15 GMT Ciaran scribed:
>> Need another DIV
>>
> Ah right! Very clever! Thank you both!
>
Why don't you use just 1 div, position it relative, set left padding equal
to the width of the image plus buffer, and absolutely position the image in
the upper left corner?
--
Neredbojias
He who laughs last sounds like an idiot.
Re: simple image + text CSS layout question
am 06.05.2007 07:34:17 von lws4art
Neredbojias wrote:
> On Fri, 04 May 2007 11:35:15 GMT Ciaran scribed:
>
>>> Need another DIV
>>>
>> Ah right! Very clever! Thank you both!
>>
>
> Why don't you use just 1 div, position it relative, set left padding equal
> to the width of the image plus buffer, and absolutely position the image in
> the upper left corner?
>
Could work. Better actually, no need extra element.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Re: simple image + text CSS layout question
am 07.05.2007 21:56:20 von Neredbojias
On Sun, 06 May 2007 05:34:17 GMT Jonathan N. Little scribed:
>> Why don't you use just 1 div, position it relative, set left padding
>> equal to the width of the image plus buffer, and absolutely position
>> the image in the upper left corner?
>>
>
> Could work. Better actually, no need extra element.
Haven't dallied with that particular procedure in a bit. IE 6 could be a
prob, but there's conditional comments...
--
Neredbojias
He who laughs last sounds like an idiot.
Re: simple image + text CSS layout question
am 07.05.2007 22:10:13 von lws4art
Neredbojias wrote:
> On Sun, 06 May 2007 05:34:17 GMT Jonathan N. Little scribed:
>
>>> Why don't you use just 1 div, position it relative, set left padding
>>> equal to the width of the image plus buffer, and absolutely position
>>> the image in the upper left corner?
>>>
>> Could work. Better actually, no need extra element.
>
> Haven't dallied with that particular procedure in a bit. IE 6 could be a
> prob, but there's conditional comments...
>
No, seems to work just fine. Even 5.5 5.01 AND 4.01!
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com