Jump to content
xisto Community
Sign in to follow this  
bebas

Background Image Picture On A Website how do u make a pic a backround??

Recommended Posts

There are many ways to do this, and many different options. With CSS you can have one image in the center and keep it there (even if the user scrolls!) or have a multiple repeating image. Here is a page with all the different CSS methods: http://www.w3schools.com/css/css_background.asp

 

And if you don't feel like using css, you can just put a "background" attribute like so:

<body background="path/to/file.jpg">

However, in xHTML this is deprecated and will be seen as faulty code, so I recommend the CSS.

Edited by Horranus (see edit history)

Share this post


Link to post
Share on other sites

w3schools.com Is a good resource site, you should try the css and xhtml tutorials there, and start coding the right way: with standards! :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.