Foros del Web » Creando para Internet » CSS »

media en archivo css

Estas en el tema de media en archivo css en el foro de CSS en Foros del Web. alguien sabe como declarar la opcion media en un archivo css?...
  #1 (permalink)  
Antiguo 08/02/2007, 13:56
 
Fecha de Ingreso: agosto-2006
Mensajes: 141
Antigüedad: 17 años, 8 meses
Puntos: 0
media en archivo css

alguien sabe como declarar la opcion media en un archivo css?
  #2 (permalink)  
Antiguo 08/02/2007, 16:26
Avatar de JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Re: media en archivo css

Hola GreenlanternX

Supongo que te refieres a esto:

<link rel="stylesheet" type="text/css" media="print" href="css.css" />

Saludos,
  #3 (permalink)  
Antiguo 09/02/2007, 07:36
 
Fecha de Ingreso: agosto-2006
Mensajes: 141
Antigüedad: 17 años, 8 meses
Puntos: 0
Re: media en archivo css

ahora mi problema es otro, en mi pagina deje un menu al lado izquierdo con las opcion media=print , display none, el problema es k al imprimir, el contenido se ve orillado a la derecha como si el menu siguiera ahi, como hago para imprimir el contenido en toda la hoja?
  #4 (permalink)  
Antiguo 09/02/2007, 08:52
Avatar de JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Re: media en archivo css

Hola de nuevo.

Pon el código que estás usando o un enlace a la página para poder verlo.

Saludos,
  #5 (permalink)  
Antiguo 09/02/2007, 11:30
 
Fecha de Ingreso: agosto-2006
Mensajes: 141
Antigüedad: 17 años, 8 meses
Puntos: 0
Re: media en archivo css

lo de poner un enlace lo veo dificil ya k esta en intranet, y el codigo esta en php, y uso unos cuantos include y hoja css, para armar la pag...
  #6 (permalink)  
Antiguo 09/02/2007, 11:58
Avatar de PatomaS
Colaborador
 
Fecha de Ingreso: marzo-2004
Ubicación: En alguna otra parte
Mensajes: 4.656
Antigüedad: 20 años, 1 mes
Puntos: 63
Re: media en archivo css

Hola

No importa lo que uses para armar la página, una vez está en el navegador, el código html está allí, al igual que los css, solo tienes que ver el código fuente dede el navegador, copiarlo y pegarlo.

Felicidad
__________________
¡ hey, hou, hou, hey !
  #7 (permalink)  
Antiguo 09/02/2007, 13:12
 
Fecha de Ingreso: agosto-2006
Mensajes: 141
Antigüedad: 17 años, 8 meses
Puntos: 0
Re: media en archivo css

haciendo caso a tu consejo posteo el codigo:
Código:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Sistema Web de &Oacute;rdenes de Trabajo - &Aacute;rea Soporte Tecnol&oacute;gico - Direcci&oacute;n de Vialidad V Regi&oacute;n</title>
<link rel="stylesheet"  href="style.css" type="text/css">
<style type="text/css" media="print">
#impre {display:none}
</style>
<style type="text/css" media="screen">
#pant {display:none}
</style>
</head>
<body>
<div id="impre">
<div id="masthead">
  <table width="100%"  border="0">
    <tr>
      <td width="544" height="38"><h1 id="siteName">Sistema de &Oacute;rdenes de Trabajo</h1></td>
      <td width="146"><div id="breadCrumb"><a href="logout.php" onclick="return log_out()">Finalizar Sesi&oacute;n</a></td>
    </tr>
   
  </table>
  <script type="text/javascript">
<!--
function log_out()
{
	ht = document.getElementsByTagName("html");
	ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
	if (confirm("En verdad quieres finalizar tu sesi"+String.fromCharCode(243)+"n?\n\nSi es as"+String.fromCharCode(237)+", presiona ACEPTAR si no,\nentonces  presiona el bot"+String.fromCharCode(243)+"n CANCELAR"))
	{
		return true;
	}
	else
	{
		ht[0].style.filter = "";
		return false;
	}
}
//-->
</script>
  <div id="globalNav"></div>
