set height and width of div inline code example Example: inline styling width <div class="foo" style="width: 400px; height: 300px;">