<?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>JiveBay &#187; css</title>
	<atom:link href="http://jivebay.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://jivebay.com</link>
	<description>Web Development, Code Snippets, Technology, Reviews and Random Stuff Blog</description>
	<lastBuildDate>Thu, 29 Jul 2010 13:39:11 +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>CSS3 Validation Debate Reponse</title>
		<link>http://jivebay.com/2009/09/01/css3-validation-debate-reponse/</link>
		<comments>http://jivebay.com/2009/09/01/css3-validation-debate-reponse/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 14:08:10 +0000</pubDate>
		<dc:creator>blogger</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://jivebay.com/?p=586</guid>
		<description><![CDATA[How to deal with CSS3 Validation Errors from the W3C's CSS Validation service.]]></description>
			<content:encoded><![CDATA[<p>There is a post on <a href="http://www.css3.info/">CSS3.info</a>, <a href="http://www.css3.info/the-big-css3-validation-debate/">The Big CSS3 Validation Debate</a> where I left a comment I figured I&#8217;d make into a post here. It&#8217;s about how adding CSS3 rules to your style sheet result in errors with validation and what we think the W3C should do about it. Anyway, my response is below (edited, because I pressed submit too soon). <img src='http://jivebay.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<hr />
<p>No need to have the W3C mess with their validator just to work with all the possible browser extensions. This would most likely introduce bugs and cause too much of a headache for them.</p>
<p>Here are 2 things you can do to get by the errors</p>
<ol>
<li>Put all your CSS3 rules in a css3.css file and then when you validate everything in your regular .css files should pass and the css3.css should fail.</li>
<li>Or put a /*CSS3*/ comment for each CSS3 rule you have in your style sheet, so when it gives an error you know why. This would work best if you put each css3 rule on a separate line.</li>
</ol>
<img src="http://jivebay.com/?ak_action=api_record_view&id=586&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://jivebay.com/2009/09/01/css3-validation-debate-reponse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Blockquotes</title>
		<link>http://jivebay.com/2008/09/09/css-blockquotes/</link>
		<comments>http://jivebay.com/2008/09/09/css-blockquotes/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 03:12:12 +0000</pubDate>
		<dc:creator>blogger</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://jivebay.com/?p=276</guid>
		<description><![CDATA[I figured I&#8217;d share two ways I&#8217;ve done blockquotes on this site.
Here is the HTML being used

&#60;blockquote&#62;&#60;p&#62;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sit amet quam. Sed quis justo scelerisque dui iaculis euismod. Nunc sit amet lectus ac orci placerat pulvinar?&#60;/p&#62;&#60;/blockquote&#62;

The first is from the original design the site had.

In this one I [...]]]></description>
			<content:encoded><![CDATA[<p>I figured I&#8217;d share two ways I&#8217;ve done blockquotes on this site.<br />
Here is the HTML being used<br />
<code><br />
&lt;blockquote&gt;&lt;p&gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sit amet quam. Sed quis justo scelerisque dui iaculis euismod. Nunc sit amet lectus ac orci placerat pulvinar?&lt;/p&gt;&lt;/blockquote&gt;<br />
</code></p>
<p>The first is from the original design the site had.<br />
<img src="http://jivebay.com/wp-content/uploads/blockquote_old.png" alt="old blockquote" title="blockquote_old" width="482" height="120" class="size-full wp-image-277" /></p>
<p>In this one I just use 2 images for the quotes, but no extra div for the closing quote, because I use the <strong>last-child</strong> pseudo-class.</p>
<p><code><br />
blockquote {<br />
	margin:1.5em;<br />
	padding:5px 40px;<br />
	border-top:1px solid #eee;<br />
	border-bottom:1px solid #eee;<br />
	background:url(images/quotation_marks.gif) no-repeat left 5px;<br />
	color:#717f53;<br />
	min-height:30px;<br />
}<br />
blockquote p:last-child {background:url(images/quotation_marks_close.gif) no-repeat right bottom;}/*css3*/<br />
</code></p>
<hr />
<p>The second is the one I use on the site right now. Instead of using images, I just use the css <strong>content</strong> property and set the value to <strong>open-quote</strong> for the <strong>before</strong> pseudo-class and <strong>close-quote</strong> for the <strong>after</strong> pseudo-class. I also add css rounded corners for some extra styling.<br />
<img src="http://jivebay.com/wp-content/uploads/blockquote_new.png" alt="" title="blockquote_new" width="474" height="186" class="alignnone size-full wp-image-281" /></p>
<p><code><br />
blockquote p {<br />
	padding:10px;<br />
	margin:10px;<br />
}<br />
blockquote:before, blockquote:after {<br />
	display:block;<br />
	cursor:default;<br />
	line-height:1em;<br />
	font-weight:bold;<br />
	font-size:1.6em;<br />
	color:#000;<br />
	font-family:Georgia, &#039;Times New Roman&#039;, serif;<br />
}<br />
blockquote:before {<br />
	content:open-quote;<br />
}<br />
blockquote:after {<br />
	text-align:right;<br />
	content:close-quote;<br />
}<br />
blockquote {<br />
	margin:20px;<br />
	padding:10px;<br />
	border:1px solid #eee;<br />
	line-height:1.4em;<br />
	color:#918e95;<br />
	-moz-border-radius:5px; -webkit-border-radius:5px;/*css3 rounded corners*/<br />
}<br />
</code></p>
<p>This CSS may not work in older-browsers, but if the blockquote is indented with a border or set to another color, it should stand out enough to be ok.</p>
<img src="http://jivebay.com/?ak_action=api_record_view&id=276&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://jivebay.com/2008/09/09/css-blockquotes/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>CSS Class Based on Date</title>
		<link>http://jivebay.com/2007/08/01/css-class-based-on-date/</link>
		<comments>http://jivebay.com/2007/08/01/css-class-based-on-date/#comments</comments>
		<pubDate>Thu, 02 Aug 2007 00:57:22 +0000</pubDate>
		<dc:creator>blogger</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[simplepie]]></category>

		<guid isPermaLink="false">http://jivebay.com/2007/08/01/css-class-based-on-date/</guid>
		<description><![CDATA[I recently saw a tutorial on SimplePie&#8217;s site about using relative dates and I modified the function to output a CSS class rather than text. That way you can make newer stories bold, brighter, or bigger and older stories dimmed out or smaller. Use your imagination with CSS.  
Here is the function

//CREATE CSS BASED [...]]]></description>
			<content:encoded><![CDATA[<p>I recently saw a <a href="http://simplepie.org/wiki/tutorial/use_relative_dates">tutorial on SimplePie&#8217;s site about using relative dates</a> and I modified the function to output a CSS class rather than text. That way you can make newer stories bold, brighter, or bigger and older stories dimmed out or smaller. Use your imagination with CSS. <img src='http://jivebay.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Here is the function</strong><br />
<code><br />
//CREATE CSS BASED ON DATE<br />
function create_age_css_class($date_sent)<br />
{<br />
	/**<br />
	$date_sent should be in the following format: YYYYMMDDHHMMSS<br />
	Based on doRelativeDate() By Garrett Murray, http://graveyard.maniacalrage.net/etc/relative/<br />
	**/<br />
	$in_seconds = strtotime(substr($date_sent,0,8).&#039; &#039;.<br />
							substr($date_sent,8,2).&#039;:&#039;.<br />
							substr($date_sent,10,2).&#039;:&#039;.<br />
							substr($date_sent,12,2));<br />
	$diff = time()-$in_seconds;<br />
	if ($diff &lt; 86400)<br />
		$css_class = &#039;age_today&#039;;<br />
	else if ($diff &lt; 604800)<br />
		$css_class = &#039;age_days&#039;;<br />
	else if ($diff &lt; 1209600)<br />
		$css_class = &#039;age_week&#039;;<br />
	else if ($diff &lt; 2630880)<br />
		$css_class = &#039;age_weeks&#039;;<br />
	else<br />
		$css_class = &#039;age_month&#039;;<br />
	return $css_class;<br />
}<br />
</code></p>
<p><strong>Here is how I call it</strong><br />
<code><br />
$data .= &#039;&lt;li&gt;&lt;a href=&quot;&#039;. $item-&gt;get_permalink();<br />
//SET CLASS BASED ON DATE/AGE<br />
$data .= &#039; class=&quot;&#039; . create_age_css_class($item-&gt;get_date(&#039;YmdHis&#039;)) . &#039;&quot;&#039;;<br />
$data .= &#039;&gt;&#039;;<br />
</code></p>
<p>You don&#8217;t have to use <a href="http://simplepie.org">SimplePie</a> for this function, but it&#8217;s what inspired me to modify it.</p>
<p>Now for an screenshot<br />
<img src="http://jivebay.com/wp-content/uploads/css_classbased_date.png" alt="" title="css_classbased_date" width="451" height="158" class="alignnone size-full wp-image-346" /></p>
<p>Here is the HTML I used for that<br />
<code><br />
&lt;ul id=&quot;type3&quot;&gt;<br />
&lt;li class=&quot;age_today&quot;&gt;Lorem ipsum dolor sit amet&lt;/li&gt;<br />
&lt;li class=&quot;age_days&quot;&gt;Etiam iaculis nulla iaculis mauris&lt;/li&gt;<br />
&lt;li class=&quot;age_week&quot;&gt;Suspendisse at odio&lt;/li&gt;<br />
&lt;li class=&quot;age_week&quot;&gt;Nullam volutpat aliquam lacus&lt;/li&gt;<br />
&lt;li class=&quot;age_weeks&quot;&gt;Nunc dapibus eros vitae mauris rutrum laoreet&lt;/li&gt;<br />
&lt;li class=&quot;age_weeks&quot;&gt;Suspendisse sed nisl&lt;/li&gt;<br />
&lt;li class=&quot;age_month&quot;&gt;Nulla scelerisque gravida neque&lt;/li&gt;<br />
&lt;li class=&quot;age_month&quot;&gt;Leo imperdiet metus, ut adipiscing nisi lacus et pede&lt;/li&gt;<br />
&lt;/ul&gt;<br />
</code></p>
<p>And here is the CSS used<br />
<code><br />
&lt;style type=&quot;text/css&quot;&gt;<br />
body {font-family:Verdana, Arial, Helvetica, sans-serif; color:#000; background-color:#fff;}<br />
ul {list-style:none;}<br />
#type3 .age_days {font-size:150%; color:#555;}<br />
#type3 .age_week {font-size:100%; color:#777;}<br />
#type3 .age_weeks {font-size:80%; color:#999;}<br />
#type3 .age_month {font-size:60%; color:#ccc;}<br />
&lt;/style&gt;<br />
</code></p>
<p><ins datetime="2008-10-07T14:47:25+00:00">Added screenshot and sample CSS</ins></p>
<img src="http://jivebay.com/?ak_action=api_record_view&id=158&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://jivebay.com/2007/08/01/css-class-based-on-date/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
