1

I use li tag and below css for this tag :

<li class="line"></li>

li.line{ 
    width:100%; 
    height:3px !important; 
    background:#000; 
    list-style:none; 
    float:right;
}

this is ok in screen . but this is not show in print paper

thanks for help

Mostafa Norzade
  • 1,578
  • 5
  • 24
  • 40

1 Answers1

1

There is nothing to see except for the background colour, and browsers do not print background colours by default.

If you want a line, then use an appropriate element (e.g. <hr> or <img>) or appropriate CSS (border).

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335