Reputation: 3055
There is two columns set likes this
.left_inside_tab{ float: left; padding-left: 25px; width: 45%; }
.right_inside_tab{ float: right; width: 45%;}
and i tried to get width like this
console.log ($('.left_inside_tab').width());
console.log ($('div.left_inside_tab').width());
both gives
45 as result. problem is 45 is not in pixels its percentage
what im doing wrong?
Regards
Upvotes: 0
Views: 8572
Reputation: 22933
The problem is somewhere outside the code you showed. Here is your code http://jsfiddle.net/g9B4b/, it works fine.
Upvotes: 5