<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 18:50:53 +0000</lastBuildDate>
    <item>
      <title>(PHP) Creating an RSS Feed From Your Site - COBOLdinosaur</title>
      <link>https://snipplr.com/view/109769/creating-an-rss-feed-from-your-site</link>
      <description>&lt;p&gt;If you syndicate your content with an RSS feed it can help to drive additional traffic to the content pages.&lt;/p&gt;</description>
      <pubDate>Wed, 16 Sep 2015 01:37:42 UTC</pubDate>
      <guid>https://snipplr.com/view/109769/creating-an-rss-feed-from-your-site</guid>
    </item>
    <item>
      <title>(PHP) Formatted Text Output using str_pad() - COBOLdinosaur</title>
      <link>https://snipplr.com/view/104864/formatted-text-output-using-strpad</link>
      <description>&lt;p&gt;This is a simple PHP class that can be used to produce nicely formatted reports from unorganized data.&lt;/p&gt;</description>
      <pubDate>Wed, 15 Jul 2015 01:42:09 UTC</pubDate>
      <guid>https://snipplr.com/view/104864/formatted-text-output-using-strpad</guid>
    </item>
    <item>
      <title>(PHP) Using Array_multisort to re-order data - COBOLdinosaur</title>
      <link>https://snipplr.com/view/101000/using-arraymultisort-to-reorder-data</link>
      <description>&lt;p&gt;This snippet allows an array or multiple arrays to be re-sorted using multiple key fields.&lt;/p&gt;</description>
      <pubDate>Fri, 22 May 2015 02:52:37 UTC</pubDate>
      <guid>https://snipplr.com/view/101000/using-arraymultisort-to-reorder-data</guid>
    </item>
    <item>
      <title>(JavaScript) Caoturing the Mouse Position - COBOLdinosaur</title>
      <link>https://snipplr.com/view/100902/caoturing-the-mouse-position</link>
      <description>&lt;p&gt;The key to making it work is the event listener that get added using the DOM method that binds it to the mousemove event and declares the event handler. Most event can be bound to a handler this way.&lt;/p&gt;</description>
      <pubDate>Wed, 20 May 2015 03:22:32 UTC</pubDate>
      <guid>https://snipplr.com/view/100902/caoturing-the-mouse-position</guid>
    </item>
    <item>
      <title>(CSS) Transition Effect for Gradients on Hover - COBOLdinosaur</title>
      <link>https://snipplr.com/view/97919/transition-effect-for-gradients-on-hover</link>
      <description>&lt;p&gt;A simple transition from a linear gradient to a radial gradient can be made very dramatic by including a color change transition.  One of 10 effects presented.&lt;/p&gt;</description>
      <pubDate>Tue, 21 Apr 2015 04:31:57 UTC</pubDate>
      <guid>https://snipplr.com/view/97919/transition-effect-for-gradients-on-hover</guid>
    </item>
    <item>
      <title>(CSS) Rotating HTML Elements With CSS - COBOLdinosaur</title>
      <link>https://snipplr.com/view/96352/rotating-html-elements-with-css</link>
      <description>&lt;p&gt;The base rotation can be in three different planes; though as we will see later combinations can make it look like we rotate through many perceived planes. In the examples below instead of rotate we specify the plane by using rotateZ (The default we have been using), rotateX, and rotateY.&lt;/p&gt;</description>
      <pubDate>Fri, 10 Apr 2015 04:57:18 UTC</pubDate>
      <guid>https://snipplr.com/view/96352/rotating-html-elements-with-css</guid>
    </item>
    <item>
      <title>(CSS) Animated Tooltips With Very Little Coding - COBOLdinosaur</title>
      <link>https://snipplr.com/view/80979/animated-tooltips-with-very-little-coding</link>
      <description>&lt;p&gt;Using a sibling relationship in CSS allows all kinds of tooltips effects without scripting or a lot of coding.  There are a bunch of different effects on the page and the possibilities are limited only by imagination.&lt;/p&gt;</description>
      <pubDate>Thu, 06 Nov 2014 07:47:55 UTC</pubDate>
      <guid>https://snipplr.com/view/80979/animated-tooltips-with-very-little-coding</guid>
    </item>
    <item>
      <title>(CSS) Corrugated Background using Gradient - COBOLdinosaur</title>
      <link>https://snipplr.com/view/74905/corrugated-background-using-gradient</link>
      <description>&lt;p&gt;A simple effect using simple CSS. This is part of a collection of gradient effects&lt;/p&gt;</description>
      <pubDate>Fri, 20 Jun 2014 04:14:50 UTC</pubDate>
      <guid>https://snipplr.com/view/74905/corrugated-background-using-gradient</guid>
    </item>
    <item>
      <title>(CSS) Select Using Styled Optgroup Tags - COBOLdinosaur</title>
      <link>https://snipplr.com/view/72893/select-using-styled-optgroup-tags</link>
      <description>&lt;p&gt;Having a handle for groups of options allows script driven dynamic effects to manage changes of presentation with in the select without having to refresh or use other inefficient methods of updating the display.&lt;/p&gt;</description>
      <pubDate>Thu, 14 Nov 2013 04:55:16 UTC</pubDate>
      <guid>https://snipplr.com/view/72893/select-using-styled-optgroup-tags</guid>
    </item>
    <item>
      <title>(PHP) HEREDOC to Simplify Code Generation - COBOLdinosaur</title>
      <link>https://snipplr.com/view/71940/heredoc-to-simplify-code-generation</link>
      <description>&lt;p&gt;Doing the echo with multiple concatenated bits of strings was very error prone and I was always getting parsing errors. The toggle format where you flip PHP on and off throughout the HTML is less error prone but is a real pain in the ass if you have short tags disabled. Those methods are okay for short pieces of code, but any long page just can't be easily generated that way.&lt;/p&gt;</description>
      <pubDate>Tue, 23 Jul 2013 06:07:30 UTC</pubDate>
      <guid>https://snipplr.com/view/71940/heredoc-to-simplify-code-generation</guid>
    </item>
    <item>
      <title>(CSS) Drop down menu with fade in no scripting - COBOLdinosaur</title>
      <link>https://snipplr.com/view/71823/drop-down-menu-with-fade-in-no-scripting</link>
      <description>&lt;p&gt;The first thing you might notice is that I am not using nested lists to layout the menu. That is an old XHTML layout technique. I am using the more semantically correct HTML5 &lt;nav&gt; tag. Menus are not lists, they are navigation so using the more modern tag makes sense, and it turns out to be easier to work with.&lt;/p&gt;</description>
      <pubDate>Fri, 12 Jul 2013 04:19:58 UTC</pubDate>
      <guid>https://snipplr.com/view/71823/drop-down-menu-with-fade-in-no-scripting</guid>
    </item>
    <item>
      <title>(CSS) 6 even spaced elements across the page using calc() for sizing - COBOLdinosaur</title>
      <link>https://snipplr.com/view/71560/6-even-spaced-elements-across-the-page-using-calc-for-sizing</link>
      <description>&lt;p&gt;The CSS calc() function can be used anywhere a length, frequency, angle, time, number, or integer is required. It can be used to apply values for width/height; font-size; margins; padding; borders; shadows; border radius; text-indent;top/right/bottom/left(for position); and any place that a number is required.&lt;/p&gt;</description>
      <pubDate>Tue, 18 Jun 2013 05:59:11 UTC</pubDate>
      <guid>https://snipplr.com/view/71560/6-even-spaced-elements-across-the-page-using-calc-for-sizing</guid>
    </item>
    <item>
      <title>(CSS) Curtain Effect Using Multiple Background Images - COBOLdinosaur</title>
      <link>https://snipplr.com/view/71417/curtain-effect-using-multiple-background-images</link>
      <description>&lt;p&gt;Each image is positioned, dimensioned, and repeated according to the comma separated values in the other background properties. The images in the list are layered front to back in the same order they are listed in the rule declaration. If a background color is specified it will be the bottom layer.&lt;/p&gt;</description>
      <pubDate>Thu, 06 Jun 2013 05:05:00 UTC</pubDate>
      <guid>https://snipplr.com/view/71417/curtain-effect-using-multiple-background-images</guid>
    </item>
    <item>
      <title>(HTML) Alternating column colors in HTML tables - COBOLdinosaur</title>
      <link>https://snipplr.com/view/71306/alternating-column-colors-in-html-tables</link>
      <description>&lt;p&gt;The colgroup and col structure is like a directive that specifies table formatting outside of the normal flow. Notice that the col tags do not get closed in HTML5, and the cascade is irregular. Normally the cascade applies to children, but the rows and cells in the table are not children or grandchildren of the col or colgroup. The relationship is more like stepchildren. Because of the irregular relationship, the CSS specificity appears to be quirky. Its not really, but it is not always as expected. To insure the the correct application of both the colgroup rules and the other rules being applied to the tr and td tags the colgroup rules should be applied in line, or be the final rule in the style entries.&lt;/p&gt;</description>
      <pubDate>Sun, 26 May 2013 01:59:56 UTC</pubDate>
      <guid>https://snipplr.com/view/71306/alternating-column-colors-in-html-tables</guid>
    </item>
    <item>
      <title>(HTML) Captions For Lists and Images - COBOLdinosaur</title>
      <link>https://snipplr.com/view/71211/captions-for-lists-and-images</link>
      <description>&lt;p&gt;One of the limits of using lists (ordered and unordered) is that they have no provision for a heading. You can do something like: &lt;ul&gt;This is a Title&lt;li&gt; etc... but it is invalid because the list containers can only contain List Items. One way commonly used to put a heading on a list is to put a paragraph or div ahead of the list. It is messy and ugly, but it validates.&#13;
