Jump to content

Use an img as background?


Slum

Recommended Posts

Hey, im new to this CSS stuff, its a school project and we just started.And i do belive i can find answer to my question in here =)So, we are making a page useing css. But its a lot work to write everything in codes.So is it possible to use an img file as background? If so, how do you do it? And if there is a 'how to do' link allready feel free to add a link.-Thanks

Link to comment
Share on other sites

I put this code in my CSSbackground-image: url("pictures/blackmarble3.gif");I made a small image using Paint Shop Pro and called it blackmarble3.gif. I then put the image in the pictures folder, which is uploaded to my site. So when the CSS is called from each page, the above code tiles the gif as a background. W3schools gives ways to put the background image on selected parts of the page - top, left side . . .
Link to comment
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
×
×
  • Create New...