<?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>Ladysign Dev Blog &#187; css</title>
	<atom:link href="http://www.ladysign-apps.com/blog/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ladysign-apps.com/blog</link>
	<description>Girls can code.</description>
	<lastBuildDate>Mon, 12 Dec 2011 16:58:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Chrome Safari Webkit only CSS hack</title>
		<link>http://www.ladysign-apps.com/blog/code/css/chrome-safari-webkit-only-css-hack/</link>
		<comments>http://www.ladysign-apps.com/blog/code/css/chrome-safari-webkit-only-css-hack/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 14:31:20 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://www.ladysign-apps.com/blog/?p=1007</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>Here&#8217;s an example how to target only webkit browsers:</p>

		 input.search{
			color: red;
		}

		@media screen and (-w[......]<p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/css/chrome-safari-webkit-only-css-hack/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>Here&#8217;s an example how to target only webkit browsers:</p>
<pre class="brush: css; title: ;">
		 input.search{
			color: red;
		}

		@media screen and (-webkit-min-device-pixel-ratio:0) {
			input.search{
 				color: green;
			}
		}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/css/chrome-safari-webkit-only-css-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image base64 uri strings</title>
		<link>http://www.ladysign-apps.com/blog/code/css/image-base64-uri-strings/</link>
		<comments>http://www.ladysign-apps.com/blog/code/css/image-base64-uri-strings/#comments</comments>
		<pubDate>Tue, 28 Dec 2010 19:43:49 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[generators]]></category>
		<category><![CDATA[generator]]></category>
		<category><![CDATA[image base64 strings]]></category>

		<guid isPermaLink="false">http://www.ladysign-apps.com/blog/?p=993</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 2 out of 5 stars</p>
<p>By using the Data URI scheme you can embed images directly into your HTML and CSS. It works by encoding an image into a b[......]</p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/css/image-base64-uri-strings/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 2 out of 5 stars</p>
<p>By using the Data URI scheme you can embed images directly into your HTML and CSS. It works by encoding an image into a base64 string and place it directly withing an HTML image tag or as a CSS background URL. Such a base64 string url example in your CSS looks like this:</p>
<pre class="brush: css; title: ;">
div.image {
 background: data:image/x-png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAABLElEQVR42qSTQStFURSFP7f3XygyoAwoYSYMPCIpk2egMFSmUvwCRpSRDIwYGbwyVuYykB9y914m951z7nHe6J26dc9u77XXWmdvJLF7/audqx9JYuvyW92LL0li8K2df2r17CPEVk7ftXTclyQqAMmRCwC5I3fS42a4W7y74VYDNAAuJA8AaXIsSACsDgAdAJeFrnnyoMBygKZJJ3b1It0AmsTMDPdEgrujJqHEwCxqznMaD2KgyCDRnEuo8qJhHvx/hcQDbzGoix5Yi4G1TcwZWNEDKwJU+WDkhg2ToDaD+M65YcVB8jg3Y5IY5VQAyyf9gLJw+CqAuYNnAczsPQpgevtBU937kDexcdssj8Ti0ZskMd97CRs3u//U2sjJzbtwH1+/Cf8jS/gbAMmWc42HzdIjAAAAAElFTkSuQmCC
}
</pre>
<p>I found this generator who generates such a string after uploading an image.<br />
I used this for iPhone/iPad app development.</p>
<p><a href="http://webcodertools.com/imagetobase64converter">http://webcodertools.com/imagetobase64converter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/css/image-base64-uri-strings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Style sexy submit buttons with CSS</title>
		<link>http://www.ladysign-apps.com/blog/code/css/style-sexy-submit-buttons-with-css/</link>
		<comments>http://www.ladysign-apps.com/blog/code/css/style-sexy-submit-buttons-with-css/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 17:19:57 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[sexy buttons]]></category>
		<category><![CDATA[style]]></category>
		<category><![CDATA[submit button]]></category>

		<guid isPermaLink="false">http://www.ladysign-apps.com/blog/?p=950</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 2 out of 5 stars</p>