</div>
<!-- end masthead -->
</div>
<div id="content" ><div id="impre">
  <div id="breadCrumb">&nbsp;</div><!-- end breadCrumb -->
  <h2 id="pageName" >Resultado B&uacute;squeda.</h2>
  </div>
  <div class="feature"> 
 <table style=" font-size:11px " id="impre">
<th>Codigo OT</th><th>Nombres Funcionario</th><th>Fecha Inicio</th><th>Fecha Termino</th><th>Problema</th><th>Solucion</th><th>Nombre Tecnico</th> <form method='post' action='inc/detalleOt.php' target="ventanaForm" onsubmit="window.open('','ventanaForm','width=500,height=500,top=0,left=0,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=yes,location=no')"> <tr><td><input type='hidden' name='codot' value='1'> <input type='submit' value='1'></td><td>Juanito</td><td> 08-01-2007</td><td> </td><td> No hay Internet.</td><td> </td><td> Miguel Orlando</td></tr> </form>  <form method='post' action='inc/detalleOt.php' target="ventanaForm" onsubmit="window.open('','ventanaForm','width=500,height=500,top=0,left=0,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=yes,location=no')"> <tr><td><input type='hidden' name='codot' value='2'> <input type='submit' value='2'></td><td>Juanito</td><td> 08-01-2007</td><td> </td><td> echa humo</td><td> </td><td> Max Power</td></tr> </form>  <form method='post' action='inc/detalleOt.php' target="ventanaForm" onsubmit="window.open('','ventanaForm','width=500,height=500,top=0,left=0,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=yes,location=no')"> <tr><td><input type='hidden' name='codot' value='3'> <input type='submit' value='3'></td><td>Juanito</td><td> 08-01-2007</td><td> </td><td> </td><td> </td><td> </td></tr> </form>  <form method='post' action='inc/detalleOt.php' target="ventanaForm" onsubmit="window.open('','ventanaForm','width=500,height=500,top=0,left=0,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=yes,location=no')"> <tr><td><input type='hidden' name='codot' value='4'> <input type='submit' value='4'></td><td>Juanito</td><td> 08-01-2007</td><td> </td><td> echa humo</td><td> </td><td> </td></tr> </form>  <form method='post' action='inc/detalleOt.php' target="ventanaForm" onsubmit="window.open('','ventanaForm','width=500,height=500,top=0,left=0,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=yes,location=no')"> <tr><td><input type='hidden' name='codot' value='5'> <input type='submit' value='5'></td><td>Juanito</td><td> 08-01-2007</td><td> </td><td> echa humo</td><td> </td><td> </td></tr> </form> </table>
<table style=" font-size:11px" id="pant">
    <th>Codigo OT</th><th>Nombres Funcionario</th><th>Fecha Inicio</th><th>Fecha Termino</th><th>Problema</th><th>Solucion</th><th>Nombre Tecnico</th> <form method='post' id="impre" action='inc/detalleOt.php' target="ventanaForm" onsubmit="window.open('','ventanaForm','width=500,height=500,top=0,left=0,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=yes,location=no')"> <tr><td><input type='hidden' name='codot' value='1'> <input type='submit' value='1'></td><td>Juanito</td><td> 08-01-2007</td><td> </td><td> No hay Internet.</td><td> </td><td> Miguel Orlando</td></tr> </form>   <form method='post' id="impre" action='inc/detalleOt.php' target="ventanaForm" onsubmit="window.open('','ventanaForm','width=500,height=500,top=0,left=0,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=yes,location=no')"> <tr><td><input type='hidden' name='codot' value='14'> <input type='submit' value='14'></td><td>Max Power</td><td> 08-02-2007</td><td> </td><td> jaja</td><td> </td><td> </td></tr> </form>  <form method='post' id="impre" action='inc/detalleOt.php' target="ventanaForm" onsubmit="window.open('','ventanaForm','width=500,height=500,top=0,left=0,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=yes,location=no')"> <tr><td><input type='hidden' name='codot' value='32'> <input type='submit' value='32'></td><td>Max Power</td><td> 08-02-2007</td><td> </td><td> jaja</td><td> </td><td> </td></tr> </form>  <form method='post' id="impre" action='inc/detalleOt.php' target="ventanaForm" onsubmit="window.open('','ventanaForm','width=500,height=500,top=0,left=0,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=yes,location=no')"> <tr><td><input type='hidden' name='codot' value='33'> <input type='submit' value='33'></td><td>Max Power</td><td> 08-02-2007</td><td> </td><td> jaja</td><td> </td><td> </td></tr> </form>  <form method='post' id="impre" action='inc/detalleOt.php' target="ventanaForm" onsubmit="window.open('','ventanaForm','width=500,height=500,top=0,left=0,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=yes,location=no')"> <tr><td><input type='hidden' name='codot' value='34'> <input type='submit' value='34'></td><td>Max Power</td><td> 08-02-2007</td><td> </td><td> jaja</td><td> </td><td> </td></tr> </form>  <form method='post' id="impre" action='inc/detalleOt.php' target="ventanaForm" onsubmit="window.open('','ventanaForm','width=500,height=500,top=0,left=0,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=yes,location=no')"> <tr><td><input type='hidden' name='codot' value='35'> <input type='submit' value='35'></td><td>Max Power</td><td> 08-02-2007</td><td> </td><td> jaja</td><td> </td><td> </td></tr> </form>  <form method='post' id="impre" action='inc/detalleOt.php' target="ventanaForm" onsubmit="window.open('','ventanaForm','width=500,height=500,top=0,left=0,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=yes,location=no')"> <tr><td><input type='hidden' name='codot' value='36'> <input type='submit' value='36'></td><td>Max Power</td><td> 08-02-2007</td><td> </td><td> jaja</td><td> </td><td> </td></tr> </form>  <form method='post' id="impre" action='inc/detalleOt.php' target="ventanaForm" onsubmit="window.open('','ventanaForm','width=500,height=500,top=0,left=0,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=yes,location=no')"> <tr><td><input type='hidden' name='codot' value='37'> <input type='submit' value='37'></td><td>Max Power</td><td> 08-02-2007</td><td> </td><td> jaja</td><td> </td><td> </td></tr> </form>   </table> <p id='impre'> /<font face=Arial size=2 color=ff0000><b> 1 </b></font><a href='resultados.php?pg=1'>2</a> <a href='resultados.php?pg=2'>3</a> <a href='resultados.php?pg=3'>4</a> <a href='resultados.php?pg=1'>Siguiente »</a></p></div><!-- end feature -->
 
