DescriptionWhen an object is aligned left or right, text will flow around the image, but no space will appear between it and the image. The
vspace) attribute provides a little breathing space, but it will apply space on both sides of the object, which isn’t entirely flexible, as Figure 1 reveals.
hspace attribute is set to 30 pixels around a
left-aligned image object:
<object data="giant-dog.jpg" height="225" width="300" align="left" hspace="30"></object>
This attribute takes a number representing the pixel width of the spacing to be applied on either side of the image.
Although support for this attribute is good, it’s now deprecated, and is highly presentational in its nature. The desired visual effects can all be achieved with CSS and, as such, this attribute shouldn’t be used—it’s presented here for informational purposes only.
There are no comments yet.