Currently, I support our website support with all major browsers, and I have encountered a very strange problem - the oveflow-y attribute made my data hidden. The following is an example of simplified code that works in IE and Firfox, but which does not work in Safari and Chrome. This is 100% valid code, and I'm not sure why it does not display correctly in webkit browsers.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body style="height: 100%;"> <form action="Webkit_Problem.html" style="height: 100%;"> <table style="height: 100%;"> <tr> <td> <div style="overflow-y: auto; height: 100%;"> THIS SHOULD BE VISIBLE </div> </td> </tr> </table> </form> </body> </html>
http://www.alocet.com/VictorsTestFolder/Webkit_Problem.html (Live example here)
The only way to make it work is to either remove the height: 100% attributes for the div or the table tag (which will ruin the purpose of my html), or add the height: 100% to html tag
Does anyone have any suggestions?
thanks
source share