</div><!--end content --><div id="impre">

<div id='navBar'>
  <div id='sectionLinks'>
    <ul>
	  <li><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MEN&Uacute;</b></li>
	   <li><a href='ingresoOT.php'>&Oacute;rdenes de Trabajo</a></li><li><a href='gestionOT_OTenProceso.php'>Gesti&oacute;n &Oacute;rdenes de Trabajo</a></li><li><a href='informeIndex.php'>Informes</a></li><li><a href='busquedaIndex.php'>B&uacute;squeda</a></li><li><a href='adminUsrIndex.php'>Administrar Usuarios</a></li><li><a href='mantenedor.php'>Mantenedores</a></li><li><a href='bodegaIndex.php'>Bodega</a></li><li><a href='estadistIndex.php'>Estad&iacute;sticas</a></li><li><a href='problemasIndex.php'>Problemas y Soluciones</a></li>    </ul>
  </div>
  <div id='advert'>
  <dl>
	<dt>Sesi&oacute;n activa de:</dt>
	<dd><h3>Max Power</h3></dd>
  </dl></div>
  <br><br><br><br><br><br><br><br><br><br><br><br><br>
</div>
<!--end navbar -->
</div>
Tuve k cortarle algunnas partes por el limite de carcteres del mensaje
  #8 (permalink)  
Antiguo 09/02/2007, 13:14
 
Fecha de Ingreso: agosto-2006
Mensajes: 141
Antigüedad: 17 años, 8 meses
Puntos: 0
Re: media en archivo css

al no estar el archivo de css k ocupo en la pagina al imprimirlo sale como corresponde, pero en pantalla sale el menu al pie de pag y asi no me sirve ....
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 04:13.