Featured Tutorials

New, Year, Screen, Saver, create 3 Ways to Create New Year Screen Saver

3 Ways to Create New Year Screen Saver

3 Ways to create New Year screen saver for your computer. You could add make an animated s..

photoshop tutorials, gradient overlay, text effects,photoshop text effects,font effects,text reflection,reflections,custom text,blending options,text effects in photoshop Jazz up text with Gradient Overlay

Jazz up text with Gradient Overlay

Some simple Photoshop techniques for giving your text and little oooomph!..

graphics design,business cards,business card design,business card ideas,how to design, business card sizes,layouts Ideas for Business Card Layouts

Ideas for Business Card Layouts

Heres a few ideas for those struggling to come up with professional business card designs,..

realistic,graffiti,photoshop,grafiti,grafitti,,photo,photograph,texture,wall textures,how to graffiti,grafitti in photoshop,photoshop brushes,custom brushes Adding Realistic Graffiti to a Photograph in Photoshop

Adding Realistic Graffiti to a Photograph in Photoshop

This tutorial will show you how to add realistic looking graffiti to a photograph or wall ..

vector photos,vector art,pen tool,photoshop,photoshop pen tool,pen tool illustration,vector pen tool,vector illustration,vector in photoshop How to Vector Illustrate a Photo with the Pen Tool in Photoshop

How to Vector Illustrate a Photo with the Pen Tool in Photoshop

This very detailed tutorial will show you some of the techniques you will need for transfo..

Featured Videos

Learn how to create 3d spinning animated text with thie Swift 3D ..

A useful tutorial for creating an Ethernet or Patch Cable for net..

Heres some great inspiration for logo design with examples of mod..

In this video Jeremy of Shoemoney.com explains how he experimente..

Heres a great spoof video for the technically challenged develope..

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