Horzontal Rule to left edge, but not right

windows

Guest
I'm trying to make a horizontal rule stay right up to the left edge of it's container, but leave some room on the right side.

If I use "width:100%", it fills the container to the left.

If I use "width:95%", it stops before the right edge.

I also tried "width:95%; left:0; left-margin:0; left-padding:0;", but I still can't get it just right.

How do I make the <HR> butt up against the left, but leave space on the right?

Thanks.
-Jefftry

margin-left:0px;
margin-right:10px;

or

margin-left:0px;
padding-right:10px;

or

padding-left:0px;
padding-right:10px;None of those work.

Here's a related question: how come the HR is going off the right side of the window? Even if I set the width to 100%, the right side of the HR is off the edge of the window (creating a horizontal scrollbar which wouldn't be there otherwise). My real goal is to prevent the HR from going off the right side.

Thanks,
-Jeffchange your "%" sign to "px"That only made the HR 100 pixels long. Still not what I need.hr {width:90%; float:left}
 
Back
Top