Jump to content

Placing the image for background of whole page


KGH

Recommended Posts

I have gradient image which i want to place for background of a page(for the whole page) but not getting.I tried cover which doesnt work in IE.Please suggest me.attached the code.

Thank you.

post-171012-0-91734900-1392958900.jpg

index.html

style.css

Link to comment
Share on other sites

Try...

body{background-color:#ddd;background-image:url('./images/gradient2.jpg');background-repeat:no-repeat;background-attachment:fixed;background-position:center; background-size:100% 100%;margin:0 auto;font-family:Georgia, "Times New Roman", Times, serif;font-size:12px;font-weight:normal;color:#666;}
  • Like 1
Link to comment
Share on other sites

Thank you for your reply.

It is working in chrome and FF but not in IE.What can we do for that?My IE version is 8.0.

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...