Featured Tutorials

hardware articles, CD, DVD, cleaning, home remedy,cds with toothpaste,toothpaste,clean with toothpaste,dvds toothpaste,clean dvd,how to clean cds,how to clean dvd,dvd cleaner Clean your CD's/DVD's with toothpaste!

Clean your CD's/DVD's with toothpaste!

The low-cost answer to keeping your CD's/DVD's clean and functional...

flash tutorials, 2D, 3D, tunnel effect, flash animation,tunnel in flash,tunnel animation,wormhole,wormhole animation,space tunnel Creating a 3D Tunnel Effect in Flash

Creating a 3D Tunnel Effect in Flash

Learn how to create this very cool 3D tunnel effect in Flash using some simple 2D animatio..

text effect,text effects,font effects,glossy text,bubble test,glossy text effect,glossy font effect,web 2.0 text,web 20 text effect,gradient text,glowing text,glowing font,photoshop text effects Text Effects #2 Glossy Bubble Text

Text Effects #2 Glossy Bubble Text

This text effect is perfect for those who want to design an eye-catching web 2.0 style log..

css,dreamweaver,css dreamweaver,css problem,dreamweaver problem,fix css dreamweaver,fixing css,center background,conflicting styles CSS Problem Solving in Dreamweaver

CSS Problem Solving in Dreamweaver

Here's a great article/tutorial that covers the solutions to some common problems when dev..

flash,drag,draggable,object,tutorial,flash drag,flash draggable,draggable movie,drag movie,drag movieclip,start drag Creating draggable objects in Flash

Creating draggable objects in Flash

This flash tutorial will teach you how to create draggable objects, that you can click and..

Featured Videos

Another amazing video showing how easy it is to change a persons ..

Foto Flexer is an amazing tool allows you to resize photos dynami..

Heres a cool tutorial slash speed painting of painting realistic ..

This is a very rare tutorial that will teach you how to use Photo..

Learn how to use Photoshop textures and filters to create this ph..

Learn CSS: Background Images

There are many ways to add a background image to both your page body and its various page elements. There are also many different properties allowing you to display a background image or colour in certain ways depending on what best for your sites layout:

 

Background Image

Its simple all you need to to is identify an image path within some simple url() tags

Background-image { url(images/image.jpg);}

 

Background Repeat

The second part sets whether you want the image to repeat or just display once, you can use the follow lines for this:

Repeat the image horizontally from left to right

{background-repeat: repeat-x;}

Repeat the image vertically from top to bottom

{background-repeat: repeat-y;}

Do not repeat or loop the image, only display it once.

{background-repeat: no-repeat;}

 

Background position

With this setting you choose were you want your background image to be positioned either on the whole back or just in one specific div element, heres some examples:

{background-position: center;}

{background-position: top;}

{background-position: left;}

{background-position: top left;}

 

Background Color

Background colors are defined as a set of HTML Color codes such as #000000 for black, but you can also use simple colour choices like red,green etc, heres some examples:

{background-color: #334455;}

{background-color: green;}

 

Shorthand CSS (for those who want their code to look a bit more pro)

Short hand in css is a way of writing many of the above examples in one line of property code, or in other words squeezing it all into one simple line, as follows:

{background: #000000 url(images/image.jpg) no-repeat top left;}

 

Using Backgrounds for BODY and DIV tags

You can add background colors and images to both the whole page and seperate div tags heres some examples:

 

Within the style sheet for the BODY

<style>
html, body {background: #000000 url(images/image.jpg) no-repeat left;}
</style>

 

Within the page or style sheet for individual elements

<div class="test" style="background: #000000 url(images/image.jpg) no-repeat left;"></div>

 

More Web Design...

Other Content...

 Subscribe to our feed

Send to a friend