My suggestion ( p img {vertical-align:bottom }) makes it easier to align an
image with a string of text.  Matthew's is better for placing an image in a
block, which is what your were asking for.
However, I’d suggest avoid vague positioning. i.e. don’t use
background-position:bottom. Use background-position:0 100%; instead. The
same for your positioning, use bottom:0, left:0…

I’ve worked on a number of large sites that change over the course of time
and vague positioning falls apart when someone updates the image 6 months
from now. Or tries to over ride it later on with a more specific rule.  It’s
just a good practice to define your positioning specifically.

Ted Drake
www.last-child.com



________________________________________
On Behalf Of Carlos Carreo


background-position: bottom;

________________________________________

Matthew Pennell a écrit :
>
>>On 9/13/06, Antonio <[EMAIL PROTECTED]> wrote:
>>>I have a block with an smaller image inside.
>>>I'd liked to align the image at the *bottom* of the block...
>>>How can I do it with CSS?
>>
>>#block {
>>  position: relative;
>>}
>>
>>#block img {
>>  position: absolute;
>>  bottom: 0;
>>}





*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to