• 0

IE10 and CSS problem...


Question

Hello,

Me and a friend made a website for my families holiday apartment (www.stleonard.info)

The background ( a photo ) should be remaining still, while a banner at the top should scroll with the rest of the page....

if your using chrome, or any other browser then you will see that this works...

IE10 however, you will notice that the background and the overlay at the top with the text and flag banner remains locked also and does not scroll with the page...

here is the css code:


body
{
font-family: Verdana;
background-image:url(../images/banner.png), url(../images/bg.jpg);
background-repeat:no-repeat;
background-size: auto auto, 100% auto;
background-position:50% 20px,50% 0%;
background-attachment:scroll, fixed;
margin: 0px 0px;
padding: 0px;
text-align: center;
color: #043f7c;
}

[/CODE]

Is there a line of code needs to replace the background-attachment attribute? if this changes wont it mess up all the other browsers?

if anyone knows the answer to this - it would be most appreciated..

Thanks

Alex

Link to comment
https://www.neowin.net/forum/topic/1130238-ie10-and-css-problem/
Share on other sites

11 answers to this question

Recommended Posts

  • 0

This is happening on Win8 IE10, and when in compatibility mode the background doesn't show at all...

post-412302-0-15083600-1357915351.png

compatibility mode means it uses IE7 engine so that would indeed look very bad...

tried the IE edge meta tag?

This topic is now closed to further replies.
  • Posts

  • Recent Achievements

    • Dedicated
      Almohandis earned a badge
      Dedicated
    • Dedicated
      JuvenileDelinquent earned a badge
      Dedicated
    • First Post
      DrWankel earned a badge
      First Post
    • Reacting Well
      DrWankel earned a badge
      Reacting Well
    • Week One Done
      Supreme Spray LV earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      507
    2. 2
      +Edouard
      185
    3. 3
      PsYcHoKiLLa
      84
    4. 4
      Michael Scrip
      78
    5. 5
      Steven P.
      76
  • Tell a friend

    Love Neowin? Tell a friend!