Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine IE browser width dynamically?
Message
From
15/01/2014 08:58:11
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
General information
Forum:
CSS
Category:
Other
Miscellaneous
Thread ID:
01591835
Message ID:
01591918
Views:
37
Take a look at this.
$( window ).resize(function() {
  $( "#log" ).append( "<div>Handler for .resize() called.</div>" );
});
// or 
$(window).on('resize',function(e){
// handler here. 
console.log($(this).width(); // or innerWidth() or outerWidth()
}
http://api.jquery.com/resize/

>>>>>As I am working on responsive design of my pages where I am constantly changing the IE browser (10) width to see how my page responds. For example, I have the following code in my .CSS file:
>>>>>
>>>>>@media only screen and (min-width:959px) and (max-width: 1200px) {
>>>>>	table.close_wo
>>>>>               {
>>>>>                     width: 900px;
>>>>>               }
>>>>>}
>>>>>
>>>>>
>>>>>And I would like to see, at any moment, the specific width of the browser; so that I can see how the page responds. Is it possible with IE? or maybe with chrome?
>>>>>
>>>>>TIA
>>>>
>>>>http://stackoverflow.com/questions/1038727/how-to-get-browser-width-using-javascript-code
>>>>http://designedbythomas.co.uk/blog/how-detect-width-web-browser-using-jquery
>>>
>>>Thank you very much. I should have thought about javascript for this purpose.
>>
>>And with jquery you can use the same code independent of the browser.
>
>One downside of using the jQuery for getting the browser width is that it does not change dynamically, as you resize the browser. You have to refresh the browser when you want to see the width.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform