CSS Styled Div Box
For this tutorial I used Verdana font inside this division box. You can use any font family you wish. If none is defined, your site's default fonts will be used.
The background-color in this division is set to light gray but you can use any background-color you wish, or omit the background-color option and your division box will assume your page's default background.
The border options are solid, dotted, dashed, double, groove, ridge, inset, outset or none. Note: Not all options are supported in all browsers.
The height of your div can be adjusted up or down to fit your design. If your div is smaller than the content inside it, a scrollbar will appear. If bigger than content, scrollbar will disappear.
For best results, keep 'width' and 'overflow' set to 'auto'.
|