Share this Page URL

Controlling Font Sizes > Pixels or Ems--Which to Use? - Pg. 151

146 Learn HTML 4 In a Weekend amplified when increasing the size of an image. When decreasing the size of a graphic rule, the bandwidth waste is usually relatively small. Thus, the advantage of dynamically resizing the graphic rule relative to the width of the browser window's viewport outweighs the small disadvan- tages that are involved. Use the IMG element's WIDTH attribute to set the width of the graphic rule to 95 percent of the width of the browser's viewport (see Figure 4.29): <p align="center"><img src="bar_gold.jpg" width="95%" height="10"></p> Wrapping Up