Tiling

T

Trevor L.

RBCC said:
Can I build a CSS from a HTML sheet? John

Sorry, I wasn't in this discussion from the start but:

No, you do not build a CSS from a HTML sheet.
What you do is create the CSS file separately and link to it.

Add this to the <head> section of the file where you want the background:
<link rel="stylesheet" type="text/css" href="style.css" />

Then create a file in any text editor, name it style.css and paste this into
it:
body { background: url(mybackground.jpg) no-repeat;}
where mybackground.jpg is your background image. (This file may be another
folder of course e.g. images/mybackground.jpg )

Save style.css in the root folder (the same folder where your default index
file is)

By adding the link to any file you will get the same background
 

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