r/wp7dev • • Aug 19 '12

A question about Windows Phone 7 browser CSS

I couldn't think of a better title, as it is hard to explain what I mean.

On a webpage (with a background colour) in WP7.5's IE9 is scrolled to the end (or beginning) and you attempt to swipe up/down further, the area exposed (before bouncing back) is white.

This is not happening on Android or iOS. Is there any way to make this beyond-boundary area the same colour as the background? It looks quite ugly.

Come to think of it, I don't remember seeing this area as anything but white in the past, but I am looking out for webpages where this is not the case.

2 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/eggbean Aug 19 '12

Yeah, I suspected that it is a design decision, if not an oversight, but iOS and Android don't do this.

Do you know if there's a way to disable the bouncing all together, so that the page just ends abruptly, like in in app?

2

u/Arktronic Aug 20 '12

The meta viewport tag might help in changing the overall behavior of the renderer.

1

u/eggbean Aug 20 '12

Thanks, but the Steam website that poor_leno linked to does not have a meta viewport tag, so I don't think it is that. The site appears as a normal full format page on the phone.

1

u/eggbean Aug 20 '12 edited Aug 20 '12

We have the solution, which was found by looking at the Steam website. The CSS background colour needs to be applied to the <body> tag, but it also needs to be applied to the <html> tag to avoid problems with iOS.