![]() |
(http://www.codingforums.com/forumdisplay.php?f=70)
CSS overflow:hidden doesn't work on Apple's iPhone - Safari device?
Hello,
Sorry if I've posted in the wrong section. I have been looking and testing for a simple CSS solution for this issue for 3 days, but still w/o any luck. Some said I have to use position:relative, but it won't work either. Anybody kind enough to give me any hints/ some suggestion,... please :) Below is an example code for one page. Basically there's some text within text class <div> and I need them to be inside this <div>, always. So I use CSS rule overflow:hidden to achieve this and it works beautifully on my FF12, IE8, Safari5, Chrome19 and Opera11. However, someone told me that this long text had spilled over its container <div>, on his iPhone device. N.B. text scrolling is provided by up and down links, hooked using jQuery's click() handlers, but I don't think this is related to the problem. PHP Code:
Thanks, Hendra |
Dear Mods,
Am I allowed to link this thread to Codingforums' HTML & CSS sub? I would like CSS experts there to also see this issue and invite them to help me...:confused: THanks, Hendra |
Okay I cancel that, I understand that it would be considered a double-posts.
But would somebody please spare sometime to help me? Or maybe a re-phrase to the question: If iPhone couldn't recognize "overflow:hidden" style property of div, what should I use to properly make the content of a div (on iPhone) doesn't spill over its container? Safari's reference hasn't mention this property quite explicitly: https://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariCSSRef/Articles/StandardCSSProperties.html#//apple_ref/doc/uid/TP30001266-SW1 Please help, Hendra |
Okay I cancel that, I understand that it would be considered a double-posts.
But would somebody please spare sometime to help me? Or maybe a re-phrase to the question: If iPhone couldn't recognize "overflow:hidden" style property of div, what should I use to properly make the text content of a div (on iPhone) doesn't spill over its container? Safari's reference hasn't mention this property quite explicitly: https://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariCSSRef/Articles/StandardCSSProperties.html#//apple_ref/doc/uid/TP30001266-SW1 Please help, Hendra |
Your "link to above sample" does not work.
|
Sorry Steve,
this has been months ago, so I had to remove it. The actual test is http://smokingscript.com/test/iphone_overflow/, but I have compacted it a bit, to simplify the view: PHP Code:
The problem might have been resolved, since I have never again hear any complaints about my work (related to this demo). However, I have large doubt which actually have solved the overflow:hidden issue...
Thanks, Hendra |
OK, here's some feedback for you.
Overflow hidden works fine in the iPhone; however, it isn't optimized for the display size (it's too tiny and I had to drag it larger). Also, one must tap on the down button twice to reveal a line of text, so it is slow to use. |
Thanks for your feedback, Steve.
It is not easy to get one, especially in this Building for mobiles category :( And yes, I have ripped every mobile-optimization for that page so we could focus only on the overflow :) |
That's what I figured!
|
| All times are GMT +1. The time now is 05:14 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.