The \hrulefill fill command produces a rubber length which can stretch or shrink horizontally. It will be filled with a horizontal rule.
See Spaces and Boxes Back to the Table of Contents