? How do i put a background on my website?

? How do i put a background on my website?
Habbox productions trialist
Timberlands are not chavvy! lol
What kind of website?
For an image isnt it summat like:
<body background="IMAGE URL">
its best to use css really "its the future"Originally Posted by Embraces
For an image isnt it summat like:
<body background="IMAGE URL">so it would be:
or to make an image your bg:HTML Code:<style> { background: 99ccff; } </style>
HTML Code:<style> { background: url(IMG URL); } </style>
Im rubbish at CSS ;P
Use Charlies way.
CSS is totally better.
- Dan
Plus withing afew years all the <font> tags etc will be replaced by it anyway so your best to learn it and use it now.
Any good sites where i can start learning? ;P
- Sam
Hmm.. www.w3schools.com is the ultimate place for css but its less tutorialised really. But css is VERY basic and you will pick it up in two seconds.
2 Mins, Ive learnt how to do,
andPHP Code:<style type="text/css">
body
{
background-image:
url('bgdesert.jpg')
}
</style>
</head>
<body>
<center>Testing</center>
</body>
</html>
PHP Code:<html>
<head>
<style type="text/css">
body {background-color: yellow}
h1 {background-color: #00ff00}
h2 {background-color: transparent}
p {background-color: rgb(250,0,255)}
</style>
</head>
<body>
<h1>This is header 1</h1>
<h2>This is header 2</h2>
<p>This is a paragraph</p>
</body>
</html>
Want to hide these adverts? Register an account for free!