<style type="text/css" media="print">
@page{
   margin: 2px;
}

*{
font-size:8px;
font-family:"Arial";
}

</style>

<style>
.codigo{
@writing-mode:vertical-lr;
@display:inline;
font-size:10x;
}
</style>


<div >
<strong class="codigo">IRAN FERRETERIA</strong><br>
<img src="barcode.php?text=<?php echo $_GET['codigo']?>&size=15&codetype=code128&orientation=horizontal" />
<br>
<span ><?php echo $_GET['codigo']?></span>
<br>
<span><?php echo $_GET['descripcion']?></span>

</div>

<script>
window.print();
setTimeout(function(){
	window.location.href="nuevo.php?id=<?php echo $_GET['id']?>"
},2000)


</script>