css - jquery width issue in IE8 -


I have a problem getting the div width in IE8, it's OK in FF and Chrome as IE in 0 Width, FF and Chrome are getting 1366.

  $ ('.fs-pic'). Width ();  

html:

  & lt; Div class = "fs-pic" & gt; & Lt; Img id = "full" src = "" /> & Lt; / Div & gt;  

I have placed the width as auto for the FS-Peak class.

The line above gives 0 in IE. Is there any alternative to IE? Any help please

Did you put it in the $ (document) .ready () ? Try moving it to $ (window). Load () I think this image is (which is making the width of the container) has not been loaded yet..then it is 0


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -