View Full Version : How do i put a background on my website?
djotto1991
20-12-2005, 04:23 PM
? How do i put a background on my website?
For an image isnt it summat like:
<body background="IMAGE URL">
Splinter
20-12-2005, 04:37 PM
For an image isnt it summat like:
<body background="IMAGE URL">
its best to use css really "its the future" ;) so it would be:
<style>
{
background: 99ccff;
}
</style>
or to make an image your bg:
<style>
{
background: url(IMG URL);
}
</style>
Dan Williamson
20-12-2005, 05:16 PM
Use Charlies way.
CSS is totally better.
- Dan
Splinter
20-12-2005, 07:18 PM
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
Splinter
20-12-2005, 07:47 PM
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,
<style type="text/css">
body
{
background-image:
url('bgdesert.jpg')
}
</style>
</head>
<body>
<center>Testing</center>
</body>
</html>
and
<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>
http://www.nuthinbutnet.net Is a really good site for ready made backgrounds.
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.