非置換インライン要素に幅と高さを指定


メモだよ

DOCTYPE

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

X/HTML

<span id="sample">メモだよ</span>

CSS

span#sample {
  width: 300px;
  height: 200px;
}

Taichi Kaminogoya.