Click to See Complete Forum and Search --> : Font color and style


moshlp
06-18-2003, 06:32 PM
I want to write a line in red and with a certain font type and donīt know how to do it...I want TO PRINT to appear in red and with a different font type

<SCRIPT LANGUAGE="JavaScript">
if (window.print) {
document.write("TO PRINT : ");
document.write('<input type=button name=print value="Print this page!" '
+ 'onClick="javascript:window.print()"/form>');
}
// End -->

Khalid Ali
06-18-2003, 06:44 PM
use style sheets

<p style="color:red;">This should print in red if you have color printer..:-)</p>

moshlp
06-18-2003, 06:48 PM
ok,but i just want the words TO PRINT to appear in red

Khalid Ali
06-18-2003, 06:50 PM
Whatever you will put in between the <p>tags will appear red


<p style="color:red;">TO PRINT</p>