<p>It&#8217;s nice to style your buttons with CSS. &#8211; For anchor tags, this is easy todo, if you use the <a href="http://www.alistapart.com/articles/slidingdoors/">sliding doors [......]</a></p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/css/style-sexy-submit-buttons-with-css/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 2 out of 5 stars</p>
<p>It&#8217;s nice to style your buttons with CSS. &#8211; For anchor tags, this is easy todo, if you use the <a href="http://www.alistapart.com/articles/slidingdoors/">sliding doors CSS technique</a>.<br />
But it gets nasty when you want to style the submit button, specially if you want the same results in all modern browsers.</p>
<p>What I often see, is in this case, that people create the submit  button via an anchor tag as well. The onsubmit action will be added dynamicly via Javascript. &#8211; Sure this works, but when people disable Javascript (and people do), you can not submit the form. &#8211; Bad accessibility.</p>
<p>The input type submit button is the worse button to style. But there is also a button tag, which can contain a type=submit. This button tag, can contain child tags, just as you do with an anchor tag.<br />
Please see my solution below.</p>
<p>You can download the image files:<br />
<a href="http://www.ladysign-apps.com/blog/siteimg/submit-button-img-span.gif">left main button image</a> | <a href="http://www.ladysign-apps.com/blog/siteimg/submit-button-img-right.gif">right side button image</a></p>
<p><strong>html:</strong></p>
<pre class="brush: xml; title: ;">&lt;p&gt;
&lt;a class=&quot;button&quot; href=&quot;#&quot;&gt;&lt;span class=&quot;right&quot;&gt;&lt;span class=&quot;inner&quot;&gt;Ok&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;button type=&quot;submit&quot; class=&quot;button&quot; href=&quot;#&quot;&gt;&lt;span class=&quot;right&quot;&gt;&lt;span class=&quot;inner&quot;&gt;Submit&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;
&lt;/p&gt;</pre>
<p><strong>css:</strong></p>
<pre class="brush: css; title: ;">.button {
    background: none;
    clear: both;
    cursor: pointer;
    color: #444;
    display: inline-block;
    font: normal 12px arial, sans-serif;
    overflow: hidden;
    text-decoration: none;
    whitespace: no-wrap;
}

.button .inner {
   background: transparent url(../siteimg/submit-button-img-span.gif) no-repeat scroll top left;
   float: left;
}

.button .right {
    background: transparent url('../siteimg/submit-button-img-right.gif') no-repeat scroll top right;
	float: left;
	padding: 0 18px 0 0;
}

a.button span {
	padding: 5px 0 5px 18px;
}

button.button {
	border: none;
	padding: 0;
}

button.button span {
	height: 24px;
	line-height: 24px;
	padding: 0 0 0 15px;
}

