Foros del Web » Programando para Internet » PHP »

Estilos en php

Estas en el tema de Estilos en php en el foro de PHP en Foros del Web. Hola Jovenes, tengo una duda con respecto a estilos y php Si tengo este code por ejemplo: Código PHP: print  "               <center>           <table border=\"0\" cellpadding=3 cellspacing=0 width=\"420\" height=\"137\">             <tr bgcolor=\"#d3c0ff\">               <td align=\"right\" width=\"140\"><b>House Bill Number:</b></td> ...
  #1 (permalink)  
Antiguo 11/06/2008, 10:13
 
Fecha de Ingreso: diciembre-2006
Mensajes: 44
Antigüedad: 17 años, 4 meses
Puntos: 1
Estilos en php

Hola Jovenes, tengo una duda con respecto a estilos y php
Si tengo este code por ejemplo:

Código PHP:
print "    
          <center>
          <table border=\"0\" cellpadding=3 cellspacing=0 width=\"420\" height=\"137\">
            <tr bgcolor=\"#d3c0ff\">
              <td align=\"right\" width=\"140\"><b>House Bill Number:</b></td>
              <td align=\"left\" width=\"280\" colspan=2>$hawb <br></td>
            </tr>
            <tr>
              <td align=\"right\" width=\"140\"><b>Status:</b></td>
              <td align=\"left\" colspan=2>$status <br>
              </td>
            </tr>
            <tr bgcolor=\"#d3c0ff\">
              <td align=\"right\" width=\"140\"><b>Pieces:</b></td>
              <td align=\"left\" colspan=2>$pieces <br>
              </td>
            </tr>
            <tr>
              <td align=\"right\" width=\"140\"><b>Chargeable Weight:</b></td>
              <td align=\"left\" colspan=2>$weight lbs<br></td>
            </tr>
            <tr bgcolor=\"#d3c0ff\">
              <td align=\"right\" width=\"140\"><b>Pick-up Date:</b></td>
              <td align=\"left\" width=\"100\">$pickup_date</td>
              <td align=\"left\" width=\"180\" height=\"30\">$shipper_city, $shipper_state</td>
            </tr>
            <tr>
              <td align=\"right\" width=\"140\"><b>Delivery Date:</b></td>
              <td align=\"left\" width=\"100\">$delivery_date </td>
              <td align=\"left\" width=\"180\">$consignee_city, $consignee_state</td>
                          </tr>
            <tr bgcolor=\"#d3c0ff\">
              <td align=\"right\" width=\"140\"><b>Delivery Time:</b></td>
              <td align=\"left\" colspan=2>$podtime </td>
            </tr>
            <tr>
              <td width=\"140\" align=\"right\"><b>Received By:</b></td>
              <td colspan=2 align=\"left\">$podname</td>
            </tr>
            <tr bgcolor=\"#d3c0ff\">
              <td width=\"140\" align=\"right\"><b>Agent Name:</b></td>
              <td colspan=2 align=\"left\">$agentName</td>
            </tr>
            <tr>
              <td width=\"140\" align=\"right\"><b>Agent Phone:</b></td>
              <td colspan=2 align=\"left\">$agentPhone</td>
            </tr>
        "
;
    
    if(!
$delivery_date && $appointment !="" && $appointment_time !="")
    {
        print 
"
            <tr bgcolor=\"#d3c0ff\">
              <td width=\"140\" align=\"right\"><b>Appointment:</b></td>
              <td colspan=2>$appointment, $appointment_time</td>
            </tr> 
...que como veran esta dentro de un file php, como le puedo hacer para cambiar el tamano del fon y tipo de font?

Se puede usar una css aunque el archivo php no tenga header o body? Gracias
  #2 (permalink)  
Antiguo 11/06/2008, 10:38
Avatar de GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Estilos en php

Hola gtanime,

Lo ideal es que separes, y tengas un CSS principal que llames por el header, y a tu tabla solo pasarle el class que debe de usar.

Saludos.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:39.