&#13;
The problem with that solution is that the elements are not bound to each other and therefore it can break unless you make it even uglier by putting a common wrapper around both elements, and then you have extra linefeeds to deal with.&lt;/p&gt;</description>
      <pubDate>Fri, 17 May 2013 03:58:58 UTC</pubDate>
      <guid>https://snipplr.com/view/71211/captions-for-lists-and-images</guid>
    </item>
    <item>
      <title>(JavaScript) Animating Shapes - COBOLdinosaur</title>
      <link>https://snipplr.com/view/71184/animating-shapes</link>
      <description>&lt;p&gt;Changes shape back and forth from a round element to a square element.&lt;/p&gt;</description>
      <pubDate>Wed, 15 May 2013 05:51:36 UTC</pubDate>
      <guid>https://snipplr.com/view/71184/animating-shapes</guid>
    </item>
    <item>
      <title>(CSS) Traversing Tables with DOM Table Methods - COBOLdinosaur</title>
      <link>https://snipplr.com/view/70894/traversing-tables-with-dom-table-methods</link>
      <description>&lt;p&gt;A table is nothing but a set of blocks. A simple grid. There are a lot of web apps where the storage of data in a grid would make functions much easier to deal with using simple scripting. If only it was easy to target cells and traverse between them like a spreadsheet.&lt;/p&gt;</description>
      <pubDate>Tue, 23 Apr 2013 05:52:04 UTC</pubDate>
      <guid>https://snipplr.com/view/70894/traversing-tables-with-dom-table-methods</guid>
    </item>
    <item>
      <title>(CSS) Effective Use of the CSS3 box-shadow Property - COBOLdinosaur</title>
      <link>https://snipplr.com/view/70798/effective-use-of-the-css3-boxshadow-property</link>
      <description>&lt;p&gt;I cannot imagine why developers spend all kinds of time trying to get some lame jquery menu working and don't have 15 minutes to spend enhancing the content with a few shadows instead of bloating the page with images that include a shadow.&lt;/p&gt;</description>
      <pubDate>Tue, 16 Apr 2013 05:52:24 UTC</pubDate>
      <guid>https://snipplr.com/view/70798/effective-use-of-the-css3-boxshadow-property</guid>
    </item>
    <item>
      <title>(JavaScript) Dynamic Table Generator - COBOLdinosaur</title>
      <link>https://snipplr.com/view/70654/dynamic-table-generator</link>
      <description>&lt;p&gt;The use of dynamic data acquisition on modern web sites and in a lot of intranet applications, sometimes means we have to build structures dynamically as data comes in from a feed or AJAX operations. The problem is not with the data, but rather that it is unstructured, or not appropriately tagged. The solution is to dynamically build the necessary structures to make the data presentable in a web page&lt;/p&gt;</description>
      <pubDate>Thu, 04 Apr 2013 07:15:15 UTC</pubDate>
      <guid>https://snipplr.com/view/70654/dynamic-table-generator</guid>
    </item>
    <item>
      <title>(HTML) Captions for images - COBOLdinosaur</title>
      <link>https://snipplr.com/view/70374/captions-for-images</link>
      <description>&lt;p&gt;The nice part about it is that the caption is locked to the image. The figure can be positioned and styled and the caption can be rendered with any affect that can be applied to any other text element.&lt;/p&gt;</description>
      <pubDate>Wed, 13 Mar 2013 05:56:54 UTC</pubDate>
      <guid>https://snipplr.com/view/70374/captions-for-images</guid>
    </item>
    <item>
      <title>(JavaScript) Round Slide Show With an Iris - COBOLdinosaur</title>
      <link>https://snipplr.com/view/69946/round-slide-show-with-an-iris</link>
      <description>&lt;p&gt;Simle markup, simple CSS combined with ver straight forward javascript to produce some really cool effects.&lt;/p&gt;</description>
      <pubDate>Fri, 15 Feb 2013 06:41:26 UTC</pubDate>
      <guid>https://snipplr.com/view/69946/round-slide-show-with-an-iris</guid>
    </item>
    <item>
      <title>(CSS) Styling select options - COBOLdinosaur</title>
      <link>https://snipplr.com/view/69895/styling-select-options</link>
      <description>&lt;p&gt;In modern browsers select options can now be style using most css properties. Of course, IE is still behind but it does support some styling as well.  There are a lot more options on the site.&lt;/p&gt;</description>
      <pubDate>Tue, 12 Feb 2013 07:58:57 UTC</pubDate>
      <guid>https://snipplr.com/view/69895/styling-select-options</guid>
    </item>
    <item>
      <title>(PHP) Custom Logging Site Events - COBOLdinosaur</title>
      <link>https://snipplr.com/view/69663/custom-logging-site-events</link>
      <description>&lt;p&gt;To keep up on important incidents on your site without having to dig through server logs the alternative can be custom logs.&lt;/p&gt;</description>
      <pubDate>Sun, 27 Jan 2013 07:45:21 UTC</pubDate>
      <guid>https://snipplr.com/view/69663/custom-logging-site-events</guid>
    </item>
    <item>
      <title>(CSS) Image Frame on Round Photo - COBOLdinosaur</title>
      <link>https://snipplr.com/view/69587/image-frame-on-round-photo</link>
      <description>&lt;p&gt;Using an image background for a photo allows all kinds of framing possibilities&lt;/p&gt;</description>
      <pubDate>Wed, 23 Jan 2013 05:27:04 UTC</pubDate>
      <guid>https://snipplr.com/view/69587/image-frame-on-round-photo</guid>
    </item>
    <item>
      <title>(CSS) Fixed Heading Scrollable Table Simulation - COBOLdinosaur</title>
      <link>https://snipplr.com/view/69368/fixed-heading-scrollable-table-simulation</link>
      <description>&lt;p&gt;Uses the table display properties in div tags to merge the attributes of multiple tags.&lt;/p&gt;</description>
      <pubDate>Sun, 06 Jan 2013 05:33:14 UTC</pubDate>
      <guid>https://snipplr.com/view/69368/fixed-heading-scrollable-table-simulation</guid>
    </item>
  </channel>
</rss>
