Hi David,

first of all: thanks for your quick reply.

If I got you right, you adjust the width of the mid div to the picture
size. This of course works but there's a disadvantage because I want to
display the pic in the middle of the page *regardless* of the pictures
width.

If I insert another picture with the same div class "mid" (changed it
from id to class) it's not in the middle anymore.

http://phpscripts.bodtree.com/

The use-case scenario is that I programmed a backend in which the user
is able to upload an image. I constrict the image-upload to 600px width.
So I want to apply the shadow effect to all uploaded pictures and place
them in the middle of the page without caring about their actual size.

You know what I mean? Hope I explained it in an coherent way.

Best regards,
- Kersten


Am 20.07.10 04:38, schrieb David Laakso:
> Kersten Broich wrote:
>>
>> I found the following template-classes to create a shadow-effect for
>> pictures and it works very well:
>>
>> It doesn't work - the picture always appears at the left side of the
>> DIV#mid. Does anybody have an advice how to manage that the picture
>> appears exactly in the middle of the DIV#mid (page) together of course
>> with the shadow effect...?
>>
>>
>> http://phpscripts.bodtree.com/
>>
>>
>> - Kersten
>>   
> 
> 
> 
> 
> 
> 
> Kersten,
> 
> Several issues.  The document needs a doctype, the width of #mid is too 
> wide, IE/6 doubles the left/right margin.
> Corrections embedded. Cursory checked in IE 6/7/8, Opera, Safari, 
> Camino, Firefox.
> <http://chelseacreekstudio.com/ca/cssd/l.html>
> 
> Hope this helps.
> 
> Best,
> ~d
> 
> 
> 
> 
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to