<?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>Fundamental Provocation &#187; CSS</title> <atom:link href="http://www.ajaymatharu.com/tag/css/feed/" rel="self" type="application/rss+xml" /><link>http://www.ajaymatharu.com</link> <description>Blog by Ajay Matharu</description> <lastBuildDate>Sun, 06 Nov 2011 15:09:39 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>JQuery in Visual Studio</title><link>http://www.ajaymatharu.com/jquery-in-visual-studio/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=jquery-in-visual-studio</link> <comments>http://www.ajaymatharu.com/jquery-in-visual-studio/#comments</comments> <pubDate>Sun, 17 May 2009 18:00:45 +0000</pubDate> <dc:creator>Ajay Matharu</dc:creator> <category><![CDATA[ASP.Net]]></category> <category><![CDATA[Javascript]]></category> <category><![CDATA[Visual Studio]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[.Net]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[Developer]]></category> <category><![CDATA[Development]]></category> <category><![CDATA[Dot Net]]></category> <category><![CDATA[Jquery]]></category><guid isPermaLink="false">http://ajaymatharu.wordpress.com/?p=279</guid> <description><![CDATA[A big part of the appeal of jQuery is that it allows you to elegantly (and efficiently) find and manipulate HTML elements with minimum lines of code.  jQuery supports this via a nice &#8220;selector&#8221; API that allows developers to query for HTML elements, and then apply &#8220;commands&#8221; to them.  One of the characteristics of jQuery [...]]]></description> <content:encoded><![CDATA[<p>A big part of the appeal of jQuery is that it allows you to elegantly (and efficiently) find and manipulate HTML elements with minimum lines of code.  jQuery supports this via a nice &#8220;selector&#8221; API that allows developers to query for HTML elements, and then apply &#8220;commands&#8221; to them.  One of the characteristics of jQuery commands is that they can be &#8220;chained&#8221; together &#8211; so that the result of one command can feed into another.  jQuery also includes a built-in set of animation APIs that can be used as commands.  The combination allows you to do some really cool things with only a few keystrokes.</p><p>For example, the below JavaScript uses jQuery to find all &lt;div&gt; elements within a page that have a CSS class of &#8220;product&#8221;, and then animate them to slowly disappear:</p><pre class="javascript">$("div.product").slideUp('slow').addClass("removed");</pre><p>As another example, the JavaScript below uses jQuery to find a specific &lt;table&gt; on the page with an id of &#8220;datagrid1&#8243;, then retrieves every other &lt;tr&gt; row within the datagrid, and sets those &lt;tr&gt; elements to have a CSS class of &#8220;even&#8221; &#8211; which could be used to alternate the background color of each row:</p><pre class="javascript">$("#datagrid1 tr:nth-child(even)").addClass("even");</pre><p>The jQuery library also works well on the same page with ASP.NET AJAX and the ASP.NET AJAX Control Toolkit.</p><p>Visual Studio figures out external script references, such as to JQuery, by following special reference comments it finds at the top of .js files:</p><pre>/// &lt;reference path="jquery-1.2.3.js" /&gt;</pre><p>You can download the JQuery from <a href="http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.2.6.js&amp;downloadBtn=%3CSPAN%3EDownload%3C%2FSPAN%3E" target="_blank">here</a>. You can get more details on JQuery from <a href="http://jquery.com/api/">http://jquery.com/</a> .</p><p>For intellisense support for JQuery you need to install this <a href="https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=10826" target="_blank">Hotfix</a>.</p><p>Comment for javascript is written inside for intellisense support. JavaScript has the interesting feature that calling toString on a function returns the code of this function including the comments and thus the doc comments. Here&#8217;s a similar example in JavaScript where the documentation is written inside of a class constructor:</p><p><a href="http://ajaymatharu.files.wordpress.com/2008/10/jsintellisense.png"><img class="aligncenter size-full wp-image-280" title="jsintellisense" src="http://ajaymatharu.files.wordpress.com/2008/10/jsintellisense.png" alt="" width="450" height="59" /></a></p><p>Another difference with C# or VB.NET is that property and event accessors are two different entities in JavaScript. For this reason, to choose where the documentation should be for those members. Properties should be documented in the getter and events in the &#8220;adder&#8221; for this reason:</p><p><a href="http://ajaymatharu.files.wordpress.com/2008/10/js.png"><img class="aligncenter size-full wp-image-281" title="js" src="http://ajaymatharu.files.wordpress.com/2008/10/js.png" alt="" width="450" height="133" /></a></p> ]]></content:encoded> <wfw:commentRss>http://www.ajaymatharu.com/jquery-in-visual-studio/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>CSS Properties To JavaScript Reference Conversion</title><link>http://www.ajaymatharu.com/css-properties-to-javascript-reference-conversion/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=css-properties-to-javascript-reference-conversion</link> <comments>http://www.ajaymatharu.com/css-properties-to-javascript-reference-conversion/#comments</comments> <pubDate>Thu, 09 Apr 2009 05:17:34 +0000</pubDate> <dc:creator>Ajay Matharu</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[Javascript]]></category> <category><![CDATA[Web]]></category><guid isPermaLink="false">http://www.ajaymatharu.com/?p=1132</guid> <description><![CDATA[Usage: document.getElementById(div_id).style.JS_property_reference = &#8220;new_CSS_property_value&#8221;; CSS Property JavaScript Reference background background background-attachment backgroundAttachment background-color backgroundColor background-image backgroundImage background-position backgroundPosition background-repeat backgroundRepeat border border border-bottom borderBottom border-bottom-color borderBottomColor border-bottom-style borderBottomStyle border-bottom-width borderBottomWidth border-color borderColor border-left borderLeft border-left-color borderLeftColor border-left-style borderLeftStyle border-left-width borderLeftWidth border-right borderRight border-right-color borderRightColor border-right-style borderRightStyle border-right-width borderRightWidth border-style borderStyle border-top borderTop border-top-color borderTopColor border-top-style [...]]]></description> <content:encoded><![CDATA[<p><span style="font-size: large;"><strong>Usage:</strong></span></p><p>document.getElementById(<em>div_id</em>).style.<em>JS_property_reference</em> = <em>&#8220;new_CSS_property_value&#8221;</em>;</p><table border="2" cellspacing="0" cellpadding="5" width="70%" align="center"><tbody><tr><th width="50%" align="center">CSS Property</th><th width="50%" align="center">JavaScript Reference</th></tr><tr><td width="50%" align="center">background</td><td width="50%" align="center">background</td></tr><tr><td width="50%" align="center">background-attachment</td><td width="50%" align="center">backgroundAttachment</td></tr><tr><td width="50%" align="center">background-color</td><td width="50%" align="center">backgroundColor</td></tr><tr><td width="50%" align="center">background-image</td><td width="50%" align="center">backgroundImage</td></tr><tr><td width="50%" align="center">background-position</td><td width="50%" align="center">backgroundPosition</td></tr><tr><td width="50%" align="center">background-repeat</td><td width="50%" align="center">backgroundRepeat</td></tr><tr><td width="50%" align="center">border</td><td width="50%" align="center">border</td></tr><tr><td width="50%" align="center">border-bottom</td><td width="50%" align="center">borderBottom</td></tr><tr><td width="50%" align="center">border-bottom-color</td><td width="50%" align="center">borderBottomColor</td></tr><tr><td width="50%" align="center">border-bottom-style</td><td width="50%" align="center">borderBottomStyle</td></tr><tr><td width="50%" align="center">border-bottom-width</td><td width="50%" align="center">borderBottomWidth</td></tr><tr><td width="50%" align="center">border-color</td><td width="50%" align="center">borderColor</td></tr><tr><td width="50%" align="center">border-left</td><td width="50%" align="center">borderLeft</td></tr><tr><td width="50%" align="center">border-left-color</td><td width="50%" align="center">borderLeftColor</td></tr><tr><td width="50%" align="center">border-left-style</td><td width="50%" align="center">borderLeftStyle</td></tr><tr><td width="50%" align="center">border-left-width</td><td width="50%" align="center">borderLeftWidth</td></tr><tr><td width="50%" align="center">border-right</td><td width="50%" align="center">borderRight</td></tr><tr><td width="50%" align="center">border-right-color</td><td width="50%" align="center">borderRightColor</td></tr><tr><td width="50%" align="center">border-right-style</td><td width="50%" align="center">borderRightStyle</td></tr><tr><td width="50%" align="center">border-right-width</td><td width="50%" align="center">borderRightWidth</td></tr><tr><td width="50%" align="center">border-style</td><td width="50%" align="center">borderStyle</td></tr><tr><td width="50%" align="center">border-top</td><td width="50%" align="center">borderTop</td></tr><tr><td width="50%" align="center">border-top-color</td><td width="50%" align="center">borderTopColor</td></tr><tr><td width="50%" align="center">border-top-style</td><td width="50%" align="center">borderTopStyle</td></tr><tr><td width="50%" align="center">border-top-width</td><td width="50%" align="center">borderTopWidth</td></tr><tr><td width="50%" align="center">border-width</td><td width="50%" align="center">borderWidth</td></tr><tr><td width="50%" align="center">clear</td><td width="50%" align="center">clear</td></tr><tr><td width="50%" align="center">clip</td><td width="50%" align="center">clip</td></tr><tr><td width="50%" align="center">color</td><td width="50%" align="center">color</td></tr><tr><td width="50%" align="center">cursor</td><td width="50%" align="center">cursor</td></tr><tr><td width="50%" align="center">display</td><td width="50%" align="center">display</td></tr><tr><td width="50%" align="center">filter</td><td width="50%" align="center">filter</td></tr><tr><td width="50%" align="center">font</td><td width="50%" align="center">font</td></tr><tr><td width="50%" align="center">font-family</td><td width="50%" align="center">fontFamily</td></tr><tr><td width="50%" align="center">font-size</td><td width="50%" align="center">fontSize</td></tr><tr><td width="50%" align="center">font-variant</td><td width="50%" align="center">fontVariant</td></tr><tr><td width="50%" align="center">font-weight</td><td width="50%" align="center">fontWeight</td></tr><tr><td width="50%" align="center">height</td><td width="50%" align="center">height</td></tr><tr><td width="50%" align="center">left</td><td width="50%" align="center">left</td></tr><tr><td width="50%" align="center">letter-spacing</td><td width="50%" align="center">letterSpacing</td></tr><tr><td width="50%" align="center">line-height</td><td width="50%" align="center">lineHeight</td></tr><tr><td width="50%" align="center">list-style</td><td width="50%" align="center">listStyle</td></tr><tr><td width="50%" align="center">list-style-image</td><td width="50%" align="center">listStyleImage</td></tr><tr><td width="50%" align="center">list-style-position</td><td width="50%" align="center">listStylePosition</td></tr><tr><td width="50%" align="center">list-style-type</td><td width="50%" align="center">listStyleType</td></tr><tr><td width="50%" align="center">margin</td><td width="50%" align="center">margin</td></tr><tr><td width="50%" align="center">margin-bottom</td><td width="50%" align="center">marginBottom</td></tr><tr><td width="50%" align="center">margin-left</td><td width="50%" align="center">marginLeft</td></tr><tr><td width="50%" align="center">margin-right</td><td width="50%" align="center">marginRight</td></tr><tr><td width="50%" align="center">margin-top</td><td width="50%" align="center">marginTop</td></tr><tr><td width="50%" align="center">overflow</td><td width="50%" align="center">overflow</td></tr><tr><td width="50%" align="center">padding</td><td width="50%" align="center">padding</td></tr><tr><td width="50%" align="center">padding-bottom</td><td width="50%" align="center">paddingBottom</td></tr><tr><td width="50%" align="center">padding-left</td><td width="50%" align="center">paddingLeft</td></tr><tr><td width="50%" align="center">padding-right</td><td width="50%" align="center">paddingRight</td></tr><tr><td width="50%" align="center">padding-top</td><td width="50%" align="center">paddingTop</td></tr><tr><td width="50%" align="center">page-break-after</td><td width="50%" align="center">pageBreakAfter</td></tr><tr><td width="50%" align="center">page-break-before</td><td width="50%" align="center">pageBreakBefore</td></tr><tr><td width="50%" align="center">position</td><td width="50%" align="center">position</td></tr><tr><td width="50%" align="center">float</td><td width="50%" align="center">styleFloat</td></tr><tr><td width="50%" align="center">text-align</td><td width="50%" align="center">textAlign</td></tr><tr><td width="50%" align="center">text-decoration</td><td width="50%" align="center">textDecoration</td></tr><tr><td width="50%" align="center">text-decoration: blink</td><td width="50%" align="center">textDecorationBlink</td></tr><tr><td width="50%" align="center">text-decoration: line-through</td><td width="50%" align="center">textDecorationLineThrough</td></tr><tr><td width="50%" align="center">text-decoration: none</td><td width="50%" align="center">textDecorationNone</td></tr><tr><td width="50%" align="center">text-decoration: overline</td><td width="50%" align="center">textDecorationOverline</td></tr><tr><td width="50%" align="center">text-decoration: underline</td><td width="50%" align="center">textDecorationUnderline</td></tr><tr><td width="50%" align="center">text-indent</td><td width="50%" align="center">textIndent</td></tr><tr><td width="50%" align="center">text-transform</td><td width="50%" align="center">textTransform</td></tr><tr><td width="50%" align="center">top</td><td width="50%" align="center">top</td></tr><tr><td width="50%" align="center">vertical-align</td><td width="50%" align="center">verticalAlign</td></tr><tr><td width="50%" align="center">visibility</td><td width="50%" align="center">visibility</td></tr><tr><td width="50%" align="center">width</td><td width="50%" align="center">width</td></tr><tr><td width="50%" align="center">z-index</td><td width="50%" align="center">zIndex</td></tr></tbody></table> ]]></content:encoded> <wfw:commentRss>http://www.ajaymatharu.com/css-properties-to-javascript-reference-conversion/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Rounded Corner&#8217;s using CSS and no Images</title><link>http://www.ajaymatharu.com/rounded-corners-using-css-and-no-images/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rounded-corners-using-css-and-no-images</link> <comments>http://www.ajaymatharu.com/rounded-corners-using-css-and-no-images/#comments</comments> <pubDate>Sat, 01 Nov 2008 06:33:03 +0000</pubDate> <dc:creator>Ajay Matharu</dc:creator> <category><![CDATA[CSS]]></category> <category><![CDATA[Rounded Div's]]></category> <category><![CDATA[stylesheet]]></category><guid isPermaLink="false">http://ajaymatharu.wordpress.com/?p=391</guid> <description><![CDATA[Today I was just digging about how to create a rounded corner div without using images. As this is the need in most of the web application and web pages, and almost everyone does that with images. We can still create the rounded corner div with using images and just by CSS alone. Here are [...]]]></description> <content:encoded><![CDATA[<p>Today I was just digging about how to create a rounded corner div without using images.</p><p>As this is the need in most of the web application and web pages, and almost everyone does that with images. We can still create the rounded corner div with using images and just by CSS alone.</p><p>Here are few links that I digged and are helpful you to attain this,</p><p>http://www.fireandknowledge.org/archives/2004/05/22/rounded-corners-without-images-part-1/</p><p>http://www.cssjuice.com/25-rounded-corners-techniques-with-css/</p><p>http://www.html.it/articoli/nifty/index.html</p><p>Enjoy!!!</p> ]]></content:encoded> <wfw:commentRss>http://www.ajaymatharu.com/rounded-corners-using-css-and-no-images/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
