This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media only screen and (max-width: 500px) { | |
table, tr, td { | |
display: block; /* table-cell -> block */ | |
width: 100%; | |
} | |
.main-col { | |
display: table-header-group; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<td class="wrapper"><!--Nested tables...--> | |
<table class="header">Header</table> | |
<table class="nav">Navigation</table> | |
<table class="content">Content</table> | |
<table class="footer">Footer</table> | |
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ 'logo.png' | asset_url }} | |
{{ product.vendor | url_for_vendor }} | |
{{ "Shop winter boots" | link_to_tag: 'Boots' }} | |
//cdn.shopify.com/s/files/1/0087/0462/t/394/assets/logo.png?34423/collections/vendors?q=Burton | |
<a title="Show products matching tag Boots" href="/collections/frontpage/boots">Shop winter boots</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media only screen and (max-width: 500px) { | |
.wrapper { | |
display: table; | |
} | |
.header { | |
display: table-caption; | |
} | |
.nav { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Liquid | |
<h1>{{ product.title }}</h1> | |
<p>{{ product.description }}</p> | |
// HTML returned | |
<h1>Snowboard Product Title</h1> | |
<p>The snowboard product description.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.box { | |
width: XXpx; | |
min-width: XXpx; | |
max-width: XXpx; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>Type: {{ product.type | link_to_type }}</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.box { | |
display: inline-block; | |
min-width: 50%; | |
max-width: 100%; | |
width: calc((480px - 100%) * 480); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.block { | |
display: inline-block; | |
min-width: 50%; /* 300px */ | |
max-width: 100%; /* 600px */ | |
width: calc((480px - 100%) * 480); /* or [calc((480px - 600px) * 480);], which equals -57,600px */ | |
} |