Posted by David Graham on 01/26/06 15:33
"David Graham" <david.graham18@ntlworld.com> wrote in message
news:U%3Cf.65283$q4.32957@newsfe2-gui.ntli.net...
> > CSS:
> > .pixboxleft IMG {
> > display: block;
> > }
>
> Hi
> I understand your css OK but what is the display: block; for?
> I commented this out and it doesn't seem to do anything. Why can't the img
> element remain an inline element?
> thanks
> David
>
>
>
More detail.........
The display: block does not do anything when the css is used for displaying
the image on the right. Without the display block when the div is floated to
the left, the image sits along side the text within the floated div as you
would expext. Funny thing is though, the text within the floated div always
sits below the image when the div is floated right, regardless of the
instruction display: block - why is this?
thanks
David
[Back to original message]
|