table image

by Hayriye Aydin

HTML

<style>
table {
  font-family: Verdana;
  font-size:0.8em;
}

thead {
  display: block;
}
tr {
  display: flex;
  flex-direction: column;
   width:100%;
}
tr:nth-child(1) td { 
    background: #cecece;
    border: none;
    /* text-align: center; */
    /* margin: 0 auto; */
    display: flex!important;
    vertical-align: middle;
    justify-content: center;
    line-height: 30px;
}

tr:nth-child(2) td { 
display:none;
}

td {
 display:flex; 
  padding: 10px;
  width:100%;
  border:1px solid #eeeeee; 
  justify-content: left;
}
td:nth-child(2) { 
text-align:left;
}
td:nth-child(6)  { 
display: flex;
    padding: 10px;
    width: 100%;
    border: 1px solid #eeeeee;
    justify-content: right;
}
th {
  text-align:center;
}
.nowrap {
  white-space: nowrap;
}
  .text-align{
    text-align:left;
  }
  
  .text-align-right{
    text-align:right!important;
  }
  
    .product-img {
    width:50%!important;
    border:solid 2px #dddddd;
    padding:5px;
        margin: 0 auto;
  }
  
    .display-none{
    display:none;
  }
  
  .main-title {
    display:none;
  }
  .responsive-title {
    display:block;
    font-weight:bold;
       padding-right: 10px;
    margin: 0;
    min-width:70px;
  }
  
  .height-zero {
    height:0;
    padding:0;
    border:none;    
  }
  
  .all-prices td {

  }
  
  .all-prices td:nth-child(1) {

    }
@media screen and (min-width: 767.98px){
  tr {
    flex-direction: row;   
  }



  .text-align{
    text-align:center!important;
  }
  
  .text-align-right{
    text-align:right!important;
  }
  

.display-none{
    display:block;
  }
  
  .main-title {
    display:block;
    font-weight:bold;
  }
  
  .responsive-title {
    display:none;
  }
  
  tr:nth-child(2) td { 
  display:block;
border:none;
}

td {
 display:flex; 
  padding: 10px;
  width:100%;
  border:1px solid #eeeeee; 
  justify-content: center;
}
td:nth-child(2) { 
text-align:left;
}

    td:nth-child(6) {
        display: block;
    text-align: right!important;
}

 ...