Backgrounds in HTML
Background Colour
<body bgcolor="black">
With Hex Codes
<body bgcolor="#000000">
Background Images
<body background="http://WWW">
No scroll Background Image
<body background="http://WWW" bgproperties="fixed">
Backgrounds in CSS
Background Colour
<style type="text/css">
body {background: black;}
</style>
With Hex Codes
<style type="text/css">
body {background: #000000;}
</style>
Tiled Background Images
<style type="text/css">
body {background: url('http://WWW');
background-repeat: repeat;}
</style>
No Scroll, Tiled Background Image
<style type="text/css">
body {background: url('http://WWW');
background-attachment: fixed;
background-repeat: repeat;}
</style>
No Tile, No Scroll Background Image
<style type="text/css">
body {background: url('http://WWW');
background-attachment: fixed;
background-repeat: no-repeat;}
</style>
No Tile, No Scroll, Positioned Background Image
<style type="text/css">
body {background: url('http://WWW');
background-attachment: fixed;
background-repeat: no-repeat;
background-position: center;}
</style>
Background position can also be one of the following, depending on where you would like it to begin tiling (default is left):
right
center right
bottom right
center left
bottom left
bottom center
Page Border
<style type="text/css">
body {border-width: #;
border-color: COLOUR;}
</style>
|
|