Jump to content

[SOLVED] Chrome div width


The Little Guy

Recommended Posts

For some reason, chrome returns a different number when I get the width of a div.

 

I am using this:

var lft = document.getElementById('container').clientWidth;

 

it works fine in Firefox, but not in chrome, what would be the best way to do this in chrome?

 

The div is 950px but chrome says its like 1258px or something like that with the above code.

Link to comment
https://forums.phpfreaks.com/topic/177747-solved-chrome-div-width/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.