Boxes can be spiced up by enhancement of its boarders via decoration just to make them look nice and attractive this can be achieved by using boarder colors or even thickening them. This way, they are in a position to be called and the attention achieved.
Properties that determine the size of a box
The major properties that define the box size are width which defines the horizontal length and height which defines the vertical length. These two properties will need to be defined well to have the correct size of the box.
Property that determines whether a box will have scroll bars
The overflow property which is applied to determine what happens in case there is too much text to be displayed in the box space. It specifies the outcome that results when an element’s content overflows the element’s box size. The default nature is to make visible the overflowing content, but it can be modified so that the content is attached to the element’s box confines, optionally giving a mechanism for content scrolling. Boxes containing an overflow value with the exception of visible will vertically expand to enclose all floated descendant boxes. Margins never collapse in a box with an overflow value different from visible.
Four values for the overflow property
Hidden which does not display overflow text scroll bars are invisible, it is mostly used in banner boxes or in logos at the top of web pages where scroll bars are not necessary. There is also the auto property which displays scroll bars only if there is the need to be included but then the box size remains unchanged. The third property is visible which enables the box to expand as much as possible hence no need of height specification. Lastly there is the scroll property which displays scroll bars for users to scroll through the box when excess text is fed into the box than can be displayed, the box size remains constant.
The property that will position a box left or right
The float property which allows creation of boxes and position or even resizing of the box for browser displays. Boxes can be floated left or right having text wrappings in either directions of the box. In CSS float, an element may be projected to the left or right, giving room for other elements to wrap around it. Floating is used often to push images together or another, while retaining the text of a paragraph to wrap around it.
Where text will wrap if a box is floated right
The text will wrap around it to the left of the box next to box. Floated boxes are laid out in conformance to the flow that is ordinary, and then it is removed from the flow and taken to the right or left as much as it can. Content may flow to the right and downwards of a box which is floated to the left and also can flow down the left on a box which is floated to the right.
References
Godbole, R. (2007). Web technologies . New Jersey: Tata McGraw-Hill Education.