<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with Next/Previous link formatting problem in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Problem-with-Next-Previous-link-formatting-problem/m-p/58847#M3980</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/21561"&gt;@rickbyrd&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No those are css declarations. Keep the class names as is, and place the css in your style sheet, or in the head of the template wrapped in &amp;lt;style&amp;gt;&amp;lt;/style&amp;gt; tags.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2017 13:01:52 GMT</pubDate>
    <dc:creator>Jsum</dc:creator>
    <dc:date>2017-12-04T13:01:52Z</dc:date>
    <item>
      <title>Problem with Next/Previous link formatting problem</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Problem-with-Next-Previous-link-formatting-problem/m-p/56874#M3960</link>
      <description>&lt;P&gt;I am using the following code to create Next and Previous links at the bottom of each blog post:&lt;BR /&gt;&amp;lt;div class="list-pagination"&amp;gt;&lt;BR /&gt;{% if content.next_post_slug %}&lt;BR /&gt;&amp;lt;a class="pagination-btn list-prev-post" href="/{{ content.next_post_slug }}"&amp;gt;Previous&amp;lt;/a&amp;gt;&lt;BR /&gt;{% endif %}&lt;BR /&gt;{% if content.previous_post_slug %}&lt;BR /&gt;&amp;lt;a class="pagination-btn list-next-post" href="/{{ content.previous_post_slug }}"&amp;gt;Next&amp;lt;/a&amp;gt;&lt;BR /&gt;{% endif %}&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;BR /&gt;The problem I am having is the words Next and Previous are next to each other. I would like to have the word Previous on the other side of the page but I am not sure how. See link below for the current look - &lt;A href="https://www.bigpictureloans.com/blog/perspective-on-payday-loans" target="_blank"&gt;https://www.bigpictureloans.com/blog/perspective-on-payday-loans&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, I would like to potentially add an image along with the name of the post instead of just the words Next and Previous. See link for example - &lt;A href="https://www.altusfinancial.com.au/latest-news-1/10-digital-assets-every-estate-plan-must-consider" target="_blank"&gt;https://www.altusfinancial.com.au/latest-news-1/10-digital-assets-every-estate-plan-must-consider&lt;/A&gt;&lt;BR /&gt;Is this even possible?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;- Rick&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 13:20:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Problem-with-Next-Previous-link-formatting-problem/m-p/56874#M3960</guid>
      <dc:creator>rickbyrd</dc:creator>
      <dc:date>2017-12-01T13:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Next/Previous link formatting problem</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Problem-with-Next-Previous-link-formatting-problem/m-p/57642#M3969</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/21561"&gt;@rickbyrd&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is one of those questions that has many answers and is based on how you have the page coded. I can give you a general example though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is your markup:&lt;/P&gt;&lt;PRE&gt;&amp;lt;div class="&lt;FONT color="#0000FF"&gt;list-pagination&lt;/FONT&gt;"&amp;gt;
	{% if content.next_post_slug %}
		&amp;lt;a class="pagination-btn &lt;FONT color="#0000FF"&gt;list-prev-post&lt;/FONT&gt;" href="/{{ content.next_post_slug }}"&amp;gt;Previous&amp;lt;/a&amp;gt;
	{% endif %}
    {% if content.previous_post_slug %}
        &amp;lt;a class="pagination-btn &lt;FONT color="#0000FF"&gt;list-next-post&lt;/FONT&gt;" href="/{{ content.previous_post_slug }}"&amp;gt;Next&amp;lt;/a&amp;gt;
    {% endif %}
&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;Notice the text in blue, these are the relevant classes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First clear floats on your wrapper. According to&lt;A href="https://css-tricks.com/snippets/css/clear-fix/" target="_self"&gt; css tricks&lt;/A&gt; this is currently the best way to clear floats:&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#0000FF"&gt;.list-pagination&lt;/FONT&gt;:after { content: ""; display: table; clear: both; }&lt;/PRE&gt;&lt;P&gt;Next you just want to float previous to the left and next to the right:&lt;/P&gt;&lt;PRE&gt;.list-next-post { float: right; }

.list-previous-post { float: left; }&lt;/PRE&gt;&lt;P&gt;and that's really all it should take.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 20:42:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Problem-with-Next-Previous-link-formatting-problem/m-p/57642#M3969</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2017-12-01T20:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Next/Previous link formatting problem</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Problem-with-Next-Previous-link-formatting-problem/m-p/58841#M3979</link>
      <description>&lt;P&gt;Jsum,&lt;/P&gt;&lt;P&gt;Thanks for the information!&amp;nbsp; I'm a newbie to all of this.&amp;nbsp; If I understand you correctly, I should replace the relevant classes with the new code for the floating.&amp;nbsp; Like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;div class="&lt;FONT color="#0000FF"&gt;.list-pagination&lt;/FONT&gt;:after { content: ""; display: table; clear: both; }"&amp;gt; &lt;BR /&gt;{% if content.next_post_slug %} &lt;BR /&gt;&amp;lt;a class="pagination-btn .list-previous-post { float: left; }" href="/{{ content.next_post_slug }}"&amp;gt;Previous&amp;lt;/a&amp;gt; &lt;BR /&gt;{% endif %} &lt;BR /&gt;{% if content.previous_post_slug %} &lt;BR /&gt;&amp;lt;a class="pagination-btn .list-next-post { float: right; }" href="/{{ content.previous_post_slug }}"&amp;gt;Next&amp;lt;/a&amp;gt; &lt;BR /&gt;{% endif %} &lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;BR /&gt;I tired this and it did not change anything so I most likely did this incorrectly.&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Dec 2017 12:56:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Problem-with-Next-Previous-link-formatting-problem/m-p/58841#M3979</guid>
      <dc:creator>rickbyrd</dc:creator>
      <dc:date>2017-12-04T12:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Next/Previous link formatting problem</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Problem-with-Next-Previous-link-formatting-problem/m-p/58847#M3980</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/21561"&gt;@rickbyrd&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No those are css declarations. Keep the class names as is, and place the css in your style sheet, or in the head of the template wrapped in &amp;lt;style&amp;gt;&amp;lt;/style&amp;gt; tags.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 13:01:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Problem-with-Next-Previous-link-formatting-problem/m-p/58847#M3980</guid>
      <dc:creator>Jsum</dc:creator>
      <dc:date>2017-12-04T13:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Next/Previous link formatting problem</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Problem-with-Next-Previous-link-formatting-problem/m-p/58879#M3981</link>
      <description>&lt;P&gt;My bad!&amp;nbsp; That makes more sense.&amp;nbsp; Thanks for helping me out!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rick&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 13:35:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Problem-with-Next-Previous-link-formatting-problem/m-p/58879#M3981</guid>
      <dc:creator>rickbyrd</dc:creator>
      <dc:date>2017-12-04T13:35:55Z</dc:date>
    </item>
  </channel>
</rss>

