Add Css to Pages

itsolidude12
New Member
4 0 0

Hey guys

I've made a simple responsive table for my shipping's page. But for test purposes I made a blank page called "Tables" to try and get my table to work on Shopify. I can not find the Css file for the life of me. And inline Css is not really an option.

 

<table>
  <thead>
    <tr>
      <th scope="col">Country</th>
      <th scope="col">Timeframes<br>(Business Days)</th>
      <th scope="col">$ (USD)</th>
      <th scope="col">Details</th>
    </tr>
  </thead>
  <tbody>
    <tr class="firstRowLine">
      <td data-label="Country">United States</td>
      <td data-label="Shipping Time">7 to 15</td>
      <td data-label="Cost">Free</td>
      <td data-label="Details" class="details">*We do not ship to Hawaii & Alaska</td>
    </tr>
  </tbody>
</table>
body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.25;
}

table {
  border: 1px solid #ccc;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  width: 100%;
  table-layout: fixed;
}

.details{
  
}

.firstRowLine td{
  border-top: 1px solid black;
}

table caption {
  font-size: 1.5em;
  margin: .5em 0 .75em;
}

table tr {
  background-color: #f8f8f8;
  padding: .35em;
}

table th,
table td {
  padding: .625em;
  text-align: center;
}

table th {
  font-size: .85em;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media screen and (max-width: 600px) {
  table {
    border: 0;
  }

  table caption {
    font-size: 1.3em;
  }
  
  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
  table tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: .625em;
  }
  
  table td {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: .8em;
    text-align: right;
  }
  
  table td::before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  table td:last-child {
    border-bottom: 0;
  }
}

 

 

0 Likes
itsolidude12
New Member
4 0 0

Figured it out

0 Likes