<?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 &#8211; Sibeesh Passion</title>
	<atom:link href="https://www.sibeeshpassion.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sibeeshpassion.com</link>
	<description>My passion towards life</description>
	<lastBuildDate>Tue, 10 Jul 2018 11:49:20 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>/wp-content/uploads/2017/04/Sibeesh_Passion_Logo_Small.png</url>
	<title>CSS &#8211; Sibeesh Passion</title>
	<link>https://www.sibeeshpassion.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Custom Pager Using prev and next In jQuery</title>
		<link>https://www.sibeeshpassion.com/custom-pager-using-prev-and-next-in-jquery/</link>
					<comments>https://www.sibeeshpassion.com/custom-pager-using-prev-and-next-in-jquery/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Wed, 21 Oct 2015 10:44:24 +0000</pubDate>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Custom Pager]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Next jQuery]]></category>
		<category><![CDATA[Prev jQuery]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=10829</guid>

					<description><![CDATA[In this post we will create a custom pager using prev and next functions in jQuery. You can treat this post as a simple demo of using prev and next functions. We will be using some html UI elements and we will apply the paging functionality by using native jQuery codes. In this way you can get the information about on which page is requested by the user, once you get it, you can create an jQuery ajax call and fetch the data from the database and show. You need to know the basic of jQuery and CSS before going [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In this post we will create a custom pager using <em>prev </em>and <em>next </em> functions in <a href="http://sibeeshpassion.com/category/jquery" target="_blank">jQuery</a>. You can treat this post as a simple demo of using <em>prev </em>and <em>next </em> functions. We will be using some html UI elements and we will apply the paging functionality by using native jQuery codes. In this way you can get the information about on which page is requested by the user, once you get it, you can create an jQuery ajax call and fetch the data from the database and show. You need to know the basic of jQuery and CSS before going further. I hope you will like this.</p>
<p><strong>Background</strong></p>
<p>We can find so many pager in on-line. Here in this post I am just trying to populate my own pager. Please be noted that this is just a demo, so that you can not find more functionalities here. </p>
<p><strong>Using the code</strong></p>
<p>First thing you need to do is create a page.</p>
<p>[html]<br />
&lt;!DOCTYPE html&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
    &lt;title&gt;Prev Next In jQuery &#8211; Sibeesh Passion&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
   &lt;div id=&quot;container&quot;&gt;<br />
        &lt;div id=&quot;outer&quot;&gt;<br />
            &lt;div&gt;-6&lt;/div&gt;<br />
            &lt;div&gt;-5&lt;/div&gt;<br />
            &lt;div&gt;-4&lt;/div&gt;<br />
            &lt;div&gt;-3&lt;/div&gt;<br />
            &lt;div&gt;-2&lt;/div&gt;<br />
            &lt;div&gt;-1&lt;/div&gt;<br />
            &lt;div class=&quot;first&quot;&gt;0&lt;/div&gt;<br />
            &lt;div&gt;1&lt;/div&gt;<br />
            &lt;div&gt;2&lt;/div&gt;<br />
            &lt;div&gt;3&lt;/div&gt;<br />
            &lt;div&gt;4&lt;/div&gt;<br />
            &lt;div&gt;5&lt;/div&gt;<br />
            &lt;div&gt;6&lt;/div&gt;<br />
            &lt;div&gt;7&lt;/div&gt;<br />
        &lt;/div&gt;<br />
        &lt;div&gt;<br />
            &lt;table&gt;<br />
                &lt;tr&gt;<br />
                    &lt;td class=&quot;prev&quot; title=&quot;Previous&quot;&gt;&lt;&lt;&lt;&lt;/td&gt;<br />
                    &lt;td class=&quot;next&quot; title=&quot;Next&quot;&gt;&gt;&gt;&gt;&lt;/td&gt;<br />
                &lt;/tr&gt;<br />
            &lt;/table&gt;<br />
        &lt;/div&gt;<br />
    &lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
[/html]</p>
<p>Then we will apply some CSS, so that it will look nice. </p>
<p>[css]<br />
 &lt;style&gt;<br />
        #outer div {<br />
            width: 20px;<br />
            height: 20px;<br />
            border: 1px solid #ccc;<br />
            border-radius: 5px;<br />
            padding: 10px;<br />
            margin: 10px;<br />
            box-shadow: 1px 1px 1px #999;<br />
            font-style: oblique;<br />
            text-align: center;<br />
            float: left;<br />
            background: green;<br />
        }</p>
<p>        #outer .first {<br />
            background: blue;<br />
        }</p>
<p>        .prev, .next {<br />
            font-weight: bold;<br />
            font-size:30px;<br />
            padding:10px;<br />
            cursor:pointer;<br />
        }</p>
<p>        #container {<br />
            text-align: center;<br />
            width: 50%;<br />
            margin-left: 25%;<br />
        }<br />
    &lt;/style&gt;<br />
[/css]</p>
<p>Now add jQuery reference.</p>
<p>[js]<br />
&lt;script&gt;<br />
 &lt;script src=&quot;JQuery%20Versions/jquery-1.11.3.min.js&quot;&gt;&lt;/script&gt;<br />
[/js]</p>
<p>Run your page and make sure that our custom pager design is fine.</p>
<div id="attachment_10830" style="width: 660px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/10/Custom_Pager_Using_prev_and_next_In_jQuery-e1445423340334.png"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-10830" src="http://sibeeshpassion.com/wp-content/uploads/2015/10/Custom_Pager_Using_prev_and_next_In_jQuery-e1445423340334.png" alt="Custom Pager Using prev and next In jQuery" width="650" height="103" class="size-full wp-image-10830" srcset="/wp-content/uploads/2015/10/Custom_Pager_Using_prev_and_next_In_jQuery-e1445423340334.png 650w, /wp-content/uploads/2015/10/Custom_Pager_Using_prev_and_next_In_jQuery-e1445423340334-300x48.png 300w, /wp-content/uploads/2015/10/Custom_Pager_Using_prev_and_next_In_jQuery-e1445423340334-400x63.png 400w" sizes="(max-width: 650px) 100vw, 650px" /></a><p id="caption-attachment-10830" class="wp-caption-text">Custom Pager Using prev and next In jQuery</p></div>
<p>Now it is time to add our scripts.</p>
<p>[js]<br />
&lt;script&gt;<br />
        $(document).ready(function () {<br />
            var $first = $(&quot;.first&quot;);<br />
            var i = 0;<br />
            $(&quot;.prev&quot;).click(function () {<br />
                ++i;<br />
                if ($(&#8216;#outer div&#8217;).length / 2 &lt; i) {<br />
                    i = 0;<br />
                    $(&#8216;#outer .first&#8217;).css(&#8216;background&#8217;, &#8216;blue&#8217;);<br />
                    $first = $(&quot;.first&quot;);<br />
                } else {<br />
                    $first = $first.prev();<br />
                    $(&quot;#outer div&quot;).css(&quot;background&quot;, &quot;green&quot;);<br />
                    $first.css(&quot;background&quot;, &quot;blue&quot;);<br />
                }<br />
            });<br />
            $(&quot;.next&quot;).click(function () {<br />
                ++i;<br />
                if ($(&#8216;#outer div&#8217;).length / 2 &lt; i) {<br />
                    i = 0;<br />
                    $(&#8216;#outer .first&#8217;).css(&#8216;background&#8217;, &#8216;blue&#8217;);<br />
                    $first = $(&quot;.first&quot;);<br />
                } else {<br />
                    $first = $first.next();<br />
                    $(&quot;#outer div&quot;).css(&quot;background&quot;, &quot;green&quot;);<br />
                    $first.css(&quot;background&quot;, &quot;blue&quot;);<br />
                }<br />
            });<br />
        });<br />
    &lt;/script&gt;<br />
[/js]</p>
<p>If you notice in the code block, you can see that we are checking<em> $(&#8216;#outer div&#8217;).length / 2 < i</em> in each click. This will get true when the user clicked after the selection goes to end. We are just making the iteration to first when this occurs. </p>
<p>We are doing the above mentioned scenario both in prev click and next click. Now it is time for demo right?</p>
<p>Please see the demo here: <a href="http://sibeeshpassion.com/demo/custompager/" target="_blank">Custom Pager</a></p>
<p>That is all. We did it.</p>
<p><strong>Complete Code</strong></p>
<p>[html]<br />
&lt;!DOCTYPE html&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
    &lt;title&gt;Prev Next In jQuery &#8211; Sibeesh Passion&lt;/title&gt;<br />
    &lt;script src=&quot;http://sibeeshpassion.com/content/scripts/jquery-2.0.2.min.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script&gt;<br />
        $(document).ready(function () {<br />
            var $first = $(&quot;.first&quot;);<br />
            var i = 0;<br />
            $(&quot;.prev&quot;).click(function () {<br />
                ++i;<br />
                if ($(&#8216;#outer div&#8217;).length / 2 &lt; i) {<br />
                    i = 0;<br />
                    $(&#8216;#outer .first&#8217;).css(&#8216;background&#8217;, &#8216;blue&#8217;);<br />
                    $first = $(&quot;.first&quot;);<br />
                } else {<br />
                    $first = $first.prev();<br />
                    $(&quot;#outer div&quot;).css(&quot;background&quot;, &quot;green&quot;);<br />
                    $first.css(&quot;background&quot;, &quot;blue&quot;);<br />
                }<br />
            });<br />
            $(&quot;.next&quot;).click(function () {<br />
                ++i;<br />
                if ($(&#8216;#outer div&#8217;).length / 2 &lt; i) {<br />
                    i = 0;<br />
                    $(&#8216;#outer .first&#8217;).css(&#8216;background&#8217;, &#8216;blue&#8217;);<br />
                    $first = $(&quot;.first&quot;);<br />
                } else {<br />
                    $first = $first.next();<br />
                    $(&quot;#outer div&quot;).css(&quot;background&quot;, &quot;green&quot;);<br />
                    $first.css(&quot;background&quot;, &quot;blue&quot;);<br />
                }<br />
            });<br />
        });<br />
    &lt;/script&gt;<br />
    &lt;style&gt;<br />
        #outer div {<br />
            width: 20px;<br />
            height: 20px;<br />
            border: 1px solid #ccc;<br />
            border-radius: 5px;<br />
            padding: 10px;<br />
            margin: 10px;<br />
            box-shadow: 1px 1px 1px #999;<br />
            font-style: oblique;<br />
            text-align: center;<br />
            float: left;<br />
            background: green;<br />
        }</p>
<p>        #outer .first {<br />
            background: blue;<br />
        }</p>
<p>        .prev, .next {<br />
            font-weight: bold;<br />
            font-size:30px;<br />
            padding:10px;<br />
            cursor:pointer;<br />
        }</p>
<p>        #container {<br />
            text-align: center;<br />
            width: 50%;<br />
            margin-left: 25%;<br />
        }<br />
    &lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
    &lt;div id=&quot;container&quot;&gt;<br />
        &lt;div id=&quot;outer&quot;&gt;<br />
            &lt;div&gt;-6&lt;/div&gt;<br />
            &lt;div&gt;-5&lt;/div&gt;<br />
            &lt;div&gt;-4&lt;/div&gt;<br />
            &lt;div&gt;-3&lt;/div&gt;<br />
            &lt;div&gt;-2&lt;/div&gt;<br />
            &lt;div&gt;-1&lt;/div&gt;<br />
            &lt;div class=&quot;first&quot;&gt;0&lt;/div&gt;<br />
            &lt;div&gt;1&lt;/div&gt;<br />
            &lt;div&gt;2&lt;/div&gt;<br />
            &lt;div&gt;3&lt;/div&gt;<br />
            &lt;div&gt;4&lt;/div&gt;<br />
            &lt;div&gt;5&lt;/div&gt;<br />
            &lt;div&gt;6&lt;/div&gt;<br />
            &lt;div&gt;7&lt;/div&gt;<br />
        &lt;/div&gt;<br />
        &lt;div&gt;<br />
            &lt;table&gt;<br />
                &lt;tr&gt;<br />
                    &lt;td class=&quot;prev&quot; title=&quot;Previous&quot;&gt;&lt;&lt;&lt;&lt;/td&gt;<br />
                    &lt;td class=&quot;next&quot; title=&quot;Next&quot;&gt;&gt;&gt;&gt;&lt;/td&gt;<br />
                &lt;/tr&gt;<br />
            &lt;/table&gt;<br />
        &lt;/div&gt;<br />
    &lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>[/html]</p>
<p><strong>Conclusion</strong></p>
<p>Did I miss anything that you may think which is needed? Could you find this post as useful? I hope you liked this article. Please share me your valuable suggestions and feedback.</p>
<p><strong>Your turn. What do you think?</strong></p>
<p>A blog isn’t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, Asp.Net Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I can.</p>
<p>Kindest Regards<br />
Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/custom-pager-using-prev-and-next-in-jquery/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Overwrite CSS Styles Using addClass In JQuery</title>
		<link>https://www.sibeeshpassion.com/overwrite-css-styles-using-addclass-in-jquery/</link>
					<comments>https://www.sibeeshpassion.com/overwrite-css-styles-using-addclass-in-jquery/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Wed, 21 Oct 2015 00:06:18 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[JQuery addClass]]></category>
		<category><![CDATA[jquery functions]]></category>
		<category><![CDATA[Overwrite CSS Styles]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=10811</guid>

					<description><![CDATA[In this post we will see how we can overwrite CSS styles using addClass method in jQuery. We have so many options to change the styles of a particular element. We can do it by editing the style sheet manually. But what if you want to do the same dynamically? If you need to change a CSS property dynamically, I suggest you to read it here: CSS Important . In this post we are applying more CSS rules to the same element. I hope you will like this. Here I am using jQuery 2.0.2 version, you can use whichever version [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In this post we will see how we can overwrite <a href="http://sibeeshpassion.com/category/css/" target="_blank">CSS </a>styles using addClass method in jQuery. We have so many options to change the styles of a particular element. We can do it by editing the style sheet manually. But what if you want to do the same dynamically? If you need to change a CSS property dynamically, I suggest you to read it here: <a href="http://sibeeshpassion.com/apply-css-important-in-jquery-and-css/" target="_blank">CSS Important </a>. In this post we are applying more CSS rules to the same element. I hope you will like this.</p>
<blockquote><p>Here I am using jQuery 2.0.2 version, you can use whichever version you like. </p></blockquote>
<p><strong>Background</strong></p>
<p>Recently I have got a requirement of changing a CSS property of an element which is common for element. So I wanted to change the CSS property only if my condition becomes true. In this situation I used jQuery addClass to do this requirement. Here I will show you how. </p>
<p><strong>Using the code</strong></p>
<p>First thing you need to do is create a page.</p>
<p>[html]<br />
&lt;!DOCTYPE html&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
    &lt;title&gt;AddClass JQuery Demo &#8211; Sibeesh Passion&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
   AddClass JQuery Demo &#8211; Sibeesh Passion<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
[/html]</p>
<p>Then you need to include the script needed.</p>
<p>[js]<br />
&lt;script src=&quot;http://sibeeshpassion.com/content/scripts/jquery-2.0.2.min.js&quot;&gt;&lt;/script&gt;<br />
[/js]</p>
<p>Now you need to write the scripts.</p>
<p>[js]<br />
&lt;script&gt;<br />
        $(document).ready(function () {<br />
            setTimeout(function () {<br />
				$(&#8216;.first&#8217;).addClass(&#8216;second&#8217;);<br />
			}, 5000);<br />
        });<br />
    &lt;/script&gt;<br />
[/js]</p>
<p>We are adding a new CSS style <em>second </em> to a class <em>first </em>. We will add this after five seconds of document ready. So now we need to create the styles right?</p>
<p>[css]<br />
  &lt;style&gt;<br />
        .first {<br />
            width: 100px;<br />
	    height: 100px;<br />
            border: 1px solid #ccc;<br />
            border-radius: 5px;<br />
            padding: 10px;<br />
            margin: 10px;<br />
            box-shadow: 1px 1px 1px #999;<br />
            font-style: oblique;<br />
            text-align: center;<br />
			background:green;<br />
        }<br />
	.second {<br />
            width: 200px;<br />
	    height: 200px;<br />
            border: 1px solid #ccc;<br />
            border-radius: 5px;<br />
            padding: 10px;<br />
            margin: 10px;<br />
            box-shadow: 1px 1px 1px #999;<br />
            background: blue;<br />
            font-style: oblique;<br />
            text-align: center;<br />
        }<br />
    &lt;/style&gt;<br />
[/css]</p>
<p>Now please run your browser, you can see the following output. </p>
<div id="attachment_10812" style="width: 303px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/10/Overwrite_CSS_Styles.png"><img decoding="async" aria-describedby="caption-attachment-10812" src="http://sibeeshpassion.com/wp-content/uploads/2015/10/Overwrite_CSS_Styles.png" alt="Overwrite CSS Styles Using addClass" width="293" height="181" class="size-full wp-image-10812" /></a><p id="caption-attachment-10812" class="wp-caption-text">Overwrite CSS Styles Using addClass</p></div>
<p>Now after five seconds, the same element will look as follows.</p>
<div id="attachment_10813" style="width: 324px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/10/Overwrite_CSS_Styles1.png"><img decoding="async" aria-describedby="caption-attachment-10813" src="http://sibeeshpassion.com/wp-content/uploads/2015/10/Overwrite_CSS_Styles1.png" alt="Overwrite CSS Styles Using addClass" width="314" height="298" class="size-full wp-image-10813" srcset="/wp-content/uploads/2015/10/Overwrite_CSS_Styles1.png 314w, /wp-content/uploads/2015/10/Overwrite_CSS_Styles1-300x285.png 300w" sizes="(max-width: 314px) 100vw, 314px" /></a><p id="caption-attachment-10813" class="wp-caption-text">Overwrite CSS Styles Using addClass</p></div>
<p>If you look at your browser console, you can see both of the styles are applied to the element. </p>
<div id="attachment_10814" style="width: 610px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/10/Overwrite_CSS_Styles2.png"><img decoding="async" aria-describedby="caption-attachment-10814" src="http://sibeeshpassion.com/wp-content/uploads/2015/10/Overwrite_CSS_Styles2.png" alt="Overwrite CSS Styles Using addClass" width="600" height="626" class="size-full wp-image-10814" srcset="/wp-content/uploads/2015/10/Overwrite_CSS_Styles2.png 600w, /wp-content/uploads/2015/10/Overwrite_CSS_Styles2-288x300.png 288w, /wp-content/uploads/2015/10/Overwrite_CSS_Styles2-400x417.png 400w, /wp-content/uploads/2015/10/Overwrite_CSS_Styles2-575x600.png 575w" sizes="(max-width: 600px) 100vw, 600px" /></a><p id="caption-attachment-10814" class="wp-caption-text">Overwrite CSS Styles Using addClass</p></div>
<p>That&#8217;s all, now we can see the complete code here.</p>
<blockquote><p>Here I am using setTimeout as my condition, you can use any condition according to your requirement. </p></blockquote>
<p><strong>Complete Code</strong></p>
<p>[html]<br />
&lt;!DOCTYPE html&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
    &lt;title&gt;AddClass JQuery Demo &#8211; Sibeesh Passion&lt;/title&gt;<br />
    &lt;script src=&quot;http://sibeeshpassion.com/content/scripts/jquery-2.0.2.min.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script&gt;<br />
        $(document).ready(function () {<br />
            setTimeout(function () {<br />
				$(&#8216;.first&#8217;).addClass(&#8216;second&#8217;);<br />
			}, 5000);<br />
        });<br />
    &lt;/script&gt;<br />
    &lt;style&gt;<br />
        .first {<br />
            width: 100px;<br />
			height: 100px;<br />
            border: 1px solid #ccc;<br />
            border-radius: 5px;<br />
            padding: 10px;<br />
            margin: 10px;<br />
            box-shadow: 1px 1px 1px #999;<br />
            font-style: oblique;<br />
            text-align: center;<br />
			background:green;<br />
        }<br />
		.second {<br />
            width: 200px;<br />
			height: 200px;<br />
            border: 1px solid #ccc;<br />
            border-radius: 5px;<br />
            padding: 10px;<br />
            margin: 10px;<br />
            box-shadow: 1px 1px 1px #999;<br />
            background: blue;<br />
            font-style: oblique;<br />
            text-align: center;<br />
        }<br />
    &lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
    AddClass JQuery Demo &#8211; Sibeesh Passion<br />
	&lt;div class=&quot;first&quot;&gt;&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>[/html]</p>
<p><strong>Conclusion</strong></p>
<p>Did I miss anything that you may think which is needed? Have you ever wanted to do this requirement? Could you find this post as useful? I hope you liked this article. Please share me your valuable suggestions and feedback.</p>
<p><strong>Your turn. What do you think?</strong></p>
<p>A blog isn’t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, Asp.Net Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I can.</p>
<p>Kindest Regards<br />
Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/overwrite-css-styles-using-addclass-in-jquery/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apply CSS Important In JQuery And CSS</title>
		<link>https://www.sibeeshpassion.com/apply-css-important-in-jquery-and-css/</link>
					<comments>https://www.sibeeshpassion.com/apply-css-important-in-jquery-and-css/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Tue, 29 Sep 2015 00:05:33 +0000</pubDate>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[!important css]]></category>
		<category><![CDATA[!important in jquery]]></category>
		<category><![CDATA[Important CSS Property In JQuery And CSS]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=10701</guid>

					<description><![CDATA[In this post we will discuss how we can apply CSS important in JQuery. We all know that we can not apply a important CSS property directly to an element. It does not work. But still there is a solution for that. Here I am going to share you that. I hope you will like this. Background Recently I was going through a situation that to apply a custom CSS to an element which already has some CSS styles and all. I wanted to overwrite those CSS in situation based, that is when some condition satisfies. Using the code First [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In this post we will discuss how we can apply <a href="http://sibeeshpassion.com/tag/css/" target="_blank">CSS </a>important in <a href="http://sibeeshpassion.com/tag/JQuery/" target="_blank">JQuery</a>. We all know that we can not apply a important CSS property directly to an element. It does not work. But still there is a solution for that. Here I am going to share you that. I hope you will like this. </p>
<p><strong>Background</strong></p>
<p>Recently I was going through a situation that to apply a custom CSS to an element which already has some CSS styles and all. I wanted to overwrite those CSS in situation based, that is when some condition satisfies.</p>
<p><strong>Using the code</strong></p>
<p>First of all we will create a page and some div element.</p>
<p>[html]<br />
&lt;!DOCTYPE html&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
&lt;head&gt;<br />
    &lt;title&gt;CSS Important In JQuery&lt;/title&gt;<br />
    &lt;script src=&quot;jquery-2.0.2.min.js&quot;&gt;&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
    &lt;div id=&quot;container&quot;&gt;<br />
        &lt;div style=&quot;width: 25px;height: 28px;padding: 5px;background-color: green;margin: 3px;float: left;cursor: move;&quot; &gt;&lt;/div&gt;<br />
        &lt;div style=&quot;width: 25px;height: 28px;padding: 5px;background-color: green;margin: 3px;float: left;cursor: move;&quot; &gt;&lt;/div&gt;<br />
        &lt;div style=&quot;width: 25px;height: 28px;padding: 5px;background-color: green;margin: 3px;float: left;cursor: move;&quot; &gt;&lt;/div&gt;<br />
    &lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>[/html]</p>
<p>You an see that I have loaded a JQuery reference and added some in-line CSS to the elements. As you all know, even if we give a custom css as follows</p>
<p>[css]<br />
 &lt;style&gt;<br />
        #container div {<br />
            width:55px;<br />
        }<br />
    &lt;/style&gt;<br />
[/css]</p>
<p>The width will be 25px, because we have set the in-line css as </p>
<p>[html]<br />
&lt;div style=&quot;width: 25px;height: 28px;padding: 5px;background-color: green;margin: 3px;float: left;cursor: move;&quot; &gt;&lt;/div&gt;<br />
[/html]</p>
<p>Now if you run your page and, check your browser console you can get to know that.</p>
<div id="attachment_10702" style="width: 644px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_1.png"><img decoding="async" aria-describedby="caption-attachment-10702" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_1-1024x146.png" alt="Important CSS Property In JQuery And CSS" width="634" height="90" class="size-large wp-image-10702" srcset="/wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_1-1024x146.png 1024w, /wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_1-300x43.png 300w, /wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_1-768x110.png 768w, /wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_1-400x57.png 400w, /wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_1.png 634w" sizes="(max-width: 634px) 100vw, 634px" /></a><p id="caption-attachment-10702" class="wp-caption-text">Important CSS Property In JQuery And CSS</p></div>
<p>In this situation, we use !important tag in the css, So if you change your css styles as follows, you can see your new css is getting applied. </p>
<p>[css]<br />
&lt;style&gt;<br />
        #container div {<br />
            width:55px !important;<br />
        }<br />
    &lt;/style&gt;<br />
[/css]</p>
<p>Now refresh your page and see the browser console. </p>
<div id="attachment_10703" style="width: 644px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_2.png"><img decoding="async" aria-describedby="caption-attachment-10703" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_2-1024x145.png" alt="Important CSS Property In JQuery And CSS" width="634" height="90" class="size-large wp-image-10703" srcset="/wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_2-1024x145.png 1024w, /wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_2-300x42.png 300w, /wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_2-768x109.png 768w, /wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_2-400x57.png 400w, /wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_2.png 634w" sizes="(max-width: 634px) 100vw, 634px" /></a><p id="caption-attachment-10703" class="wp-caption-text">Important CSS Property In JQuery And CSS</p></div>
<p>Now what if you need to change this CSS, when there is a jquery action. For example you need to change the css styles when user clicks on an element? Cool, we have a solution for that too. Now you will be thinking the solution is as follows. </p>
<p>[js]<br />
 &lt;script&gt;<br />
        $(function () {<br />
            $(&#8216;#click&#8217;).click(function () {<br />
                $(&quot;#container div&quot;).css(&#8216;width&#8217;, &#8217;75px;!important&#8217;);<br />
            });<br />
        });<br />
    &lt;/script&gt;<br />
[/js]</p>
<p>Here #click is my a href.</p>
<p>[html]<br />
&lt;a href=&quot;#&quot; id=&quot;click&quot;&gt;Click&lt;/a&gt;<br />
[/html]</p>
<p>If you run that, you will know it didn&#8217;t work. No worries, I am going to share you a solution for this. </p>
<p>Now we will change our script as follows.</p>
<p>[js]<br />
 &lt;script&gt;<br />
        $(function () {<br />
            $(&#8216;#click&#8217;).click(function () {<br />
                //$(&quot;#container div&quot;).css(&#8216;width&#8217;, &#8217;75px;!important&#8217;);<br />
                $(&quot;#container div&quot;).each(function () {<br />
                    this.style.setProperty(&#8216;width&#8217;, &#8217;75px&#8217;, &#8216;important&#8217;);<br />
                });<br />
            });<br />
        });<br />
    &lt;/script&gt;<br />
[/js]</p>
<p>And it is tie to run our page now. </p>
<div id="attachment_10704" style="width: 343px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_3.png"><img decoding="async" aria-describedby="caption-attachment-10704" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_3.png" alt="Important CSS Property In JQuery And CSS" width="333" height="58" class="size-full wp-image-10704" srcset="/wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_3.png 333w, /wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_3-300x52.png 300w, /wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_3-330x58.png 330w" sizes="(max-width: 333px) 100vw, 333px" /></a><p id="caption-attachment-10704" class="wp-caption-text">Important CSS Property In JQuery And CSS</p></div>
<p>Just click on the href, and see the output and browser console.</p>
<div id="attachment_10705" style="width: 644px" class="wp-caption alignnone"><a href="http://sibeeshpassion.com/wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_4.png"><img decoding="async" aria-describedby="caption-attachment-10705" src="http://sibeeshpassion.com/wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_4-1024x476.png" alt="Important CSS Property In JQuery And CSS" width="634" height="295" class="size-large wp-image-10705" srcset="/wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_4-1024x476.png 1024w, /wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_4-300x139.png 300w, /wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_4-768x357.png 768w, /wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_4-400x186.png 400w, /wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_4-1292x600.png 1292w, /wp-content/uploads/2015/09/Apply_CSS_Important_In_JQuery_And_CSS_4.png 1901w" sizes="(max-width: 634px) 100vw, 634px" /></a><p id="caption-attachment-10705" class="wp-caption-text">Important CSS Property In JQuery And CSS</p></div>
<p>We have done it finally.</p>
<p><strong>Complete Code</strong></p>
<p>[html]<br />
&lt;!DOCTYPE html&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
&lt;head&gt;<br />
    &lt;title&gt;CSS Important In JQuery&lt;/title&gt;<br />
    &lt;script src=&quot;jquery-2.0.2.min.js&quot;&gt;&lt;/script&gt;<br />
    &lt;script&gt;<br />
        $(function () {<br />
            $(&#8216;#click&#8217;).click(function () {<br />
                //$(&quot;#container div&quot;).css(&#8216;width&#8217;, &#8217;75px;!important&#8217;);<br />
                $(&quot;#container div&quot;).each(function () {<br />
                    this.style.setProperty(&#8216;width&#8217;, &#8217;75px&#8217;, &#8216;important&#8217;);<br />
                });<br />
            });<br />
        });<br />
    &lt;/script&gt;<br />
    &lt;style&gt;<br />
        #container div {<br />
            width:55px !important;<br />
        }<br />
    &lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
    &lt;div id=&quot;container&quot;&gt;<br />
        &lt;div style=&quot;width: 25px;height: 28px;padding: 5px;background-color: green;margin: 3px;float: left;cursor: move;&quot; &gt;&lt;/div&gt;<br />
        &lt;div style=&quot;width: 25px;height: 28px;padding: 5px;background-color: green;margin: 3px;float: left;cursor: move;&quot; &gt;&lt;/div&gt;<br />
        &lt;div style=&quot;width: 25px;height: 28px;padding: 5px;background-color: green;margin: 3px;float: left;cursor: move;&quot; &gt;&lt;/div&gt;<br />
    &lt;/div&gt;<br />
    &lt;a href=&quot;#&quot; id=&quot;click&quot;&gt;Click&lt;/a&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>[/html]</p>
<p><strong>Conclusion</strong></p>
<p>Did I miss anything that you may think which is needed?Have you ever faced this issue in your programming life? I hope you liked this article. Please share me your valuable suggestions and feedback.</p>
<p><strong>Your turn. What do you think?</strong></p>
<p>A blog isn’t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, Asp.Net Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I am able to.</p>
<p>Kindest Regards<br />
Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/apply-css-important-in-jquery-and-css/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Make Image Fit To The Screen</title>
		<link>https://www.sibeeshpassion.com/make-image-fit-to-the-screen/</link>
					<comments>https://www.sibeeshpassion.com/make-image-fit-to-the-screen/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Fri, 14 Aug 2015 08:46:02 +0000</pubDate>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Avoid image repeating in CSS]]></category>
		<category><![CDATA[Make Image Fit To The Screen]]></category>
		<category><![CDATA[Styling]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=9511</guid>

					<description><![CDATA[In this code, we will see how we can set an image to fit the screen completely. By doing this we can make sure that there is repeating of images in the background. Using The Code Here I am setting the image to the body tag. [css] #body { background: url(&#34;http://sibeeshpassion.com/content/images/indian%20flag%20banner.jpg&#34;) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } [/css] Please see other code snippets here: Code-Snippets Kindest Regards Sibeesh Venu]]></description>
										<content:encoded><![CDATA[<p>In this code, we will see how we can set an image to fit the screen completely. By doing this we can make sure that there is repeating of images in the background.</p>
<p><strong>Using The Code</strong></p>
<p>Here I am setting the image to the body tag.</p>
<p>[css]<br />
#body {<br />
            background: url(&quot;http://sibeeshpassion.com/content/images/indian%20flag%20banner.jpg&quot;) no-repeat center center fixed;<br />
            -webkit-background-size: cover;<br />
            -moz-background-size: cover;<br />
            -o-background-size: cover;<br />
            background-size: cover;<br />
        }<br />
[/css]</p>
<p>Please see other code snippets here: <a href="http://sibeeshpassion.com/category/code-snippets/" target="_blank">Code-Snippets</a></p>
<p>Kindest Regards<br />
Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/make-image-fit-to-the-screen/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>AngularJS Search Box Using Filter</title>
		<link>https://www.sibeeshpassion.com/angularjs-search-box-using-filter/</link>
					<comments>https://www.sibeeshpassion.com/angularjs-search-box-using-filter/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Tue, 16 Jun 2015 11:46:54 +0000</pubDate>
				<category><![CDATA[Angular]]></category>
		<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[Angular JS]]></category>
		<category><![CDATA[CSS]]></category>
		<guid isPermaLink="false">https://sibeeshpassion.com/?p=2801</guid>

					<description><![CDATA[Introduction Hi all, I hope you are fine . If you are new to angular JS I suggest you to read the Basics of AngularJS. Now with the belief that you have read my previous article, we are starting. Using the code We will explain that with a demo. Please see the below implementation. [js] &#60;body ng-app ng-init=&#34;placesVisited=[&#8216;Delhi&#8217;,&#8217;Kerala&#8217;,&#8217;Tamil Nadu&#8217;,&#8217;Banglore&#8217;,&#8217;Uttar Pradesh&#8217;,&#8217;Noida&#8217;,&#8217;Haryana&#8217;,&#8217;Thrissur&#8217;];&#34;&#62; &#60;div&#62; &#60;input type=&#34;text&#34; ng-model=&#34;curPlace&#34; class=&#34;inputText&#34;&#62; &#60;ul&#62; &#60;li ng-repeat=&#34;place in placesVisited &#124; filter:curPlace&#34;&#62; &#60;a ng-href=&#34;https://www.google.co.in/webhp?q={{place}}&#34;&#62;{{place}} &#60;/a&#62; &#60;/li&#62; &#60;/ul&#62; &#60;/div&#62; &#60;script src=&#34;angular.min.js&#34;&#62;&#60;/script&#62; &#60;/body&#62; [/js] In this, as we discussed with the previous article, I have declared my ng-app and ng-init. In the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>Hi all, I hope you are fine . If you are new to angular JS I suggest you to read the <a href="http://sibeeshpassion.com/basics-of-angularjs/" target="_blank">Basics of AngularJS</a>.</p>
<p>Now with the belief that you have read my previous article, we are starting.</p>
<p><strong>Using the code</strong></p>
<p>We will explain that with a demo. Please see the below implementation.<br />
[js]<br />
&lt;body ng-app ng-init=&quot;placesVisited=[&#8216;Delhi&#8217;,&#8217;Kerala&#8217;,&#8217;Tamil Nadu&#8217;,&#8217;Banglore&#8217;,&#8217;Uttar Pradesh&#8217;,&#8217;Noida&#8217;,&#8217;Haryana&#8217;,&#8217;Thrissur&#8217;];&quot;&gt;<br />
    &lt;div&gt;<br />
        &lt;input type=&quot;text&quot; ng-model=&quot;curPlace&quot; class=&quot;inputText&quot;&gt;<br />
        &lt;ul&gt;<br />
            &lt;li ng-repeat=&quot;place in placesVisited | filter:curPlace&quot;&gt;<br />
                &lt;a ng-href=&quot;https://www.google.co.in/webhp?q={{place}}&quot;&gt;{{place}} &lt;/a&gt;<br />
            &lt;/li&gt;<br />
        &lt;/ul&gt;<br />
    &lt;/div&gt;<br />
    &lt;script src=&quot;angular.min.js&quot;&gt;&lt;/script&gt;<br />
&lt;/body&gt;<br />
[/js]</p>
<p>In this, as we discussed with the previous article, I have declared my ng-app and ng-init. In the initialization part, I have given the place names I have visited.<br />
[js]<br />
placesVisited=[&#8216;Delhi&#8217;,&#8217;Kerala&#8217;,&#8217;Tamil Nadu&#8217;,&#8217;Banglore&#8217;,&#8217;Uttar Pradesh&#8217;,&#8217;Noida&#8217;,&#8217;Haryana&#8217;,&#8217;Thrissur&#8217;];<br />
[/js]</p>
<p>I have declared my model with the name curPlace and after we are binding the initialized array elements to the li tag using ng-repeat directive. I have set the href as follows to make it meaningful, so that if you click a place name, it will redirect to the Google search.<br />
[js]<br />
&lt;a ng-href=&quot;https://www.google.co.in/webhp?q={{place}}&quot;&gt;{{place}} &lt;/a&gt;<br />
[/js]</p>
<p>Here the process is whenever you type any character in the model curPlace , the filter will be triggered and it will bind the appropriate result to the li. For a basic implementation you do not need to do anything than this. Angular JS makes a searching functionality much easier right ?</p>
<p><strong>Include CSS if you need </strong><br />
[css]<br />
&lt;style&gt;<br />
        .inputText {<br />
            border: 1px solid #ccc;<br />
            border-radius: 10px;<br />
            background-color: #0ff;<br />
            box-shadow: 1px 1px 1px 1px #ccc;<br />
            width: 230px;<br />
            height: 30px;<br />
        }    </p>
<p>        ul {<br />
            list-style: none;<br />
            padding: 10px;<br />
            background-color: #CAEAF5;<br />
            border-radius: 10px;<br />
            border: 1px solid #ccc;<br />
            width: 210px;<br />
        }    </p>
<p>        li {<br />
            border: 1px solid #ccc;<br />
            border-right: none;<br />
            border-left: none;<br />
            padding: 2px;<br />
            text-align: center;<br />
        }<br />
&lt;/style&gt;<br />
[/css]</p>
<p><strong>Complete HTML</strong><br />
[html]<br />
&lt;!DOCTYPE html&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
    &lt;title&gt;Angular animated search box &#8211; sibeeshpassion &lt;/title&gt;<br />
    &lt;style&gt;<br />
        .inputText {<br />
            border: 1px solid #ccc;<br />
            border-radius: 10px;<br />
            background-color: #0ff;<br />
            box-shadow: 1px 1px 1px 1px #ccc;<br />
            width: 230px;<br />
            height: 30px;<br />
        }  </p>
<p>        ul {<br />
            list-style: none;<br />
            padding: 10px;<br />
            background-color: #CAEAF5;<br />
            border-radius: 10px;<br />
            border: 1px solid #ccc;<br />
            width: 210px;<br />
        }  </p>
<p>        li {<br />
            border: 1px solid #ccc;<br />
            border-right: none;<br />
            border-left: none;<br />
            padding: 2px;<br />
            text-align: center;<br />
        }<br />
    &lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body ng-app ng-init=&quot;placesVisited=[&#8216;Delhi&#8217;,&#8217;Kerala&#8217;,&#8217;Tamil Nadu&#8217;,&#8217;Banglore&#8217;,&#8217;Uttar Pradesh&#8217;,&#8217;Noida&#8217;,&#8217;Haryana&#8217;,&#8217;Thrissur&#8217;];&quot;&gt;<br />
    &lt;div&gt;<br />
        &lt;input type=&quot;text&quot; ng-model=&quot;curPlace&quot; class=&quot;inputText&quot;&gt;<br />
        &lt;ul&gt;<br />
            &lt;li  ng-repeat=&quot;place in placesVisited | filter:curPlace&quot;&gt;<br />
                &lt;a ng-href=&quot;https://www.google.co.in/webhp?q={{place}}&quot;&gt;{{place}} &lt;/a&gt;<br />
            &lt;/li&gt;<br />
        &lt;/ul&gt;<br />
    &lt;/div&gt;<br />
    &lt;script src=&quot;angular.min.js&quot;&gt;&lt;/script&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
[/html]</p>
<p><strong>Output</strong><br />
<img decoding="async" src="http://www.c-sharpcorner.com/UploadFile/BlogImages/04162015010612AM/searchbox.PNG" alt="Output" /></p>
<p><strong>Conclusion</strong></p>
<p>Now that is all for the day, I will come with another set of items in Angular JS soon? .I hope you liked this article. Please give your valuable suggestions. </p>
<p>Kindest Regards<br />
Sibeesh Venu </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/angularjs-search-box-using-filter/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
		<item>
		<title>How to hide a DIV when the website view in Mobile</title>
		<link>https://www.sibeeshpassion.com/how-to-hide-a-div-when-the-website-view-in-mobile/</link>
					<comments>https://www.sibeeshpassion.com/how-to-hide-a-div-when-the-website-view-in-mobile/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Mon, 01 Jun 2015 13:20:02 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[@media]]></category>
		<category><![CDATA[@media only screen]]></category>
		<category><![CDATA[@media screen]]></category>
		<category><![CDATA[Mobile CSS]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=4141</guid>

					<description><![CDATA[Introduction Hi All, Hope you are fine. Today we will learn how we can hide a particular DIV element when the site is viewed in Mobile. I hope you will like this. Background For the past few days I was working in my personal website. Suddenly I found out an issue that my site&#8217;s footer is bothering when the same is viewed in mobile. So I started working on this issue and I could resolve it. So here I am going to share the fix you need to do. Using the code Previously whenever I view my website in mobile, [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>Hi All, Hope you are fine. Today we will learn how we can hide a particular DIV element when the site is viewed in Mobile. I hope you will like this.</p>
<p><strong>Background</strong></p>
<p>For the past few days I was working in my personal website. Suddenly I found out an issue that my site&#8217;s footer is bothering when the same is viewed in mobile. So I started working on this issue and I could resolve it. So here I am going to share the fix you need to do.</p>
<p><strong>Using the code</strong></p>
<p>Previously whenever I view my website in mobile, I got a view as shown in the below image, Which makes my site&#8217;s reputation go down. And as you all know now a days we are seeing everything in mobile. So it is must that we make our site looks better in mobiles also. What I am doing is whenever a user view my site in mobile, I will just hide my footer div which contains social plugins. </p>
<p><img decoding="async" src="http://www.c-sharpcorner.com/UploadFile/65794e/ho-to-hide-a-div-when-the-website-view-in-mobile/Images/hide1.PNG" alt="" /></p>
<p>Here I will share you the CSS you need to implement.<br />
[css]<br />
@media only screen and (max-width: 480px) {<br />
body {<br />
max-width: 480px;<br />
}<br />
.myfootershare  {<br />
display: none<br />
}<br />
}<br />
[/css]</p>
<p>What we do in the above CSS is, we are checking the width of the screen by using the @media query in CSS.<br />
[css]<br />
@media only screen and (max-width: 480px)<br />
[/css]</p>
<p>So when the scree size is below 480 px, we will just hide the element  (with class name myfootershare).<br />
Once you include this to your CSS, you can see the output as follows when you see the site in Mobile .</p>
<p> <img decoding="async" src="http://www.c-sharpcorner.com/UploadFile/65794e/ho-to-hide-a-div-when-the-website-view-in-mobile/Images/hide2.PNG" alt="" /></p>
<p>That is all for the day. I hope you enjoyed reading.</p>
<p><strong>Conclusion</strong></p>
<p>Please share me your feedback.</p>
<p>Kindest Regards<br />
Sibeesh Venu </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/how-to-hide-a-div-when-the-website-view-in-mobile/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Find the span from the series of div and apply style to it</title>
		<link>https://www.sibeeshpassion.com/find-the-span-from-the-series-of-div-and-apply-style-to-it/</link>
					<comments>https://www.sibeeshpassion.com/find-the-span-from-the-series-of-div-and-apply-style-to-it/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Sun, 31 May 2015 14:44:19 +0000</pubDate>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<guid isPermaLink="false">https://sibeeshpassion.com/?p=3931</guid>

					<description><![CDATA[Find the span from the series of div and apply style to it. [css] #columntablejqxgrid div[role=&#34;columnheader&#34;]:first-child span{ text-align: left!important; } [/css] It will find out the div which has ID as &#8220;columntablejqxgrid&#8221; and from that it finds the inner divs whose role is &#8220;columnheader&#8221;. And once it finds the filtered divs it takes the first child and take the span.]]></description>
										<content:encoded><![CDATA[<p>Find the span from the series of div and apply style to it.<br />
[css]<br />
#columntablejqxgrid div[role=&quot;columnheader&quot;]:first-child span{<br />
   text-align: left!important;<br />
 }<br />
[/css]<br />
 It will find out the div which has ID as &#8220;columntablejqxgrid&#8221; and from that it finds the inner divs whose role is &#8220;columnheader&#8221;. And once it finds the filtered divs it takes the first child and take the span.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sibeeshpassion.com/find-the-span-from-the-series-of-div-and-apply-style-to-it/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
