<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>css - WP2X</title> <atom:link href="https://wp2x.com/tag/css/feed/" rel="self" type="application/rss+xml" /><link>https://wp2x.com</link> <description>We can help your Wordpress faster</description> <lastBuildDate>Fri, 20 Feb 2015 02:16:37 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod> hourly </sy:updatePeriod> <sy:updateFrequency> 1 </sy:updateFrequency> <generator>https://wordpress.org/?v=5.6.16</generator> <item><title>WordPress jQuery Tiles Gallery Free</title><link>https://wp2x.com/wordpress-jquery-tiles-gallery-free/</link> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Fri, 20 Feb 2015 02:15:10 +0000</pubDate> <category><![CDATA[HTML/JavaScript/CSS]]></category> <category><![CDATA[css]]></category> <category><![CDATA[html]]></category> <category><![CDATA[html5]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[theme]]></category> <category><![CDATA[wordpress html]]></category> <category><![CDATA[xhtml]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=346</guid><description><![CDATA[<p>jQuery Tiles Gallery is a gorgeus way to immediately present all your pictures, the visitors of your web site can see all the pictures at a glance, like no other gallery or slider can do! And now It &#8216;s free one on codecanyon this month. You can check the demo URL here http://tiles-gallery.com/ &#160; NO ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/wordpress-jquery-tiles-gallery-free/">WordPress jQuery Tiles Gallery Free</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>jQuery Tiles Gallery is a gorgeus way to immediately present all your pictures, the visitors of your web site can see all the pictures at a glance, like no other gallery or slider can do! And now It &#8216;s free one on codecanyon this month. You can check the demo URL here <a
href="http://tiles-gallery.com/" target="_blank">http://tiles-gallery.com/</a><span
id="more-346"></span></p><p>&nbsp;</p><h2><a
href="http://wp2x.com/wp-content/uploads/2015/02/artwork-tg.jpg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-348" src="http://wp2x.com/wp-content/uploads/2015/02/artwork-tg.jpg?4b2a2c&amp;4b2a2c" alt="artwork-tg" width="590" height="300" srcset="https://wp2x.com/wp-content/uploads/2015/02/artwork-tg.jpg 590w, https://wp2x.com/wp-content/uploads/2015/02/artwork-tg-300x153.jpg 300w" sizes="(max-width: 590px) 100vw, 590px" /></a></h2><h2>NO PROGRAMMING SKILLS REQUIRED</h2><p>jQuery Tiles Gallery arranges your images inside a random-generated grid, it’s much more than a simple multiple column layout, it’s a beautiful and fancy way to present your showcases, galleries, photos… and so on. The subject of the photos will always be focused, since you can choose the better alignment for each photo.. If you don’t know where to start just copy/paste the script in the demo file bundled with the script.</p><h2>NO GRAPHIC SKILLS REQUIRED</h2><p>This script preloads and resizes images to fit them inside each “cell”, so you don’t need to make images of same size or proportions! Be just sure the weight of your photos is good for web (that could mean from few Kb up to 100Kb depending on desired quality).</p><h2>CAPTIONS</h2><p>It’s also possible to add captions simply adding them as ALT attribute of each image. The captions can be static or shown on rollover.</p><p><a
href="http://wp2x.com/wp-content/uploads/2015/02/jQuery-Tiles-Gallery.jpg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-347" src="http://wp2x.com/wp-content/uploads/2015/02/jQuery-Tiles-Gallery.jpg?4b2a2c&amp;4b2a2c" alt="jQuery Tiles Gallery" width="400" height="375" srcset="https://wp2x.com/wp-content/uploads/2015/02/jQuery-Tiles-Gallery.jpg 400w, https://wp2x.com/wp-content/uploads/2015/02/jQuery-Tiles-Gallery-300x281.jpg 300w" sizes="(max-width: 400px) 100vw, 400px" /></a></p><p>&nbsp;</p><h2>CALLBACK</h2><p>If you know a bit of javascript you can easiliy add any further functionality to the gallery, simply passing your function as callback.</p><h2>CUSTOM ALIGNMENT, BEST FRAMING</h2><p>You can set a default horizontal and vertical alignment for all the pictures, but you can also overwrite the default alignment simply using the “data” attributes on the IMG tag.</p><p>And now it &#8216;s <strong>FREE</strong> here <div
class="freebie-sub-box"><div
class="freebie-sub-inner"><h3>Please enter your email and get it now!</h3><p>Simply enter your email address and the download link will be sent right to your email box.</p><form
class="freebie-sub-form"><div
class="replaceArea"><div
class="replaceArea-error"></div><center> <input
type="text" onblur="if(this.value=='')this.value='Email Address';" onfocus="if(this.value=='Email Address')this.value='';" value="Email Address" name="email" class="name"> <input
type="submit" value="Download" class="freebie-submit"></center> <input
type="hidden" name="id" id="id" value="aHR0cHM6Ly9hcHAuYm94LmNvbS9zL2k5ajB5MGc3amlieDU1YWV1dWtubm5zdGdhbHpsbnc5"></div></form></div></div><p>The post <a
rel="nofollow" href="https://wp2x.com/wordpress-jquery-tiles-gallery-free/">WordPress jQuery Tiles Gallery Free</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> </item> <item><title>Lock orientation to portrait layout in mobile web by js</title><link>https://wp2x.com/lock-orientation-portrait-layout-mobile-web-js/</link> <comments>https://wp2x.com/lock-orientation-portrait-layout-mobile-web-js/#comments</comments> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Sat, 18 Oct 2014 13:42:36 +0000</pubDate> <category><![CDATA[Blog]]></category> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[css]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[jquery mobile]]></category> <category><![CDATA[mobile web]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=307</guid><description><![CDATA[<p>Have you ever become crazy with orientation change? If yes then you are in the same issue with me some days ago. But I figured out the solution so that I share you here to save your time and my time if I want to use it later. Let &#8216;s lock orientation to portrait layout ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/lock-orientation-portrait-layout-mobile-web-js/">Lock orientation to portrait layout in mobile web by js</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Have you ever become crazy with orientation change? If yes then you are in the same issue with me some days ago. But I figured out the solution so that I share you here to save your time and my time if I want to use it later. Let &#8216;s lock orientation to portrait layout in mobile web by js by this code.<span
id="more-307"></span></p><p><a
href="http://wp2x.com/wp-content/uploads/2014/10/sreen-rotation.jpg?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter wp-image-308 size-medium" src="http://wp2x.com/wp-content/uploads/2014/10/sreen-rotation-300x157.jpg?4b2a2c&amp;4b2a2c" alt="sreen rotation" width="300" height="157" /></a></p><pre class="lang:js decode:true ">$(document).ready(function () {
  function reorient(e) {
    var portrait = (window.orientation % 180 == 0);
    $("body &gt; div").css("-webkit-transform", !portrait ? "rotate(-90deg)" : "");
  }
  window.onorientationchange = reorient;
  window.setTimeout(reorient, 0);
});</pre><p>The code expects the entire contents of your page to live inside a div just inside the body element. It rotates that div 90 degrees in landscape mode &#8211; back to portrait.</p><p>Left as an exercise to the reader: the div rotates around its centerpoint, so its position will probably need to be adjusted unless it&#8217;s perfectly square.</p><p>Also, there&#8217;s an unappealing visual problem. When you change orientation, Safari rotates slowly, then the top-level div snaps to 90degrees different. For even more fun, add</p><pre class="lang:css decode:true">body &gt; div { -webkit-transition: all 1s ease-in-out; }</pre><p>to your CSS. When the device rotates, then Safari does, then the content of your page does. Beguiling!</p><p><em>Reference: stackoverflow.com</em></p><p>The post <a
rel="nofollow" href="https://wp2x.com/lock-orientation-portrait-layout-mobile-web-js/">Lock orientation to portrait layout in mobile web by js</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> <wfw:commentRss>https://wp2x.com/lock-orientation-portrait-layout-mobile-web-js/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Background Stretch and scale in CSS 100%</title><link>https://wp2x.com/background-stretch-scale-css-100/</link> <comments>https://wp2x.com/background-stretch-scale-css-100/#comments</comments> <dc:creator><![CDATA[david]]></dc:creator> <pubDate>Tue, 16 Sep 2014 11:34:17 +0000</pubDate> <category><![CDATA[HTML/JavaScript/CSS]]></category> <category><![CDATA[Wordpress Tips]]></category> <category><![CDATA[css]]></category> <category><![CDATA[html]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://wp2x.com/?p=275</guid><description><![CDATA[<p>Background Stretch and scale in CSS is what you will need to do in responsive html slicing all of time. My situation happen all of times so that I share you this way to help you and remind me when I need it. The key and the magic to show background of a css layer ...</p><p>The post <a
rel="nofollow" href="https://wp2x.com/background-stretch-scale-css-100/">Background Stretch and scale in CSS 100%</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></description> <content:encoded><![CDATA[<p>Background Stretch and scale in CSS is what you will need to do in responsive html slicing all of time. My situation happen all of times so that I share you this way to help you and remind me when I need it.<span
id="more-275"></span></p><p><a
href="http://wp2x.com/wp-content/uploads/2014/09/css-style-background-e1410867199533.png?4b2a2c&amp;4b2a2c"><img
loading="lazy" class="aligncenter size-full wp-image-276" src="http://wp2x.com/wp-content/uploads/2014/09/css-style-background-e1410867199533.png?4b2a2c&amp;4b2a2c" alt="css style background" width="600" height="308" /></a></p><p>The key and the magic to show background of a css layer in 100% scale is background-size. Just use it like this</p><pre class="lang:css decode:true ">#my_container {
background-size: 100% auto; /* width and height, can be %, px or whatever. */
}</pre><p>To preserve the aspect ratio of the image you should use &#8220;background-size: cover;&#8221; or &#8220;background-size: contain;&#8221;.</p><p>Scaling an image with CSS is not quite possible, but a similar effect can be achieved in the following manner, though.</p><p>Use this html:</p><pre class="lang:xhtml decode:true">&lt;div id="background"&gt;
    &lt;img src="img.jpg" class="stretch" alt="" /&gt;
&lt;/div&gt;</pre><p>with the following CSS:</p><pre class="lang:css decode:true">#background {

    width: 100%;

    height: 100%;

    position: absolute;

    left: 0px;

    top: 0px;

    z-index: 0;

}
.stretch {
width:100%;
height:100%;
}</pre><p>and you should be done!</p><p>In order to scale the image to be &#8220;full bleed&#8221; and maintain the aspect ratio, you can do this instead:</p><pre class="lang:css decode:true ">.stretch { min-width:100%; min-height:100%; width:auto; height:auto; }</pre><p>Reference: <a
href="http://stackoverflow.com/questions/376253/stretch-and-scale-css-background">http://stackoverflow.com/questions/376253/stretch-and-scale-css-background</a></p><p>The post <a
rel="nofollow" href="https://wp2x.com/background-stretch-scale-css-100/">Background Stretch and scale in CSS 100%</a> appeared first on <a
rel="nofollow" href="https://wp2x.com">WP2X</a>.</p> ]]></content:encoded> <wfw:commentRss>https://wp2x.com/background-stretch-scale-css-100/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>