table { 
  width: 100%; 
  border-collapse: collapse; 
}
/* Here we are giving background color to all odd rows
which creates visual difference between every row  */
tr:nth-of-type(odd) { 
  background: #eee; 
}
th { 
  background: #666666; 
  color: white; 
  font-weight: bold; 
}
td, th { 
  padding: 6px; 
  border: 1px solid #ccc; 
  text-align: left; 
}
@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {
 
	/* change table global behavior into custom behaviour */
	table, thead, tbody, th, td, tr { 
		display: block; 
	}
	
	/* Remove table head content (only hide not delete ) */
	thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
		background-color:#666666;
	}
	
	tr { border: 1px solid #ccc; }
	
	td { 
		/* convert column into row so column behave like row */
		border: none;
		border-bottom: 2px solid #eee; 
		position: relative;
		padding-left: 50%; 
	}
	
	td:before { 
		/* convert for table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 8px;
		left: 8px;
		width: 45%; 
		padding-right: 12px; 
		white-space: nowrap;
	}
	
/*Label the data for responsive data */
	td:nth-of-type(1):before { content: "S.No."; }
	td:nth-of-type(2):before { content: "Description"; }
	td:nth-of-type(3):before { content: "Price"; }
	td:nth-of-type(4):before { content: "Qty"; }
	td:nth-of-type(5):before { content: "Ext.Price"; }
	td:nth-of-type(6):before { content: "Options"; }
	tr:td:nth-of-type(7):before { content: "Order Total"; }
	tr:td:nth-of-type(8):before { content: "Options"; }
	
}