<?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>Intelligrape  Groovy &#38; Grails Blogs &#187; css</title>
	<atom:link href="http://www.intelligrape.com/blog/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.intelligrape.com/blog</link>
	<description></description>
	<lastBuildDate>Thu, 02 Feb 2012 07:48:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
			<title>Intelligrape  Groovy &amp; Grails Blogs</title>
			<url>http://www.intelligrape.com/blog/wp-content/uploads/2011/05/favicon2.ico</url>
			<link>http://www.intelligrape.com/blog</link>
			<width></width>
			<height></height>
			<description></description>
		</image>		<item>
		<title>Sprite Up !!! Automate your process of creating sprites.</title>
		<link>http://www.intelligrape.com/blog/2011/06/23/sprite-up-automate-your-process-of-creating-sprites/</link>
		<comments>http://www.intelligrape.com/blog/2011/06/23/sprite-up-automate-your-process-of-creating-sprites/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 10:59:10 +0000</pubDate>
		<dc:creator>manoj</dc:creator>
				<category><![CDATA[HTML-UI-CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[image spriting]]></category>
		<category><![CDATA[sprite]]></category>

		<guid isPermaLink="false">http://www.intelligrape.com/blog/?p=3924</guid>
		<description><![CDATA[Hi all,
In the past few days, I was given a push to find a suitable method that allowed us to automate the much needed but  painstaking of creating sprites for webpages to improve their performance.The problem was that going through the process of spriting images was a tedious process for a person not used to Photoshop [...]]]></description>
			<content:encoded><![CDATA[<p>Hi all,</p>
<p>In the past few days, I was given a push to find a suitable method that allowed us to automate the much needed but  painstaking of creating sprites for webpages to improve their performance.The problem was that going through the process of spriting images was a tedious process for a person not used to Photoshop tools and meticulous image adjustments in the corresponding Css.<br />
After spending some time with Mr Google, I stumbled upon an application that allowed us to automate the process, leaving the task of spriting images and adjusting the corresponding css upto the application.</p>
<p>Lets take a look at it. I&#8217;m sure that even if you give it 1 shot, you are bound to appreciate the ease of spriting your images to give it another go.</p>
<p style="padding-bottom: 10px">
<p><strong>First</strong> things first, get <strong>SMARTSPRITES</strong> : - <a href="http://csssprites.org/">http://csssprites.org/</a>.</p>
<p>Once you&#8217;ve got that done, all you&#8217;ve got to do is put in place holders to indicate that a particular image is to be included in the spriting process.<br />
To do that indicate where you would like the sprite to be placed with something like this at the top of your css &#8230;</p>
<div>
<div>
<pre class="brush: css;"> /** sprite: myspriteVertical; sprite-image: url('../images/myspriteVertical.png'); sprite-layout: vertical */ </pre>
</div>
<div><strong>sprite</strong>: myspriteVertical  - This is the reference for the final image to be used in the css</div>
<div><strong>sprite-image</strong>: url(&#8216;../images/myspriteVertical.png&#8217;)  -This specifies the path of the final image.</div>
<div><strong>sprite-layou</strong>t: vertical  - It specifies the layout of images in your sprite. It can be vertical, horizontal or repeating.</div>
<div>
<p style="padding-bottom: 10px">
<p><strong>Next</strong> go to the place in the css where you have an image. For example, my Css had something like</p>
</div>
<div>
<p><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace;line-height: 18px"> </span></p>
<pre class="brush: css;">.home .searchWiget_widget_Header{font-size:18px;color:#fff;padding:14px 10px 2px 10px; background:url(&quot;../images/header-top.png&quot;) no-repeat 0 0;}</pre>
</div>
<div>Now for this to application to recognize candidate images the background image property needs a separate line of it&#8217;s own. Although the refactor doesn&#8217;t take time, it becomes easier if you start off with separate lines the next time you create a css.</div>
<div>So I split it into something like</div>
<div>
<div>
<pre class="brush: css;">.home .searchWiget_widget_Header{font-size:18px;color:#fff;padding:14px 10px 2px 10px;
background-image:url(&quot;../images/header-top.png&quot;);
background-repeat: no-repeat;
background-position:0 0; }</pre>
</div>
</div>
<p>Note that this image specifies a positioning of top,left. We need to provide that for our image position in the final sprite.</p>
<div>Now simply add placeholders as shown below.</div>
<div>
<pre class="brush: css;">.home .searchWiget_widget_Header{font-size:18px;color:#fff;padding:14px 10px 2px 10px;
background-image:url(&quot;../images/header-top.png&quot;);/** sprite-ref: myspriteVertical; sprite-alignment: left */
background-repeat: no-repeat;}</pre>
</div>
<div><strong> sprite-ref: </strong>myspriteVertical<strong> &#8211; </strong>This is the reference to the final sprite where it will be included as one of the images.</div>
<div><strong> sprite-alignment: </strong>left<strong> &#8211; </strong>This specifies that the image is to be aligned on the left in the final sprite. This corresponds to the background-position attribute. Other than left, it can be top, bottom or right.</div>
<p style="padding-bottom: 10px">
<div>Now that we have provided an alignment in the placeholder, we need to delete the  &#8217;background-position&#8217; attribute in the original implementation, so that it doesn&#8217;t override the new changes.</div>
<div>Now here we need to take care that images that are positioned to <strong>align on the left or right have to be arranged on a vertical layout.</strong></div>
<div>Images aligned <strong>top or bottom</strong> are to be <strong>horizontally</strong> aligned.</div>
<div>This arrangement needs to be taken care of otherwise you might have images popping out in the webpage at unwanted places.</div>
<div>Now repeat the procedure or putting placeholders for all the images you want to be sprited. Make sure to keep left/right positioned images in a vertical layout and top/bottom images in a horizontal layout</div>
<p style="padding-bottom: 10px">
<div>Once that&#8217;s done, we simply need to issue a command to generate to sprite and adjust the css properties to accommodate the new image. It will contain the css you have modified as an argument.</div>
<div>
<pre class="brush: bash;">  ./smartsprites.sh ~/Desktop/Demo/web-app/css/demo.css </pre>
</div>
<p>It will create a new file with the same name appended with a default extension value. The original files in the CSS will remain unchanged. To switch your design to CSS sprites, link these CSS files instead of the original ones in your HTML.<span style="line-height: normal"><span style="color: #000000"><br />
</span></span>A plethora of options has been provided on the home page along with helpful documentation. Go through them if you encounter any problems.</p>
<div>
<p style="padding-bottom: 10px">
<div>Thats it .!!!! Check out your sprites</div>
</div>
<p style="padding-bottom: 10px">
<div><strong>Notes : </strong></div>
<div>1) Make sure to check the output of the sprite command. You should watch out for Warn and Error messages. It might show why your output isn&#8217;t coming out as it should.</div>
<div>2) Try to keep separate sprites for  horizontally aligned , vertically aligned and repeating images. Combining them will more often than not result in error-prone images.</div>
<div>3) Repeating images can be tricky. I had to redo a sprite since my image wasn&#8217;t repeating properly. Give it more than 1 shot and you&#8217;ll definitely get it right.</div>
<p style="padding-bottom: 10px">
<div>Hope this helps!!</div>
<p style="padding-bottom: 10px">
<div>Manoj Mohan</div>
<div>manoj<span style="text-decoration: line-through">(at)</span>intelligrape<span style="text-decoration: line-through">(dot)</span>com</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.intelligrape.com/blog/2011/06/23/sprite-up-automate-your-process-of-creating-sprites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>clearfix css hack</title>
		<link>http://www.intelligrape.com/blog/2010/11/13/clearfix-css-hack/</link>
		<comments>http://www.intelligrape.com/blog/2010/11/13/clearfix-css-hack/#comments</comments>
		<pubDate>Sat, 13 Nov 2010 07:20:00 +0000</pubDate>
		<dc:creator>umar</dc:creator>
				<category><![CDATA[HTML-UI-CSS]]></category>
		<category><![CDATA[clearfix]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.intelligrape.com/blog/?p=2022</guid>
		<description><![CDATA[The clearfix hack, or “easy-clearing” hack, is a useful method of clearing  float(left, right) effort. The clearfix hack works great, but the browsers that it targets are either obsolete or well on their way. Specifically, Internet Explorer 5 for Mac is now history, so there is no reason to bother with it when using [...]]]></description>
			<content:encoded><![CDATA[<p>The clearfix hack, or “easy-clearing” hack, is a useful method of clearing  float(left, right) effort. The clearfix hack works great, but the browsers that it targets are either obsolete or well on their way. Specifically, Internet Explorer 5 for Mac is now history, so there is no reason to bother with it when using the clearfix method of clearing floats.</p>
<p>When the container not wrapping floated divs within it.clearfix hack (which includes the guillotine bug for IE etc). It fixes the problem.</p>
<p><br/><strong>Definition and Usage</strong><br />
This code define in css </p>
<div class="wp_syntax">
<div class="code">
<pre class="groovy">

/* new clearfix */
.clearfix:after {
	visibility: hidden;
	display: block;
	font-size: 0;
	content: " ";
	clear: both;
	height: 0;
	}
* html .clearfix             { zoom: 1; } /* IE6 */
*:first-child+html .clearfix { zoom: 1; } /* IE7 */
</pre>
</div>
</div>
<p><strong>Tips and Notes</strong><br />
Add class in html code </p>
<div class="wp_syntax">
<div class="code">
<pre class="groovy">

Class=”clearfix”
</pre>
</div>
</div>
<p>I happens most often (or is most noticeable) when you’ve got a design that wants to go flush to the bottom of the browser. However, for some damn reason, it just won’t go flush — it is that pesky five or so pixels that just won’t budge. Playing with the padding and margins don’t help — what could it be? Check the containing element and see if you’ve applied the clearfix css hack to it … because if you did, our money is that is your problem.<br/><br />
There are many variations of clearfix floating around the web.The clearfix method applies clearing rules to standards-compliant browsers using the :after pseudo-class. For IE6 and IE7, This clearfix method triggers has Layout with some proprietary CSS. Thus Clearfix method effectively clears floats in all currently used browsers without using any hacks.<br />
<br/><strong>Support browser</strong></p>
<table cellspacing="1" cellpadding="4" bgcolor="#cccccc" width="100%" style="border-spacing: 1px; border-collapse: inherit; font-size: 12px; font-family: Arial,Helvetica,sans-serif,'Arial Rounded MT Bold';">
<tbody>
<tr>
<td bgcolor="#e6e6e6" width="100"><strong>IE</strong></td>
<td bgcolor="#e6e6e6" width="100"><strong> Firefox </strong></td>
<td bgcolor="#e6e6e6" width="100"><strong>Safari </strong></td>
<td bgcolor="#e6e6e6" width="100"><strong>Chrome</strong></td>
<td bgcolor="#e6e6e6" width="100"><strong> Opera</strong></td>
<td bgcolor="#e6e6e6" width="100"><strong> iPhone</strong></td>
<td bgcolor="#e6e6e6"><strong> Android</strong></td>
</tr>
<tr>
<td bgcolor="#ffffff">6.0+</td>
<td bgcolor="#ffffff">3.5+</td>
<td bgcolor="#ffffff">3.0+</td>
<td bgcolor="#ffffff">3.0+</td>
<td bgcolor="#ffffff">10.5+</td>
<td bgcolor="#ffffff">1.0+</td>
<td bgcolor="#ffffff">2.0+</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.intelligrape.com/blog/2010/11/13/clearfix-css-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>canvas</title>
		<link>http://www.intelligrape.com/blog/2010/09/07/canvas/</link>
		<comments>http://www.intelligrape.com/blog/2010/09/07/canvas/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 07:53:45 +0000</pubDate>
		<dc:creator>umar</dc:creator>
				<category><![CDATA[HTML-UI-CSS]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://www.intelligrape.com/blog/?p=1542</guid>
		<description><![CDATA[The HTML &#60;canvas&#62; tag is used for creating graphics on the fly. It can be used for rendering graphs, game graphics, or other visual images.
&#160;
To draw on the canvas, the &#60;canvas&#62; tag is used in conjunction with the getContext(contextId) method.
&#160;
Any content between the &#60;canvas&#62;&#60;/canvas&#62; tags is &#8220;fallback content&#8221;- meaning, it will be displayed only if [...]]]></description>
			<content:encoded><![CDATA[<p>The HTML <code>&lt;canvas&gt;</code> tag is used for creating graphics on the fly. It can be used for rendering graphs, game graphics, or other visual images.</p>
<p>&nbsp;</p>
<p>To draw on the canvas, the <code>&lt;canvas&gt;</code> tag is used in conjunction with the <code>getContext(contextId)</code> method.</p>
<p>&nbsp;</p>
<p>Any content between the <code>&lt;canvas&gt;</code><code>&lt;/canvas&gt;</code> tags is &#8220;fallback content&#8221;- meaning, it will be displayed only if the canvas cannot be displayed.</p>
<p>&nbsp;</p>
<p><strong>As a script:</strong></p>
<blockquote>
<div class="wp_syntax">
<div class="code">
<pre class="groovy">function displayCanvas()
	{
      var canvas = document.getElementById("myCanvas");
      if (canvas.getContext) {
        var ctx = canvas.getContext("2d");

        ctx.fillStyle = "rgb(200,0,0)";
        ctx.fillRect (0, 0, 150, 75);

        ctx.fillStyle = "rgba(0, 0, 200, 0.5)";
        ctx.fillRect (40, 30, 125, 75);

        ctx.fillStyle = "rgb(0,0,150)";
        ctx.strokeRect (20, 20, 50, 100);
      }
    }</pre>
</div>
</div>
</blockquote>
<p>&nbsp;</p>
<p><strong>and this is html</strong></p>
<blockquote>
<div class="wp_syntax">
<div class="code">
<pre class="groovy"><code>&lt;canvas id="myCanvas" width="300" height="200"&gt;</code>Your browser does not support the canvas tag. At the time of writing, Firefox, Opera, and Chrome support this tag.

Here's an <a>image of what it's supposed to look like <img src="http://www.intelligrape.com/blog/wp-content/uploads/2010/09/plus.png" alt="image" /></a>.
<code>&lt;/canvas&gt;</code></pre>
</div>
</div>
</blockquote>
<p><strong>Attributes</strong><br />
<strong>width:</strong> {Specifies the canvas width in pixels. The default value is 300.Possible values:[Non-negative integer] (for example, 300)}<br />
<strong>Height:</strong> {Specifies the canvas height in pixels. The default value is 150.Possible values:[Non-negative integer] (for example, 150)}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelligrape.com/blog/2010/09/07/canvas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accessing remote fonts on  Client&#8217;s system by @font-face</title>
		<link>http://www.intelligrape.com/blog/2010/06/07/accessing-remote-fonts-on-clients-system-by-font-face/</link>
		<comments>http://www.intelligrape.com/blog/2010/06/07/accessing-remote-fonts-on-clients-system-by-font-face/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 14:59:09 +0000</pubDate>
		<dc:creator>umar</dc:creator>
				<category><![CDATA[HTML-UI-CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[Safari.]]></category>

		<guid isPermaLink="false">http://www.intelligrape.com/blog/?p=838</guid>
		<description><![CDATA[@font-face allows authors to specify online fonts to display text on their web pages. By allowing authors to provide their own fonts.

We Use it
I.We choose  font and  we have right now. First of all  font format generate four another format as like(ttf, eot,otf,svg,woff)
and upload server where we access.
II. Create  in css This Syntex


@font-face &#123;
font-family: [...]]]></description>
			<content:encoded><![CDATA[<p><code>@font-face </code>allows authors to specify online fonts to display text on their web pages. By allowing authors to provide their own fonts.<br />
<strong><br />
We Use it</strong><br />
I.We choose  font and  we have right now. First of all  font format generate four another format as like(ttf, eot,otf,svg,woff)</p>
<p>and upload server where we access.</p>
<p>II. Create  in css This <strong>Syntex</strong></p>
<blockquote>

<div class="wp_syntax"><div class="code"><pre class="groovy">@font-face <span style="color: #66cc66;">&#123;</span>
font-family: <span style="color: #ff0000;">'PalatinoRegular'</span><span style="color: #66cc66;">;</span>
 src: url<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'palatino-webfont.eot'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">;</span>
 src: local<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Palatino'</span><span style="color: #66cc66;">&#41;</span>, local<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Palatino'</span><span style="color: #66cc66;">&#41;</span>,
url<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'palatino-webfont.woff'</span><span style="color: #66cc66;">&#41;</span> format<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'woff'</span><span style="color: #66cc66;">&#41;</span>,
url<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'palatino-webfont.ttf'</span><span style="color: #66cc66;">&#41;</span> format<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'truetype'</span><span style="color: #66cc66;">&#41;</span>,
 url<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'palatino-webfont.svg#webfontoXFrZcNP'</span><span style="color: #66cc66;">&#41;</span> format<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'svg'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">;</span>
font-weight: normal<span style="color: #66cc66;">;</span>
font-style: normal<span style="color: #66cc66;">;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

</blockquote>
<p>III. We acces in html page as class or Id and define body tag font-family</p>
<h3>Values</h3>
<p>&lt;a-remote-font-name&gt;</p>
<p>Specifies a font name that will be used as font face value for font properties.</p>
<p>&lt;source&gt;</p>
<p>URL for the remote font file location, or the name of a font on the user&#8217;s computer in the form <code>local("Font Name")</code>.</p>
<p>&lt;weight&gt;</p>
<p>A Font-weight value.</p>
<p>You can specify a font on the user&#8217;s local computer by name using the <code>local()</code> syntax. If that font isn&#8217;t found, other sources will be tried until one is found.<strong><br />
Note:</strong> When not avaible font local machine . This time  @font- face download fonts in browser temporary download font and display text</p>
<h3>Supported font formats</h3>
<ul>
<li>Internet      Explorer (all versions): EOT</li>
<li>Safari      (3.2+): TTF / OTF</li>
<li>iPhone      (3.1) SVG</li>
<li>Chrome      (all versions): SVG (TTF/OTF added 25th Jan 2010)</li>
<li>Firefox      (3.5+): TTF/OTF (.WOFF added 3.6)</li>
<li>Opera      (10+) TTF/OTF</li>
</ul>
<h3>Browser compatibility</h3>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td>Browser</td>
<td>Lowest version</td>
<td>Support of</td>
</tr>
<tr>
<td>Internet Explorer</td>
<td><strong>4.0</strong></td>
<td>Embedded OpenType fonts only</td>
</tr>
<tr>
<td rowspan="2">Firefox (Gecko)</td>
<td><strong>3.5</strong> (1.9.1)</td>
<td>TrueType and OpenType fonts only</td>
</tr>
<tr>
<td><strong>3.6</strong> (1.9.2)</td>
<td>Web Open Font Format (WOFF)</td>
</tr>
<tr>
<td>Opera</td>
<td><strong>10.0</strong></td>
<td>TrueType and OpenType fonts only</td>
</tr>
<tr>
<td>Safari (WebKit)</td>
<td><strong>3.1</strong> (525)</td>
<td>TrueType and OpenType fonts only</td>
</tr>
</tbody>
</table>
<p>## Umar Pahat##<br />
<a>umar@intelligrape.com</a><br />
<a>www.IntelliGrape.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelligrape.com/blog/2010/06/07/accessing-remote-fonts-on-clients-system-by-font-face/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE 6/7 Z-index issue</title>
		<link>http://www.intelligrape.com/blog/2010/06/03/ie-67-z-index-issue/</link>
		<comments>http://www.intelligrape.com/blog/2010/06/03/ie-67-z-index-issue/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 13:53:08 +0000</pubDate>
		<dc:creator>Hitesh Bhatia</dc:creator>
				<category><![CDATA[HTML-UI-CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[internet explorer]]></category>

		<guid isPermaLink="false">http://www.intelligrape.com/blog/2010/06/03/ie-67-z-index-issue/</guid>
		<description><![CDATA[Recently I got struck in an IE issue &#8230; Z-index did not seem to work on IE 6 or 7 ..
After some surfing found a pretty easy solution .
i.e  use

position:relative

with z-index ..and voila it works
_____________________
Hitesh Bhatia
hitesh@intelligrape.com
_____________________
]]></description>
			<content:encoded><![CDATA[<p>Recently I got struck in an IE issue &#8230; Z-index did not seem to work on IE 6 or 7 ..<br />
After some surfing found a pretty easy solution .<br />
i.e  use</p>

<div class="wp_syntax"><div class="code"><pre class="groovy">position:relative</pre></div></div>

<p>with z-index ..and voila it works</p>
<p>_____________________<br />
Hitesh Bhatia<br />
hitesh@intelligrape.com<br />
_____________________</p>
]]></content:encoded>
			<wfw:commentRss>http://www.intelligrape.com/blog/2010/06/03/ie-67-z-index-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

