css - IE showing gap between two div but not in chrome -
We have a simple div. Here's the difference between div GPS data and map div IIE. The second GPS data is a field with a dynamic table using this method document. Tag elementbid ("gpsdad"). InnerHTML = htmlString; And then in IE the table goes down right and does not stop to say 400px so there is no scroll bar generated in Chrome or Firefox.
& lt; Body & gt; & Lt; Div id = "left" style = "width: 220px; height: 350px; float: left; background: white;" & Gt; & Lt; Div id = "gpsDataDiv" style = "overflow: auto; maximum-height: 400px; background: white;" & Gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div id = "map" style = "top: 0px; left: 220px; height: 100%" & gt; Map goes here & lt; / Div & gt; & Lt; / Body & gt;
you do not have div map with div not position : In full styling, do you have it in a different stylesheet? Some suggestions:
1. Your mix float: left; with an absolutely located element (?). You need to make sure that the container, in this case, the body is either overflow: hidden is applicable to it, or alternatively use one, it will prevent the container from falling below And your page may have more problems below. 2. & lt ;! - [If Lieutenant IE 7] & gt; & Lt; Html class = "ie6" lang = "en" xml: lang = "en" & gt; & Lt; [Endif] - & gt; & Lt ;! - [If IE 7] & gt; & Lt; Html class = "ie7" lang = "en" xml: lang = "en" & gt; & Lt; [Endif] - & gt; & Lt ;! - [If IE 8] & gt; & Lt; Html class = "ie8" lang = "en" xml: lang = "en" & gt; & Lt; [Endif] - & gt; & Lt ;! - [If IE 9] & gt; & Lt; Html class = "ie9" lang = "en" xml: lang = "en" & gt; & Lt; [Endif] - & gt; & Lt ;! - [if (gt IE 9) |! (IE)]> gt; & Lt ;! & Gt; & Lt; Html class = "" lang = "en" & gt; & Lt; -! & Lt; [Endif] - & gt; 3. Make sure that there is a method on your page, try using the html5 principle below. If you do not specify a principle, then the page can go into quarkX mode. This is definitely something you do not want!
& lt ;! DOCTYPE html & gt; 4. Max-height: 400px; from height: 400px on id = "gpsDataDiv"
If none of these are helping you, So can you combine your problem together? This will help you debug it for you :)
Comments
Post a Comment