SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 739 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


Overflow
Normally, an AP element expands to fit the text or graphics inserted into it. You can, however, restrict the
size of an AP element by changing the height and width values in the Property inspector. What happens
when you define an AP element to be too small for an image, or when an amount of text depends on the
setting of the AP element??™s overflow attribute? AP elements (the
and tags) support four
different overflow settings:
378
Adding Advanced Design Features Part III
Versus
The major difference between
and is that the
is a block-level element, and the
is inline.
When you are positioning relatively (the elements are in the normal flow of the document), a
always
causes the next element to appear on a new line. Block-level elements, such as

and

, always create
a new line unless the display property is set to inline using CSS.
The reverse is true of tags. The tag is an inline element and displays just like an image or
link, without altering the text around it.
Generally

tags are used for block-level elements that require positioning, and tags are more
commonly used to apply inline formatting over positioning.
If you??™re trying to manipulate AP elements via JavaScript, note that Netscape 4 does not allow scripting of
tags.


Pages:
727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751