|
Self-destructive Layouts
@vampirefreaks.com |
|
Background Image
Content: Inserting a background image: <style> html, body{ background-color: COLOR HERE; background-image: url(http://IMAGE_URL_HERE.jpg); background-position: top left / center center / bottom right / ....; background-repeat: repeat / no-repeat; background-attachment: fixed / scroll; } </style> Background-color: The background-color property sets the background color of your profile. When using a background-image that doesn't repeat, it might be a good idea to choose a color that blends in with the image. You can either use a hex code or a valid color name. Background-image: The background-image property sets the background image of your profile. Here you need the URL of the image you want to use as a background. If you have the image on your computer, you have to upload it at an image hosting site, such as Tinypic or Photobucket before it can be used as a background. Background-position: The background-position property sets the position of your background-image. Possible positions are: left, right, top, bottom, center, in any sensible combination.
Background-repeat: The background-repeat property sets whether the background should repeat or not. Possible values are: no-repeat, repeat, repeat-x, repeat-y. If you choose the value "no-repeat", the background-image will only be displayed once. "Repeat" will make the background repeat itself both horizontally and vertically. "Repeat-x" will make the background repeat only horizontally, while "repeat-y" will make it repeat only vertically.
Background-attachment: The background-attachment property sets whether the background-image should be fixed or scroll along with the rest of the page. Possible values are: fixed, scroll.
Other elements: You can insert a background-image in most HTML elements, such as div's (scrollboxes), tables and paragraphs - even links. The code to insert a background-image in a scrollbox:
.myscrollbox{ height: 200px; width: 300px; overflow: auto; background-color: COLOR HERE; background-image: url(http://IMAGE_URL_HERE.jpg); background-position: top left / center center / bottom right / ....; background-repeat: repeat / no-repeat; background-attachment: fixed / scroll; } </style> <div class="myscrollbox">Text here.</div> | |||||||||||||||||||||||