<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Alignment within tables</title>
    <link>http://forums.shopify.com/categories/2/posts/30828</link>
    <language>en-us</language>
    <description>Feed for discussion topic Alignment within tables</description>
    <item>
      <title>Alignment within tables</title>
      <author>Hannah Joy</author>
      <pubDate>Sun, 08 Nov 2009 06:54:31 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/30828</link>
      <guid>http://forums.shopify.com/categories/2/posts/30828</guid>
      <description>&lt;p&gt;I have my collection as a table with medium sized images, and was wondering if anyone could take a look to see why the following is happening.&amp;nbsp; I'm sure it's some quick css issue that I'm just not understanding fully:&lt;/p&gt;
&lt;p&gt;-the product titles are not aligned centered under the images&lt;/p&gt;
&lt;p&gt;-the product images are not aligned vertically with each other, it appears they are centered vertically based on how much text is in the title. (I want the top of all the images in a row to be aligned.)&lt;/p&gt;
&lt;p&gt;Here's the link:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.runwayeveryday.com/collections/instock"&gt;http://www.runwayeveryday.com/collections/instock&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance for your help!&lt;/p&gt;</description>
    </item>
    <item>
      <title>itsryan commented</title>
      <author>itsryan</author>
      <pubDate>Sun, 08 Nov 2009 17:44:31 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/30828#comment-30835</link>
      <guid>http://forums.shopify.com/categories/2/posts/30828#comment-30835</guid>
      <description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;If you reduce the words your product titles it all seems to align:&lt;/p&gt;
&lt;p&gt;e.g. "Ariella Braided Stud Trim Dress" remove "Ariella" and first row lines up ok&lt;br /&gt;&lt;br /&gt;So a quick fix would be to truncate your product titles...&lt;/p&gt;
&lt;p&gt;&lt;code&gt;{{ product.title | strip_html | truncatewords: 5 }} &lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Hannah Joy commented</title>
      <author>Hannah Joy</author>
      <pubDate>Tue, 17 Nov 2009 04:11:53 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/30828#comment-31100</link>
      <guid>http://forums.shopify.com/categories/2/posts/30828#comment-31100</guid>
      <description>&lt;p&gt;Hi, thanks for the input, however, it also depends on how long the words are, not just how many words.&amp;nbsp; The titles seem to be so much more narrow than the images, and they aren't center-aligned under the images.&amp;nbsp; Can someone take a look at the CSS and tell me what I'm missing?&lt;/p&gt;</description>
    </item>
    <item>
      <title>Hannah Joy commented</title>
      <author>Hannah Joy</author>
      <pubDate>Tue, 17 Nov 2009 05:29:16 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/30828#comment-31101</link>
      <guid>http://forums.shopify.com/categories/2/posts/30828#comment-31101</guid>
      <description>&lt;p&gt;Alright, I figured it out myself, with lots of trial and error.&amp;nbsp; To have things vertically align in the table, I needed to not only have a &lt;em&gt;width &lt;/em&gt;in my css for the product, but also a &lt;em&gt;height.&lt;/em&gt;&amp;nbsp; The shopify theme did not have a height value in the code.&amp;nbsp; This way, regardless of how many words/lines of text are in the product title, the image will align to the top.&amp;nbsp;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
