Test Case Boilerplate

Fork this way...

HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <script type="text/javascript">
            $(window).ready(function(){
                var con = $("#container");
                conP = con.position();
                alert(conP.left);
            });
        </script>
    </head>
    <body>
        <div id="container">
            Test text
        </div>
    </body>
</html>

CSS

body{
    margin: 0;
    padding: 0;
    
}
#container{
    width: 100px;
    margin: auto;
    margin-top: 40px;
    box-shadow: 0 0 20px rgba(0,0,0,.7);
}