Backgrounds

A

andy zemco

Hello, I have a particular background that I am using for a presentation in
PowerPoint. I want to know if it is possible for me to use that same
background in a web site I am creating? If so, how do I go about doing so?

Thank you very much
 
T

Trevor Lawrence

andy zemco said:
Hello, I have a particular background that I am using for a presentation
in
PowerPoint. I want to know if it is possible for me to use that same
background in a web site I am creating? If so, how do I go about doing
so?

Thank you very much

You could try using this CSS

body {
background: url(mypicture.jpg) repeat fixed top;
}

mypicture.jpg should include the path if necessary, e.g it could be
images/mypicture.jpg

The attributes repeat fixed top can be altered to suit. Refer:
http://www.w3schools.com/css/css_background.asp

CSS can be added in the <head> section by using this

<style type ="text/css">
body {
background: url(mypicture.jpg) repeat fixed top;
}
</style>

or you can place the CSS in a separate file, say style.css and use this in
the <head> section
<link rel="stylesheet" type="text/css" href="style.css" />

Note that you cannot resize a background image. If it is smaller than the
space allowed, it will either show once (no-repeat) or repeat to fill the
space (repeat)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top