html - Table height in percentage not working -


I am developing a mobile site and am trying to use very easy markup.

Below is my code giving me the problem:

  & lt; Div class = "abc" & gt; & Lt; Div & gt; & Amp; Nbsp; & Lt; / Div & gt; & Lt; Table & gt; & Lt; / Table & gt; & Lt; / Div & gt; .abc {alt: 5%;} .abc table (Height: 95%;}   

The problem works on all the latest phones. But when I checked on Sony Ericsson (500i), the height of the table is from ABC's parent I was checking out this site and gave the body height {100%} but still no success. Please tell me where I am wrong.

In addition, when I gave height to the px, he worked for all the handsets but I want to know why the percentage was not working.

If you already know the height of the div, then use the dimensions defined in its better px .

avoid complexity, if it is not necessary

and for some browsers, body {height: 100} %;} The Yapt can not be.

  html, body {height: 100%; } .abc {height: 100%; } .abc div {height: 5%; } .abc table {height: 95%; }   

Also, be sure to include DOCTYPE on your webpage.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -