|
Self-destructive Layouts
@vampirefreaks.com |
|
Borders
Content: Adding borders: The "border" property allows you to add a custom border to HTML elements. It is possible to add borders to practically anything; tables, divs, images, paragraphs, text, etc. You can also specify a border to any element in your profile that has been assigned a class, such as your .leftnav and your .userinfo. You can even put a border around your entire profile! Adding borders to a scrollbox:
Adding borders to a picture:
Adding borders to your .leftnav:
Adding borders around your entire profile:
Border-style: The "border-style" property sets the style of the border. You can choose between eight different styles; solid, double, dashed, dotted, inset, outset, ridge and groove.
Border-width: The "border-width" property sets the width of the border.
Border-color: The "border-color" property sets the color of the border. You can either use a hex code or a valid color name.
All in one: You can also style the borders by using one shorthand declaration, instead of having three different properties.
Different borders on each side: It's even possible to set different styles on each side on an element.
Rounded corners: You can give your elements rounded corners, however this will only work in Firefox.
|