Jump to content
KGH

Placing the image for background of whole page

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

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...