code: protected Element createTextElement(float width)
      {
          Element el = doc.createElement("div");
          el.setAttribute("id", "p" + (textcnt++));
          el.setAttribute("class", "p");
          String style = curstyle.toString();
          style += "width:" + width + UNIT + ";";
          el.setAttribute("style", style);
          return el;
      }
docs: Creates an element that represents a single positioned box with no content.
  @return the resulting DOM element