ieee488 — 2011-03-27T12:25:48-04:00 — #1
I have a webpage with two boxes that are floated left.
Inside the left box is <div> with overflow=auto. On a Blackberry a scrollbar appears. However, on an iPad Safari 4.3 and an iPhone Safari 4.2.1 and an Adroid phone Chrome NX1_2.2, there is no scrollbar.
The right box is just has a photo.
Is there another way to write the CSS so that the the text in the left box can scroll?
picnictutorials — 2011-03-27T13:51:30-04:00 — #2
no way with css. Maybe js could.
paulob — 2011-03-27T14:38:42-04:00 — #3
On the iphone the only scroll bar that appears is the on the viewport. Scrollbars will not appear on inner elements.
You should use media queries and change all elements that have overflow:auto or overflow:scroll to be visible instead.
As a point of interest you can scroll the overflow:auto element on the iphone but you just have to use two finger scrolling although its not always obvious that the element is a scrollbox.
ieee488 — 2011-03-27T17:13:06-04:00 — #4
Can you explain what you mean by media queries?
paulob — 2011-03-27T17:27:48-04:00 — #5
I slipped a basic one into my example for the recent html quiz and it allows the display to fit on an iphone.
If you are designing for mobile you should also read this.
ieee488 — 2011-03-27T17:59:34-04:00 — #6
ah!!!!! said the blind person
technology is moving too fast for me