<?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>Xavi Esteve &#187; css</title>
	<atom:link href="http://xaviesteve.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://xaviesteve.com</link>
	<description>I&#039;m a front end web developer and graphic designer from Barcelona based in London. I am passionate in JavaScript, jQuery, CSS, PHP, Wordpress, usability and SEO.</description>
	<lastBuildDate>Sun, 05 Feb 2012 19:49:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>PeliculasOnlineWiki</title>
		<link>http://xaviesteve.com/1193/peliculasonlinewiki/</link>
		<comments>http://xaviesteve.com/1193/peliculasonlinewiki/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 19:08:22 +0000</pubDate>
		<dc:creator>Xavi</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[flexible]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[liquid]]></category>
		<category><![CDATA[movies]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://xaviesteve.com/?p=1193</guid>
		<description><![CDATA[PeliculasOnlineWiki is an online movie link database powered by users. The submission process has been optimized so that users just need to fill two fields (the name of the movie and the link to the external website). Through public APIs, PeliculasOnlineWiki gathers all the necessary data (exact movie title, synopsis, movie image, genre and rating) [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-1215" title="peliculasonlinewiki" src="http://xaviesteve.com/wp-content/uploads/2010/07/peliculasonlinewiki.jpg" alt="" width="600" height="352" /></p>
<p>PeliculasOnlineWiki is an online movie link database powered by users. The submission process has been optimized so that users just need to fill two fields (the name of the movie and the link to the external website).</p>
<p><img class="alignleft size-large wp-image-1194" title="peliculas-wiki-portada" src="http://xaviesteve.com/wp-content/uploads/2010/07/peliculas-wiki-portada-600x310.jpg" alt="" width="600" height="310" /></p>
<p>Through public APIs, PeliculasOnlineWiki gathers all the necessary data (exact movie title, synopsis, movie image, genre and rating) plus the system generates all the necessary image thumbnails to fit in every page automatically.</p>
<p><img class="alignleft size-large wp-image-1195" title="peliculas-wiki-enviar" src="http://xaviesteve.com/wp-content/uploads/2010/07/peliculas-wiki-enviar-600x310.jpg" alt="" width="600" height="310" /></p>
<p>The development of the website is done in PHP, MySQL, jQuery, XHTML and CSS. The template is liquid which allows users to view the website as big as they want without wasting space. As the browser is resized, the website adapts to show more or less content.</p>
<p><img class="alignleft size-large wp-image-1196" title="peliculas-wiki-pelicula" src="http://xaviesteve.com/wp-content/uploads/2010/07/peliculas-wiki-pelicula-600x301.jpg" alt="" width="600" height="301" /></p>
]]></content:encoded>
			<wfw:commentRss>http://xaviesteve.com/1193/peliculasonlinewiki/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Sprite Map in Adobe Fireworks Tutorial</title>
		<link>http://xaviesteve.com/601/css-sprite-map-in-adobe-fireworks-tutorial/</link>
		<comments>http://xaviesteve.com/601/css-sprite-map-in-adobe-fireworks-tutorial/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 09:42:52 +0000</pubDate>
		<dc:creator>Xavi</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Fireworks]]></category>
		<category><![CDATA[Front-End]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[fireworks]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[sprite]]></category>
		<category><![CDATA[sprite map]]></category>

		<guid isPermaLink="false">http://xaviesteve.com/?p=601</guid>
		<description><![CDATA[Adobe Fireworks or Photoshop haven&#8217;t got any CSS Sprite Map tool or wizard but it is very easy to create sprite maps. I recommend you to use Fireworks instead of Photoshop for this since the interface is much cleaner and organized and the exported images have smaller size but excellent results. You should also use [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://xaviesteve.com/wp-content/uploads/2010/06/gadl-chocolate-map.jpg"><img class="alignnone size-full wp-image-695" title="gadl-chocolate-map" src="http://xaviesteve.com/wp-content/uploads/2010/06/gadl-chocolate-map.jpg" alt="" width="600" height="249" /></a></p>
<p><strong>Adobe Fireworks</strong> or <strong>Photoshop</strong> haven&#8217;t got any CSS Sprite Map tool or wizard but it is very easy to create sprite maps. I recommend you to use Fireworks instead of Photoshop for this since the interface is much cleaner and organized and the exported images have smaller size but excellent results. You should also use Smush.it when you finish with your image to compress it even more.</p>
<h2>What is a CSS Sprite?</h2>
<p>A CSS Sprite is one big image that has many small images in it. We then use CSS to get the little images, all from the big image. Everyone uses them nowadays and once you get the trick of it it is really beneficial for a website. So, what are the advantages of using Sprites? The user will only have to make one server request to get all the icons and logos, etc. Instead of asking for each image separately. Here are some examples: <a href="http://xaviesteve.com/wp-content/themes/xaviesteve/images/xaviesteve_sprite.png">XaviEsteve</a>, <a href="http://www.google.com/images/nav_logo70.png">Google</a>, <a href="http://static02.linkedin.com/scds/common/u/img/sprite/sprite_global_v5.png">LinkedIn</a>, <a href="http://www.facebook.com/rsrc.php/z8S5R/hash/ez3x5cuc.png">Facebook</a>&#8230;</p>
<h2>How to create a CSS Sprite Map with Adobe Fireworks</h2>
<h3>The image map</h3>
<p>Place every little image in a large canvas, trying to order them by groups. Leave as few space as possible between images but do not overlap them, leave 1px spacing between them.</p>
<p><img class="alignnone size-full wp-image-606" title="fireworks-how-to-css-sprite-map" src="http://xaviesteve.com/wp-content/uploads/2010/02/fireworks-how-to-css-sprite-map.gif" alt="fireworks-how-to-css-sprite-map" width="294" height="260" /></p>
<h3>CSS properties for the sprite</h3>
<p>The main three CSS properties needed for a CSS Sprite are:</p>
<pre>background-position: -Xpx -Ypx;
height: 16px;
width: 16px;</pre>
<p>Which can be easily found in Fireworks. Click the image or layer you want to know the CSS values and look at the bottom left of Fireworks:</p>
<p><a href="http://xaviesteve.com/wp-content/uploads/2010/02/css-sprite-background-position-in-fireworks.gif"><img class="alignnone size-full wp-image-607" title="css-sprite-background-position-in-fireworks" src="http://xaviesteve.com/wp-content/uploads/2010/02/css-sprite-background-position-in-fireworks.gif" alt="css-sprite-background-position-in-fireworks" width="202" height="197" /></a></p>
<p>Remember that <em>Background Position is always negative</em>. Nothing to worry about, just add a hyphen (-) in the CSS style sheet.</p>
<p>If we are using &lt;div&gt; or &lt;span&gt; tags and want to show them as inline elements we should use:</p>
<pre>display: inline-block;</pre>
<p>IE6 doesn&#8217;t support inline-block so use this in the IE6 style sheet:</p>
<pre>display: block; float: left;</pre>
<p>We can also use &lt;h1&gt; or any other HTML tags we want. If we need to hide the text inside that tag we can put the text in a &lt;span&gt; and hide it:</p>
<pre>&lt;h1&gt;&lt;span style="display:none;"&gt;Text to be hidden&lt;/span&gt;&lt;/h1&gt;</pre>
<p>Do not use inline styling, I&#8217;ve added it above just to show you the example in one line.</p>
<h3>Group properties to optimize the CSS code</h3>
<p>To get the best out of CSS sprite maps it is recommended to group the properties and make the code as small as possible.<br />
There are two main ways to save code while creating a sprite map. The first one is to add all the selectors to the same URL:</p>
<p><a href="http://xaviesteve.com/wp-content/uploads/2010/02/css-grouping-same-images-from-sprite.gif"><img class="alignnone size-full wp-image-604" title="css-grouping-same-images-from-sprite" src="http://xaviesteve.com/wp-content/uploads/2010/02/css-grouping-same-images-from-sprite.gif" alt="" width="738" height="160" /></a></p>
<p>The second one is to group all the images by its same height/width or any other shared properties like floatings:</p>
<p><a href="http://xaviesteve.com/wp-content/uploads/2010/02/css-grouping-properties-for-clean-code.gif"><img class="alignnone size-full wp-image-605" title="css-grouping-properties-for-clean-code" src="http://xaviesteve.com/wp-content/uploads/2010/02/css-grouping-properties-for-clean-code.gif" alt="" width="587" height="213" /></a></p>
<p>Once you have the image and the CSS you just need to call it in the HTML page like this:</p>
<pre>&lt;span class="bigico hp"&gt;&lt;/span&gt;</pre>
<p>This will &#8220;magically&#8221; convert the &lt;span&gt; into an image.</p>
<h2>CSS Sprite Planning for a website</h2>
<p>Before starting with creating the CSS Sprite in Fireworks it is good to plan how many icons/images you are going to use and which type of images are you going to use: if they will have transparent background, use a lot of colours or gradients&#8230;</p>
<h3>How many files will you need?</h3>
<h4>CSS Sprite map based on its use</h4>
<p>Think <strong>which graphics are used always</strong> and which are just used for specific sections and split them. For example, create one for the home and common content like the header, sidebar, etc. and another one for specific sections that may not be accessed as much. The idea of CSS Sprites is to minimize server requests so packing images by context is the way to go.</p>
<h4>Do you need transparency?</h4>
<p>Are these images/icons going to be placed always on the same background? If they are going to have different backgrounds save the sprite as a PNG with alpha transparency (or a transparent GIF to support IE6 users). If you don&#8217;t need transparency then go with JPG or GIF.</p>
<h4>File size of the image</h4>
<p>The CSS Sprite map shouldn&#8217;t weight more than 300KB. If it does, split it on different ones.</p>
<hr />
<p><small>The screenshots of Fireworks were taken using Adobe CS3, the sprite map belongs to PC-Site.co.uk</small></p>
<p><small>Top photo by <a rel="nofollow" href="http://www.flickr.com/photos/gadl/">Gadl</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://xaviesteve.com/601/css-sprite-map-in-adobe-fireworks-tutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SkyScarf MultiSearch &#8211; iPhone version launched!</title>
		<link>http://xaviesteve.com/653/skyscarf-multisearch-iphone-version-launched/</link>
		<comments>http://xaviesteve.com/653/skyscarf-multisearch-iphone-version-launched/#comments</comments>
		<pubDate>Mon, 17 May 2010 23:48:08 +0000</pubDate>
		<dc:creator>Xavi</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[ipod]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[handheld]]></category>
		<category><![CDATA[ipod touch]]></category>
		<category><![CDATA[itouch]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[online]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[skyscarf]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://xaviesteve.com/?p=653</guid>
		<description><![CDATA[SkyScarf has just launched it&#8217;s iPhone version to help all those iPhone/iPod Touch users use their favourite search engine in a quick and efficient way. SkyScarf stands out to be the unification of all the major and most popular search engines among the Internet. One click to search any website allowing you to quickly access [...]]]></description>
			<content:encoded><![CDATA[<p>SkyScarf has just launched it&#8217;s iPhone version to help all those iPhone/iPod Touch users use their favourite search engine in a quick and efficient way.<br />
SkyScarf stands out to be the unification of all the major and most popular search engines among the Internet. One click to search any website allowing you to quickly access the information you need. Check it out:</p>
<h2><strong><a href="http://skyscarf.com/m">http://skyscarf.com/m</a></strong></h2>
<p><strong><a href="http://skyscarf.com/m"></a><a href="http://skyscarf.com/m"><img class="alignnone size-full wp-image-654" title="skyscarf multisearch engine iphone version" src="http://xaviesteve.com/wp-content/uploads/2010/05/skyscarf-multisearch-engine-iphone-version.jpg" alt="skyscarf multisearch engine iphone version" width="436" height="603" /></a></strong></p>
<h2><strong><a href="http://skyscarf.com/m">http://skyscarf.com/m</a></strong></h2>
<p>There&#8217;s a feedback forum were you can suggest new features or bugs.</p>
]]></content:encoded>
			<wfw:commentRss>http://xaviesteve.com/653/skyscarf-multisearch-iphone-version-launched/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blueprint CSS Watermark GIF for Pixel-Perfect Web Design</title>
		<link>http://xaviesteve.com/427/blueprint-css-watermark-gif-for-pixel-perfect-web-design/</link>
		<comments>http://xaviesteve.com/427/blueprint-css-watermark-gif-for-pixel-perfect-web-design/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 00:46:34 +0000</pubDate>
		<dc:creator>Xavi</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[960s]]></category>
		<category><![CDATA[blueprint]]></category>
		<category><![CDATA[columns]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[fireworks]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[gif]]></category>
		<category><![CDATA[grid]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://xaviesteve.com/?p=427</guid>
		<description><![CDATA[Here&#8217;s a GIF image that will help you get pixel-perfect results when designing the template of a website. It has been designed for the Blueprint CSS framework and it is based in: 24 columns of 30px width separated by 10px spaces which make 950px width in total. Paste it into your template with your favourite [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a GIF image that will help you get pixel-perfect results when designing the template of a website. It has been designed for the <a href="http://www.blueprintcss.org/">Blueprint CSS framework</a> and it is based in:</p>
<p><strong>24 columns</strong> of <strong>30px width</strong> separated by <strong>10px spaces</strong> which make <strong>950px width in total</strong>.</p>
<p>Paste it into your template with your favourite editor (Photoshop, Fireworks&#8230;) and align everything to the grid. I recommend you use Blueprint CSS or a similar 24 column based framework when developing the front-end.</p>
<div class="mceTemp">
<dl id="attachment_428" class="wp-caption alignnone" style="width: 188px;">
<dt class="wp-caption-dt"><img class="size-medium wp-image-428" title="web_950px_24col_grid" src="http://xaviesteve.com/wp-content/uploads/2009/11/web_950px_24col_grid-178x300.gif" alt="Blueprint columns" width="178" height="300" /></dt>
</dl>
</div>
<p><strong><a title="Blueprint CSS framework columns GIF" href="http://xaviesteve.com/wp-content/uploads/2009/11/web_950px_24col_grid.gif">Download Blueprint Bitmap</a></strong> <span style="color: #888888;"><em>(37KB)</em></span></p>
<ul>
<li>24 columns of 30px</li>
<li>separations of 10px</li>
<li>950px total width</li>
</ul>
<p>For a 3 column layout you would use 8+8+8 columns, for a two column layout 16+6 is good or for four boxes 6+6+6+6 columns.</p>
<p>Since I work in Fireworks for web design and I am a great fan of Blueprint, I will be releasing a collection of Fireworks templates ready to be modified, think as if they were some kind of PNG &#8220;framework&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://xaviesteve.com/427/blueprint-css-watermark-gif-for-pixel-perfect-web-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

