Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Nov 2003
    Location
    Portugal
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    font style in php

    How can I add a font style like this:

    <FONT STYLE="face: Verdana, Arial, Helvetica, sans-serif; font-size: 9
    px; color: #000000; font-style: normal; text-decoration: none">

    to this php line code:

    $table_rows .= "<tr valign=\"top\" height=\"10\">\n<td width=\"15%\" align=\"left\">".$data ["sku"]."</td>\n<td width=\"40%\" align=\"left\">".$data ["description"]."</td>\n<td width=\"10%\" align=\"center\">".$data ["quantity"]."</td>\n<td width=\"5%\" align=\"right\">".$data ["price"]."</td>\n<td width=\"5%\" align=\"right\"></td>\n<td width=\"5%\" align=\"right\">19.0</td>\n<td width=\"20%\" align=\"right\">".$display_line_total."</td>\n</tr>\n";

    Possible to use use a css style sheet ?

  • #2
    Regular Coder
    Join Date
    Feb 2003
    Posts
    101
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yes, u can use css style sheet, just add the class in where u needed in the html code.
    or use whatever style u need but make sure that all quotes ( " ) are escaped with backslash: ( \" )

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    start by replacing you \" with ' it shows up the same for browsers and it'll be easier to read for you

    PHP Code:
    $table_rows .= "<tr valign='top' height='10'>\n<td width='15%' align='left'>".$data ["sku"];

    $table_rows .="</td>\n<td width='40%' align='left'>".$data ["description"];

    $table_rows .="</td>\n<td width='10%' align='center'>".$data ["quantity"];

    $table_rows .="</td>\n<td width='5%' align='right'>".$data ["price"];

    $table_rows .="</td>\n<td width='5%' align='right'></td>\n<td width='5%' align='right'>19.0</td>\n<td width='20%' align='right'>".$display_line_total."</td>\n</tr>\n"
    thast how i might formulate it
    photoshop too expensive? use the GIMP! www.gimp.org

  • #4
    New Coder
    Join Date
    Nov 2003
    Location
    Portugal
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    tks for the tips.
    working good both ways


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •