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;
}
On 9/13/06 12:16 PM, 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?
If it is not important content - important info as opposed to just
decorative - make it a background
Try vertical-align:bottom
As in p img {vertical-align:bottom}
Ted
-Original Message-
Hi everybody,
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?
Thanks for your help!
Antonio
Thank you very much Matthew, Tom and Ted for your answer.
The Matthew's solution is OK for me.
;-)
Antonio
Le 13 sept. 06 à 19:05, 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*
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, Id suggest avoid vague positioning. i.e. dont use
background-position:bottom. Use