<?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>Anaganaga &#187; Web Technology</title>
	<atom:link href="http://www.vamsiperi.com/category/web-technology/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vamsiperi.com</link>
	<description>Stories about technology and magic.</description>
	<lastBuildDate>Tue, 22 Dec 2009 03:43:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Styling without CSS</title>
		<link>http://www.vamsiperi.com/web-technology/styling-without-css/</link>
		<comments>http://www.vamsiperi.com/web-technology/styling-without-css/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 03:41:03 +0000</pubDate>
		<dc:creator>Vamsi</dc:creator>
				<category><![CDATA[Web Technology]]></category>

		<guid isPermaLink="false">http://www.vamsiperi.com/?p=353</guid>
		<description><![CDATA[Well, not quite. The idea is to get rid of static CSS files and have the styling in a JavaScript file, in the form of JSON. Defining the styles using JavaScript is quite powerful and flexible as well, especially when combined with a good selector engine like jQuery. JSON stylesheets explains the benefits of using [...]]]></description>
			<content:encoded><![CDATA[<p>Well, not quite. <strong>The idea is to get rid of static CSS files and have the styling in a JavaScript file, in the form of JSON.</strong> Defining the styles using JavaScript is quite powerful and flexible as well, especially when combined with a good selector engine like jQuery. <a href="http://maraksquires.com/json_stylesheets/">JSON stylesheets</a> explains the benefits of using JavaScript for styling. There are some downsides to that approach as well.</p>
<ul>
<li>It will not work when JavaScript is turned off. The fallback should be a CSS file that comes close to what the JSON stylesheet does. Maybe some tool can create the CSS file from the JSON stylesheet automatically.</li>
<li>If you are using an editor like Dreamweaver, auto complete features do not work with CSS written as JSON objects. Again, there can be a tool that takes in CSS (which can be created easily with your favourite editor) and creates the JSON stylesheet which can be used to add additional logic or complexity.</li>
</ul>
<p>Is it really necessary to push styles onto JavaScript? Imagine a photo blogging template that changes its theme depending on the photo being displayed (I believe such themes already exist). Such a theme can be easily implemented using JSON stylesheets. We just need more tools around this idea for us to start using it instead of plain old CSS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vamsiperi.com/web-technology/styling-without-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