.button:active span, .button:hover span {
	color: #000;
	filter: alpha(opacity=70);
	-moz-opacity: 0.7;
	opacity: 0.7;
}</pre>
<p>Check <a href="http://www.ladysign-apps.com/blog/lee/submit-button.html">my demo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/css/style-sexy-submit-buttons-with-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>7 CSS tricks for a print stylesheet</title>
		<link>http://www.ladysign-apps.com/blog/code/css/7-css-tricks-for-a-print-stylesheet/</link>
		<comments>http://www.ladysign-apps.com/blog/code/css/7-css-tricks-for-a-print-stylesheet/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 08:24:03 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[print stylesheet]]></category>
		<category><![CDATA[print.css]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://ladysign-apps.com/blog/?p=875</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars<br />
There are some cool styling tricks, which are nice to have when it comes to printing out a webpage.<br />
Please see my Print C[......]</p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/css/7-css-tricks-for-a-print-stylesheet/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars<br />
There are some cool styling tricks, which are nice to have when it comes to printing out a webpage.<br />
Please see my Print CSS snippets and tricks:</p>
<ol>
<li>Do not use much styles. If you print out a webpage you don&#8217;t want to print colors! (unless to color hyperlinks). Keep it plain and simple and write a short print stylesheet.<br/>
</li>
<li>Make sure you named your (2nd) stylesheet for printing: print.css<br />
And give it the &#8216;media&#8217; attribute print:</p>
<pre class="brush: xml; title: ;">&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;print.css&quot; media=&quot;print&quot; /&gt;</pre>
<p><br/>
</li>
<li>Use a good readable font. I would say a &#8220;serif&#8221; 12pt font and ofcourse keep it black.
<pre class="brush: css; title: ;">body { color : #000000; background : #ffffff; font-family : "Times New Roman", Times, serif; font-size : 12pt; }</pre>
<p><br/>
</li>
<li>It should be clear when a hyperlink is printed. Therefore keep links underlined. You can even color it blue.
<pre class="brush: css; title: ;">a { text-decoration : underline; color : #0000ff; }</pre>
<p><br/>
</li>
<li>Do not print out layout parts, navigation, javascript or flash animations.
<pre class="brush: css; title: ;">#navigation, #headerImage { display: none; }</pre>
<p><br/>
</li>
<li>This is a handy trick: With these styles you can set a page break for printing before or after:<br />
<em>Possible attributes are: always (print page break) | auto (default &#8211; page break where page ends) | left | right.</em></p>
<pre class="brush: css; title: ;">H1 {page-break-after: auto}
H2 {page-break-before: always}</pre>
<p><br/>
</li>
<li>Another handy trick, is to print the URL after an underlined hyperlink:
<pre class="brush: css; title: ;">a:link:after, a:visited:after { content: " (" attr(href) ")"; }</pre>
<p><br/>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/css/7-css-tricks-for-a-print-stylesheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create iTunes styled tables with jQuery and CSS</title>
		<link>http://www.ladysign-apps.com/blog/code/css/create-itunes-styled-tables-with-jquery-and-css/</link>
		<comments>http://www.ladysign-apps.com/blog/code/css/create-itunes-styled-tables-with-jquery-and-css/#comments</comments>
		<pubDate>Mon, 11 May 2009 11:10:45 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[css 3]]></category>
		<category><![CDATA[even]]></category>
		<category><![CDATA[ipod style]]></category>
		<category><![CDATA[itunes style]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[odd]]></category>
		<category><![CDATA[pseudo class]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://ladysign-apps.com/blog/?p=673</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 2 out of 5 stars</p>
<p>Do you like those iTunes styled tabels? These tabels give you a nice overview since every odd and even row contains a dif[......]</p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/css/create-itunes-styled-tables-with-jquery-and-css/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 2 out of 5 stars</p>
<p>Do you like those iTunes styled tabels? These tabels give you a nice overview since every odd and even row contains a different color.</p>
<p>But when your tabel contains dynamic data, you don&#8217;t know how many and which rows you have to style with an odd or even color class.</p>
<p>Styling odd and even rows, can be done by using CSS 3, write <a href="http://www.w3.org/TR/css3-selectors/">pseudo class notations</a>. </p>
<pre class="brush: css; title: ;">table tbody tr:nth-child(even) { background: #f1f5fa; }
table tbody tr:nth-child(odd) { background: #fff; } </pre>
<p>Ofcourse and unfortunately not all browsers (*IE(eek)*) support CSS 3.</p>
<p>Read below, how to do this with jQuery. You can write this in less then 5 lines.<br />
You will only need to download JQuery Javascript framework and including it in your webproject.</p>
<p><a href="http://ladysign-apps.com/blog/lee/example-table.jpg"><img src="http://ladysign-apps.com/blog/lee/example-table-300x44.jpg" alt="Example iTunes tabel"/></a></p>
<p>Here are the files you will need:</p>
<p>The HTML to create a accessible tabel:</p>
<pre class="brush: xml; title: ;">&lt;table&gt;
 &lt;thead&gt;
  &lt;tr&gt;
   &lt;th&gt;Head 1&lt;/th&gt;
   &lt;th&gt;Head 2&lt;/th&gt;
   &lt;th&gt;Head 3&lt;/th&gt;
  &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
  &lt;tr&gt;
   &lt;td&gt;Cell 1&lt;/td&gt;
   &lt;td&gt;Cell 2&lt;/td&gt;
   &lt;td&gt;Cell 3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;Cell 4&lt;/td&gt;
   &lt;td&gt;Cell 5&lt;/td&gt;
   &lt;td&gt;Cell 6&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;Cell 7&lt;/td&gt;
   &lt;td&gt;Cell 8&lt;/td&gt;
   &lt;td&gt;Cell 9&lt;/td&gt;
  &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;</pre>
<p>The styles for a iTunes generic tabel style:</p>
<pre class="brush: css; title: ;">table { background-color: #fff; border: 1px solid #ddd; empty-cells: show; font-size: 90%; margin: 10px 0 20px 20px; padding: 4px; text-align: left; width: 650px; }
table caption { color: #777; margin: 0 0 5px 0; padding: 0; text-align: center; text-transform: uppercase; }
table thead th { border: 0; border-bottom: 1px solid #ddd; color: #000; font-size: 90%; padding: 3px; margin: 0 0 5px 0; text-align: left; }
table tbody tr { background-color: #fff; }
table tbody tr:hover { background-color: #3D80DF !important; color: #fff; }
table tbody td { color: #000; padding: 2px; border: 0; }
table tbody tr:hover td { color: #fff; } </pre>
<p>jQuery, where you will pick all the odd table rows and give it the blue iTunes color:</p>
<pre class="brush: jscript; title: ;">//JQuery functions
$(document).ready(function(){
	//odd even table cells.
	$(&quot;tr:odd&quot;).css(&quot;background-color&quot;, &quot;#F1F5FA&quot;);
});</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/css/create-itunes-styled-tables-with-jquery-and-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

