It appears you have not yet registered with our community. To register please click here...


Background images and colour

This is a discussion on Background images and colour within the Coding Tutorials forums. Topic: Welcome, today we will be adding background images and tutorials. Code: body{ background-image: url('picture.png') } This sets the ...


Reply
 
Postbit Seperator LinkBack Thread Tools Postbit Seperator Display Modes
Old 12-10-2006, 12:34 PM   #1 (permalink)
 
Status: Junior Member
Join Date: Dec 2006
Posts: 25
Trader Rating: (0)
Retire at 21 is on a distinguished road
TD$: 0.00
Donate
Default Background images and colour
Welcome, today we will be adding background images and tutorials.

Code:
body{
background-image:
url('picture.png')
}
This sets the background image, its pretty straight forward and theres not much to explain.

Now for setting a background color

Code:
<style type=text/css>
body{
background-color:black;
}
</style>
This outputs the background color as black.

To repeat a background image use

Code:
<style type='text/css'>
body
{
background-image:
url('picture.png');
background-repeat: repeat
}
</style>
Register @ Retire at 21 If you like this tutorial
Retire at 21 is offline   Reply With Quote
Old 02-02-2007, 08:48 AM   #2 (permalink)
 
Status: Junior Member
Join Date: Feb 2007
Posts: 13
Trader Rating: (0)
craig is on a distinguished road
TD$: 0.00
Donate
Default Re: Background images and colour
Hope you dont mind if i add something:

background-repeat: repeat-x;

this makes the background repeat only horizontal across the screen.

background-repeat: repeat-y;

this makes the background repeat down the screen.
craig is offline   Reply With Quote
Table Bottom LeftTable BottomTable Bottom Right
Reply


Thread Tools
Display Modes




Home | Site Map | Contact | Archive | Top

 

Copyright © 2007 - 2010 iTalkWebs Network

Search Engine Optimization by vBSEO 3.1.0