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,408
  • 4
  • 22
  • 39

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
  • 857,932
  • 118
  • 1,152
  • 1,264