how to set width using inline css code example Example: inline styling width <div class="foo" style="width: 400px; height: 300px;">