<?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>HTML Tips and Tricks</title>
	<atom:link href="https://www.codypaste.com/category/html-2/html/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.codypaste.com/category/html-2/html/</link>
	<description>THE WEB PLAYGROUND</description>
	<lastBuildDate>Wed, 21 Aug 2024 07:22:04 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://www.codypaste.com/wp-content/uploads/2022/12/cropped-codypaste-32x32.png</url>
	<title>HTML Tips and Tricks</title>
	<link>https://www.codypaste.com/category/html-2/html/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>HTML Form Select Menu Styling</title>
		<link>https://www.codypaste.com/html-form-select-menu-styling/</link>
					<comments>https://www.codypaste.com/html-form-select-menu-styling/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 21 Aug 2024 07:22:04 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML Tips]]></category>
		<guid isPermaLink="false">https://www.codypaste.com/?p=1158</guid>

					<description><![CDATA[<p>Here we will see how to style HTML Form  &#60;select&#62; menu. [crayon-6985e63cb5aa6574380282/] &#160;</p>
<p>The post <a href="https://www.codypaste.com/html-form-select-menu-styling/">HTML Form Select Menu Styling</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Here we will see how to style HTML Form  &lt;select&gt; menu.</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
    &lt;title&gt;Custom Select Dropdown&lt;/title&gt;
    &lt;style&gt;
        /* Hide the native select */
        select {
            display: none;
        }

        /* Style the select wrapper */
        .select-wrapper {
            position: relative;
            width: 200px;
            cursor: pointer;
        }

        .selected-option {
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            background-color: #fff;
            color: #333;
            font-size: 16px;
        }

        .select-wrapper::after {
            content: '▼';
            position: absolute;
            top: 50%;
            right: 10px;
            transform: translateY(-50%);
            pointer-events: none;
            color: #333;
        }

        /* Custom dropdown styling */
        .custom-select {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background-color: #fff;
            border: 1px solid #ccc;
            border-radius: 0 0 5px 5px;
            z-index: 1;
        }

        .custom-select .option {
            padding: 10px;
            cursor: pointer;
        }

        .custom-select .option:hover {
            background-color: red;
            color: #fff;
        }

        /* Highlight the selected option */
        .custom-select .option.selected {
            background-color: red;
            color: #fff;
        }

        /* Show dropdown when wrapper is active */
        .select-wrapper.active .custom-select {
            display: block;
        }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div class="select-wrapper"&gt;
        &lt;div class="selected-option"&gt;Select an option&lt;/div&gt;
        &lt;select&gt;
            &lt;option value="1"&gt;Option 1&lt;/option&gt;
            &lt;option value="2"&gt;Option 2&lt;/option&gt;
            &lt;option value="3"&gt;Option 3&lt;/option&gt;
            &lt;option value="4"&gt;Option 4&lt;/option&gt;
        &lt;/select&gt;
        &lt;div class="custom-select"&gt;
            &lt;div class="option" data-value="1"&gt;Option 1&lt;/div&gt;
            &lt;div class="option" data-value="2"&gt;Option 2&lt;/div&gt;
            &lt;div class="option" data-value="3"&gt;Option 3&lt;/div&gt;
            &lt;div class="option" data-value="4"&gt;Option 4&lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;script&gt;
        const selectWrapper = document.querySelector('.select-wrapper');
        const selectElement = document.querySelector('select');
        const selectedOption = document.querySelector('.selected-option');
        const customSelect = document.querySelector('.custom-select');

        // Handle option click
        customSelect.querySelectorAll('.option').forEach(option =&gt; {
            option.addEventListener('click', () =&gt; {
                const value = option.getAttribute('data-value');
                const text = option.textContent;
                selectedOption.textContent = text;
                selectElement.value = value; // Set the value of the hidden select element

                // Update custom dropdown to highlight the selected option
                customSelect.querySelectorAll('.option').forEach(opt =&gt; {
                    opt.classList.remove('selected');
                });
                option.classList.add('selected');

                selectWrapper.classList.remove('active');
            });
        });

        // Toggle dropdown visibility on selected option click
        selectedOption.addEventListener('click', () =&gt; {
            selectWrapper.classList.toggle('active');
        });

        // Hide dropdown when clicking outside
        document.addEventListener('click', (e) =&gt; {
            if (!selectWrapper.contains(e.target)) {
                selectWrapper.classList.remove('active');
            }
        });
    &lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre><p>&nbsp;</p>
<p>The post <a href="https://www.codypaste.com/html-form-select-menu-styling/">HTML Form Select Menu Styling</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codypaste.com/html-form-select-menu-styling/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Move Element / Div on Scroll &#8211; Data Scroll Speed</title>
		<link>https://www.codypaste.com/move-element-div-on-scroll-data-scroll-speed/</link>
					<comments>https://www.codypaste.com/move-element-div-on-scroll-data-scroll-speed/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Sun, 20 Jan 2019 00:17:00 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML Tips]]></category>
		<guid isPermaLink="false">http://www.codypaste.com/?p=699</guid>

					<description><![CDATA[<p>jQuery different scroll speeds on scroll, set different scroll speed to element. data-scroll-speed https://codepen.io/vipulrai/pen/vvoREM HTML: [crayon-6985e63cb6fce119398672/] CSS: [crayon-6985e63cb6fda881948599/] JS [crayon-6985e63cb6fde567272613/] &#160;</p>
<p>The post <a href="https://www.codypaste.com/move-element-div-on-scroll-data-scroll-speed/">Move Element / Div on Scroll &#8211; Data Scroll Speed</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>jQuery different scroll speeds on scroll, set different scroll speed to element.</p>
<h3>data-scroll-speed</h3>
<p><a href="https://codepen.io/vipulrai/pen/vvoREM">https://codepen.io/vipulrai/pen/vvoREM</a></p>
<h1>HTML:</h1>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;div class="content"&gt;
&lt;div class="wrapper"&gt;
&lt;div class="box" data-scroll-speed="2"&gt;S&lt;/div&gt;
&lt;div class="box" data-scroll-speed="3"&gt;C&lt;/div&gt;
&lt;div class="" data-scroll-speed="6"&gt;R&lt;/div&gt;
&lt;div class="box" data-scroll-speed="5"&gt;O&lt;/div&gt;
&lt;div class="box" data-scroll-speed="90"&gt;L&lt;/div&gt;
&lt;div class="box" data-scroll-speed="4"&gt;L&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</pre><p></p>
<h1>CSS:</h1>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">@import bourbon

body
font-family: arial, sans-serif

.content
height: 5000px

.wrapper
+display(flex)
+justify-content(center)
+align-items(center)
+size(100% 100vh)
+position(fixed, 0px null null 0px)

.box
+flex(none)
+size(100px)
line-height: 100px
text-align: center
font-size: 25px
color: #fff
background: #ff8330
will-change: transform

&amp;:nth-of-type(2)
background: #E01B5D
&amp;:nth-of-type(3)
background: #30FFFF
&amp;:nth-of-type(4)
background: #B3FF30
&amp;:nth-of-type(5)
background: #308AFF
&amp;:nth-of-type(6)
background: #1BE059</pre><p></p>
<h1><strong>JS</strong></h1>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">$.fn.moveIt = function(){
var $window = $(window);
var instances = [];

$(this).each(function(){
instances.push(new moveItItem($(this)));
});

window.addEventListener('scroll', function(){
var scrollTop = $window.scrollTop();
instances.forEach(function(inst){
inst.update(scrollTop);
});
}, {passive: true});
}

var moveItItem = function(el){
this.el = $(el);
this.speed = parseInt(this.el.attr('data-scroll-speed'));
};

moveItItem.prototype.update = function(scrollTop){
this.el.css('transform', 'translateY(' + -(scrollTop / this.speed) + 'px)');
};

// Initialization
$(function(){
$('[data-scroll-speed]').moveIt();
});</pre><p>&nbsp;</p>
<p>The post <a href="https://www.codypaste.com/move-element-div-on-scroll-data-scroll-speed/">Move Element / Div on Scroll &#8211; Data Scroll Speed</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codypaste.com/move-element-div-on-scroll-data-scroll-speed/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Compress website for fast Loading</title>
		<link>https://www.codypaste.com/compress-website-for-fast-loading/</link>
					<comments>https://www.codypaste.com/compress-website-for-fast-loading/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 22 Jun 2016 06:57:32 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML Tips]]></category>
		<guid isPermaLink="false">http://www.codypaste.com/?p=454</guid>

					<description><![CDATA[<p>For fast loading website you have to do some compression. 🙂 you can check page speed here: https://tools.pingdom.com/ https://developers.google.com/speed/pagespeed/insights/ &#160; Compress .jpg to .png: you can use photoshop for image compression: File &#8211; &#62; Save for web and device. &#160; Compress Js/Jquery: &#60;script type=&#8221;text/javascript&#8221; src=&#8221;jquery_1.7.2.min.js&#8221; async&#62;&#60;/script&#62; Add &#8216;async&#8217; in js for compression. &#160; Compress CSS: &#8230; </p>
<p class="link-more"><a href="https://www.codypaste.com/compress-website-for-fast-loading/" class="more-link">read more<span class="screen-reader-text"> "Compress website for fast Loading"</span></a></p>
<p>The post <a href="https://www.codypaste.com/compress-website-for-fast-loading/">Compress website for fast Loading</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>For fast loading website you have to do some compression. 🙂</p>
<p>you can check page speed here:</p>
<ul>
<li>https://tools.pingdom.com/</li>
<li>https://developers.google.com/speed/pagespeed/insights/</li>
</ul>
<p>&nbsp;</p>
<h3><strong>Compress .jpg to .png:</strong></h3>
<p>you can use photoshop for image compression: <strong>File &#8211; &gt; Save for web and device.</strong></p>
<p>&nbsp;</p>
<h3><strong>Compress Js/Jquery:</strong></h3>
<p>&lt;script type=&#8221;text/javascript&#8221; src=&#8221;jquery_1.7.2.min.js&#8221; <span style="color: #339966;"><strong>async</strong></span>&gt;&lt;/script&gt;</p>
<p>Add &#8216;async&#8217; in js for compression.</p>
<p>&nbsp;</p>
<h3><strong>Compress CSS:</strong></h3>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;link href="style.css" rel="stylesheet" type="text/css" /&gt;</pre><p>to</p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;script&gt;
        var cb = function() {
        var l = document.createElement('link'); l.rel = 'stylesheet';
        l.href = 'style.css';
        var h = document.getElementsByTagName('head')[0]; h.parentNode.insertBefore(l, h);
        };
        var raf = requestAnimationFrame || mozRequestAnimationFrame ||
        webkitRequestAnimationFrame || msRequestAnimationFrame;
        if (raf) raf(cb);
        else window.addEventListener('load', cb);
&lt;/script&gt;</pre><p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a href="https://www.codypaste.com/compress-website-for-fast-loading/">Compress website for fast Loading</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codypaste.com/compress-website-for-fast-loading/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Easy Page Preloader</title>
		<link>https://www.codypaste.com/easy-page-preloader/</link>
					<comments>https://www.codypaste.com/easy-page-preloader/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Tue, 03 May 2016 18:04:19 +0000</pubDate>
				<category><![CDATA[Cool Effect]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML Tips]]></category>
		<guid isPermaLink="false">http://www.codypaste.com/?p=416</guid>

					<description><![CDATA[<p>Easy Page Preloader in HTML/HTML5. &#160; Now a days every websites are powered by Preloader. It will add interactivity to a webpage with some sort of animations.  Today I am going to tell how to create a simple jQuery Preloader with 2 lines of jQuery code &#38; few lines of CSS code. &#160; &#160; &#160; &#8230; </p>
<p class="link-more"><a href="https://www.codypaste.com/easy-page-preloader/" class="more-link">read more<span class="screen-reader-text"> "Easy Page Preloader"</span></a></p>
<p>The post <a href="https://www.codypaste.com/easy-page-preloader/">Easy Page Preloader</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Easy Page Preloader in HTML/HTML5.</p>
<p>&nbsp;</p>
<p>Now a days every websites are powered by Preloader. It will add interactivity to a webpage with some sort of animations.  Today I am going to tell how to create a simple <ins>jQuery Preloader</ins> with 2 lines of jQuery code &amp; few lines of CSS code.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Before &lt;/head&gt;:</strong></p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;script type="text/javascript"&gt;
  
  //Function to hide the loading div
  function loadingDivHide()
  {
      document.getElementById("loading_div").style.display = "none";
      document.getElementById("content_area_div").style.display = "";
  }
  
  &lt;/script&gt;
&lt;style type="text/css"&gt;
     .loaderClass
     {
        position: absolute;
        top: 50%;
        left: 0px;
        z-index: 999999;
        text-align: center;
        width: 100%;
        height: 200px
        
        
     }
&lt;/style&gt;</pre><p></p>
<p><strong>HTML:</strong></p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;body onload="loadingDivHide()"&gt;

&lt;div id="loading_div" class="loaderClass"&gt;
&lt;img src="ajax-loader.gif" height="66" width="66"&gt;&lt;br&gt;
&lt;h1&gt;Loading...&lt;/h1&gt;
&lt;/div&gt;

&lt;div id="content_area_div" style="display:none"&gt;

&lt;!-- Page content goes here --&gt;

&lt;/div&gt;

&lt;/body&gt;</pre><p></p>
<p>&nbsp;</p>
<p>The post <a href="https://www.codypaste.com/easy-page-preloader/">Easy Page Preloader</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codypaste.com/easy-page-preloader/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Touch-enabled jQuery Carousel Slider Plugin with jQuery &#8211; Prrple Slider</title>
		<link>https://www.codypaste.com/touch-enabled-jquery-carousel-slider-plugin-with-jquery-prrple-slider/</link>
					<comments>https://www.codypaste.com/touch-enabled-jquery-carousel-slider-plugin-with-jquery-prrple-slider/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Mon, 11 Apr 2016 08:24:55 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML Tips]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">http://www.codypaste.com/?p=351</guid>

					<description><![CDATA[<p>Responsive slider, continue slider, slide on loop. Prrple Slider is a jQuery plugin for creating a simple yet feature-rich carousel slider that features responsive layout, touch events, custom animations and infinite looping. More features: Horizontal or vertical mode slide or fade animations Autoplay. Cross browser. Auto resize slider on browser resize Callback functions Easing effects. &#8230; </p>
<p class="link-more"><a href="https://www.codypaste.com/touch-enabled-jquery-carousel-slider-plugin-with-jquery-prrple-slider/" class="more-link">read more<span class="screen-reader-text"> "Touch-enabled jQuery Carousel Slider Plugin with jQuery &#8211; Prrple Slider"</span></a></p>
<p>The post <a href="https://www.codypaste.com/touch-enabled-jquery-carousel-slider-plugin-with-jquery-prrple-slider/">Touch-enabled jQuery Carousel Slider Plugin with jQuery &#8211; Prrple Slider</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Responsive slider, continue slider, slide on loop.</p>
<p>Prrple <a href="http://www.jqueryscript.net/slider/">Slider</a> is a jQuery plugin for creating a simple yet feature-rich carousel slider that features responsive layout, touch events, custom animations and infinite looping.</p>
<h2>More features:</h2>
<ul>
<li>Horizontal or vertical mode</li>
<li>slide or fade animations</li>
<li>Autoplay.</li>
<li>Cross browser.</li>
<li>Auto resize slider on browser resize</li>
<li>Callback functions</li>
<li>Easing effects. (Requires jQuery easing plugin)</li>
</ul>
<p>Source: <a href="http://www.jqueryscript.net/slider/Touch-enabled-jQuery-Carousel-Slider-Plugin-with-jQuery-Prrple-Slider.html" target="_blank" rel="nofollow">http://www.jqueryscript.net/slider/Touch-enabled-jQuery-Carousel-Slider-Plugin-with-jQuery-Prrple-Slider.html</a></p>
<p>&nbsp;</p>
<h1><a href="http://www.jqueryscript.net/slider/Touch-enabled-jQuery-Carousel-Slider-Plugin-with-jQuery-Prrple-Slider.html" target="_blank" rel="nofollow">Download </a></h1>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a href="https://www.codypaste.com/touch-enabled-jquery-carousel-slider-plugin-with-jquery-prrple-slider/">Touch-enabled jQuery Carousel Slider Plugin with jQuery &#8211; Prrple Slider</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codypaste.com/touch-enabled-jquery-carousel-slider-plugin-with-jquery-prrple-slider/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Back to top link in HTML</title>
		<link>https://www.codypaste.com/back-to-top-link-in-html/</link>
					<comments>https://www.codypaste.com/back-to-top-link-in-html/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Sun, 10 Apr 2016 16:05:22 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML Tips]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">http://www.codypaste.com/?p=346</guid>

					<description><![CDATA[<p>&#160; If you want a link in HTML page for going to top, and appear after scroll. CSS: [crayon-6985e63cb78ea658146747/] &#160; HTML/Javascript: [crayon-6985e63cb78f5842101685/] &#160;</p>
<p>The post <a href="https://www.codypaste.com/back-to-top-link-in-html/">Back to top link in HTML</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>&nbsp;</p>
<p>If you want a link in HTML page for going to top, and appear after scroll.</p>
<p><strong>CSS:</strong></p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;style&gt;
.back-to-top {
	position: fixed;
	bottom: 2em;
	right: 0px;
	text-decoration: none;
	color: #000000;
	background-color: rgba(235, 235, 235, 0.80);
	font-size: 12px;
	padding: 1em;
	display: none;
}

.back-to-top:hover {	
	background-color: rgba(135, 135, 135, 0.50);
}	
&lt;/style&gt;</pre><p></p>
<p>&nbsp;</p>
<p><strong>HTML/Javascript:</strong></p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;a href="#" class="back-to-top"&gt;Back to Top&lt;/a&gt;
	   &lt;script&gt;            
			jQuery(document).ready(function() {
				var offset = 220;
				var duration = 500;
				jQuery(window).scroll(function() {
					if (jQuery(this).scrollTop() &gt; offset) {
						jQuery('.back-to-top').fadeIn(duration);
					} else {
						jQuery('.back-to-top').fadeOut(duration);
					}
				});
				
				jQuery('.back-to-top').click(function(event) {
					event.preventDefault();
					jQuery('html, body').animate({scrollTop: 0}, duration);
					return false;
				})
			});
		&lt;/script&gt;</pre><p></p>
<p>&nbsp;</p>
<p>The post <a href="https://www.codypaste.com/back-to-top-link-in-html/">Back to top link in HTML</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codypaste.com/back-to-top-link-in-html/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Confirm before a form submit or link</title>
		<link>https://www.codypaste.com/confirm-before-a-form-submit/</link>
					<comments>https://www.codypaste.com/confirm-before-a-form-submit/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 06 Apr 2016 11:21:58 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML Tips]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">http://www.codypaste.com/?p=338</guid>

					<description><![CDATA[<p>&#160; Ask before process, confirm before process, popup before process in php. ask before delete. &#160; you can always use inline JS code like this: [crayon-6985e63cb7b44848828020/] and [crayon-6985e63cb7b4e756869994/] &#160;</p>
<p>The post <a href="https://www.codypaste.com/confirm-before-a-form-submit/">Confirm before a form submit or link</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>&nbsp;</p>
<p>Ask before process, confirm before process, popup before process in php.</p>
<p>ask before delete.</p>
<p>&nbsp;</p>
<p>you can always use inline JS code like this:</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;form action="adminprocess.php" method="POST" onsubmit="return confirm('Are you sure you want to submit this form?');"&gt;
    &lt;input type="submit" name="completeYes" value="Complete Transaction" /&gt;
&lt;/form&gt;</pre><p></p>
<p>and</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;a href="url_to_delete" onclick="return confirm('Are you sure you want to delete this item?');"&gt;Delete&lt;/a&gt;</pre><p></p>
<p>&nbsp;</p>
<p>The post <a href="https://www.codypaste.com/confirm-before-a-form-submit/">Confirm before a form submit or link</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codypaste.com/confirm-before-a-form-submit/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Increase &#038; Decrease / Chnage Font Size on Click</title>
		<link>https://www.codypaste.com/increase-decrease-chnage-font-size-on-click/</link>
					<comments>https://www.codypaste.com/increase-decrease-chnage-font-size-on-click/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Wed, 17 Feb 2016 07:12:48 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML Tips]]></category>
		<guid isPermaLink="false">http://www.codypaste.com/?p=268</guid>

					<description><![CDATA[<p>[crayon-6985e63cb7d92480529841/] &#160;</p>
<p>The post <a href="https://www.codypaste.com/increase-decrease-chnage-font-size-on-click/">Increase &#038; Decrease / Chnage Font Size on Click</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;div align="center"&gt;
       
&lt;SCRIPT LANGUAGE="JavaScript"&gt;


function changeFontSize(element,step)
{
	step = parseInt(step,10);
	var el = document.getElementById(element);
	var curFont = parseInt(el.style.fontSize,10);
	el.style.fontSize = (curFont+step) + 'px';
}


&lt;/script&gt;

&lt;a href="javascript:void(0);" onClick="changeFontSize('vipcontent','2');"&gt;Increase font&lt;/a&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;a href="javascript:void(0);" onClick="changeFontSize('vipcontent',-2);"&gt;Decrease font&lt;/a&gt;
        &lt;br /&gt;
        &lt;br /&gt;
&lt;p id="vipcontent" style="font-size:12px;"&gt;
This is the test text to increase or decrease.
&lt;/p&gt;
       
&lt;/div&gt;</pre><p></p>
<p>&nbsp;</p>
<p>The post <a href="https://www.codypaste.com/increase-decrease-chnage-font-size-on-click/">Increase &#038; Decrease / Chnage Font Size on Click</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codypaste.com/increase-decrease-chnage-font-size-on-click/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Select Menu in Text Field</title>
		<link>https://www.codypaste.com/select-menu-in-text-field/</link>
					<comments>https://www.codypaste.com/select-menu-in-text-field/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Sat, 23 May 2015 17:25:12 +0000</pubDate>
				<category><![CDATA[HTML Tips]]></category>
		<guid isPermaLink="false">http://www.codypaste.com/?p=109</guid>

					<description><![CDATA[<p>[crayon-6985e63cb7fbe749549039/] &#160;</p>
<p>The post <a href="https://www.codypaste.com/select-menu-in-text-field/">Select Menu in Text Field</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;input name="course" type="text" id="course" list="courseName"/&gt;
&lt;datalist id="courseName"&gt;
    &lt;option value="Pen"&gt;Pen&lt;/option&gt;
    &lt;option value="Pencil"&gt;Pencil&lt;/option&gt;
    &lt;option value="Paper"&gt;Paper&lt;/option&gt;
&lt;/datalist&gt;</pre><p>&nbsp;</p>
<p>The post <a href="https://www.codypaste.com/select-menu-in-text-field/">Select Menu in Text Field</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codypaste.com/select-menu-in-text-field/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Mouse Cursor in HTML/CSS</title>
		<link>https://www.codypaste.com/mouse-cursor-in-htmlcss/</link>
					<comments>https://www.codypaste.com/mouse-cursor-in-htmlcss/?noamp=mobile#respond</comments>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 30 Apr 2015 12:16:28 +0000</pubDate>
				<category><![CDATA[HTML Tips]]></category>
		<guid isPermaLink="false">http://www.codypaste.com/?p=101</guid>

					<description><![CDATA[<p>[crayon-6985e63cb8209631786295/] Example: Mouse over the words to change the cursor. auto crosshair default e-resize grab help move n-resize ne-resize nw-resize pointer progress s-resize se-resize sw-resize text w-resize wait not-allowed no-drop &#160; http://www.w3schools.com/cssref/tryit.asp?filename=trycss_cursor</p>
<p>The post <a href="https://www.codypaste.com/mouse-cursor-in-htmlcss/">Mouse Cursor in HTML/CSS</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><pre class="urvanov-syntax-highlighter-plain-tag">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;
&lt;p&gt;Mouse over the words to change the cursor.&lt;/p&gt;
&lt;span style="cursor:auto"&gt;auto&lt;/span&gt;&lt;br&gt;
&lt;span style="cursor:crosshair"&gt;crosshair&lt;/span&gt;&lt;br&gt;
&lt;span style="cursor:default"&gt;default&lt;/span&gt;&lt;br&gt;
&lt;span style="cursor:e-resize"&gt;e-resize&lt;/span&gt;&lt;br&gt;
&lt;span style="cursor:grab"&gt;grab&lt;/span&gt;&lt;br&gt;
&lt;span style="cursor:help"&gt;help&lt;/span&gt;&lt;br&gt;
&lt;span style="cursor:move"&gt;move&lt;/span&gt;&lt;br&gt;
&lt;span style="cursor:n-resize"&gt;n-resize&lt;/span&gt;&lt;br&gt;
&lt;span style="cursor:ne-resize"&gt;ne-resize&lt;/span&gt;&lt;br&gt;
&lt;span style="cursor:nw-resize"&gt;nw-resize&lt;/span&gt;&lt;br&gt;
&lt;span style="cursor:pointer"&gt;pointer&lt;/span&gt;&lt;br&gt;
&lt;span style="cursor:progress"&gt;progress&lt;/span&gt;&lt;br&gt;
&lt;span style="cursor:s-resize"&gt;s-resize&lt;/span&gt;&lt;br&gt;
&lt;span style="cursor:se-resize"&gt;se-resize&lt;/span&gt;&lt;br&gt;
&lt;span style="cursor:sw-resize"&gt;sw-resize&lt;/span&gt;&lt;br&gt;
&lt;span style="cursor:text"&gt;text&lt;/span&gt;&lt;br&gt;
&lt;span style="cursor:w-resize"&gt;w-resize&lt;/span&gt;&lt;br&gt;
&lt;span style="cursor:wait"&gt;wait&lt;/span&gt;&lt;br&gt;
&lt;span style="cursor:not-allowed"&gt;not-allowed&lt;/span&gt;&lt;br&gt;
&lt;span style="cursor:no-drop"&gt;no-drop&lt;/span&gt;&lt;br&gt;
&lt;/body&gt;
&lt;/html&gt;</pre><p>Example:</p>
<p>Mouse over the words to change the cursor.</p>
<p><span style="cursor: auto;">auto</span></p>
<p><span style="cursor: crosshair;">crosshair</span></p>
<p><span style="cursor: default;">default</span></p>
<p><span style="cursor: e-resize;">e-resize</span></p>
<p><span style="cursor: grab;">grab</span></p>
<p><span style="cursor: help;">help</span></p>
<p><span style="cursor: move;">move</span></p>
<p><span style="cursor: n-resize;">n-resize</span></p>
<p><span style="cursor: ne-resize;">ne-resize</span></p>
<p><span style="cursor: nw-resize;">nw-resize</span></p>
<p><span style="cursor: pointer;">pointer</span></p>
<p><span style="cursor: progress;">progress</span></p>
<p><span style="cursor: s-resize;">s-resize</span></p>
<p><span style="cursor: se-resize;">se-resize</span></p>
<p><span style="cursor: sw-resize;">sw-resize</span></p>
<p><span style="cursor: text;">text</span></p>
<p><span style="cursor: w-resize;">w-resize</span></p>
<p><span style="cursor: wait;">wait</span></p>
<p><span style="cursor: not-allowed;">not-allowed</span></p>
<p><span style="cursor: no-drop;">no-drop</span></p>
<p>&nbsp;</p>
<p><a href="http://www.w3schools.com/cssref/tryit.asp?filename=trycss_cursor">http://www.w3schools.com/cssref/tryit.asp?filename=trycss_cursor</a></p>
<p>The post <a href="https://www.codypaste.com/mouse-cursor-in-htmlcss/">Mouse Cursor in HTML/CSS</a> appeared first on <a href="https://www.codypaste.com">Cody Paste</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.codypaste.com/mouse-cursor-in-htmlcss/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
