• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

  • 0
Sign in to follow this  

fixed background image

Question

man4theladys    0

how do i get a background image to be fixed so when i scroll its always there. also how do i make it semi transparent?

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
twist    11

use the following style attributes for fixed.

<pre>

	background: url(images/bg.jpg);

	background-repeat : no-repeat;

	background-attachment : fixed;

</pre>

Share this post


Link to post
Share on other sites
  • 0
Prasanth    0

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  

  • Recently Browsing   0 members

    No registered users viewing this page.