hr

They have: 330 posts

Joined: Apr 2000

I'm assuming it's something with css that can help but I can't find it.

When creating a reports page in ASP I need it to be print friendly. The only way I have found to make this happen in IE 4 is to use HRs as seperators of the data. The problem I am finding is the HR leaves a space of 3 or 4 pixels on each side of itself when it's put on a page. To make the page look nice I need to get rid of the margins outside of the HR. Does anyone know how to do this?

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

I haven't found anything that directly applies to HR in CSS. But these may do something to it:
border-width: 0px
margin: 0px
margin-left: 0px
margin-right: 0px
padding: 0px
padding-left: 0px
padding-right: 0px

Mark Hensler
If there is no answer on Google, then there is no question.

They have: 330 posts

Joined: Apr 2000

I tried those things before posting the question. I wish they worked but unfortunately they didn't. Thanks for trying though.

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

did you try noshadow?

They have: 12 posts

Joined: Oct 2000

have you thought about just using an image instead of an HR.. make like a 1 X 1 image the color that you need and then use this.

play around with the width and height until you get it to about the size you want.

Give me what I want, and I'll go away!

They have: 330 posts

Joined: Apr 2000

that is perfect. Thank you. I have been using style sheets and table rows to make it look nice but it doesn't show when printed. The image thing is exactly what I was forgetting. Thanks again.

Here is the style sheets I have been using to make it look nice incase someone's interested...

< tr >
  < td >< bgcolor="#000000" >< font style="font-size: 4px" > &nbsp; < /font >< /td >
< /tr >
'

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.