Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html lang="ja">
<head>
<script class="jsbin" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<meta charset="utf-8" />
<title></title>
<script type="text/javascript">
<!--
$(function(){
    $('body').css({
        'display':'box',
        'box-align':'center',
                'box-pack':'center',
    });
    $('#test').css({
        'background':'#C00',
        'width':'300px',
    });
});
//-->
</script>
</head>
<body>
<div id="test">a</div>
</body>
</html>
 
$(function(){
    $('body').css({
        'display':'box',
        'height':'100%',
        'box-align':'center',
    });
    $('div').css({
        'background':'#C00',
        'width':'300px',
    });
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers