﻿<?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, 01 Feb 2010 09:44:28 +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>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>]]></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;">&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;">.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>0</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>]]></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;">&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;">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;">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;">#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;">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;">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>]]></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;">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;">&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;">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;">//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>0</slash:comments>
		</item>
		<item>
		<title>Internet Explorer 8 CSS hacks</title>
		<link>http://www.ladysign-apps.com/blog/code/css/internet-explorer-8-css-hacks/</link>
		<comments>http://www.ladysign-apps.com/blog/code/css/internet-explorer-8-css-hacks/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 14:20:51 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[browsers]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Acid2 test]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[internet explorer 8]]></category>

		<guid isPermaLink="false">http://ladysign-apps.com/blog/?p=529</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 2 out of 5 stars</p>
<p>Last friday <a href="http://www.microsoft.com/windows/internet-explorer/default.aspx" target="_blank">Internet Explorer 8</a> was launched as an official release. This will mean that lots of people will finally use [......]</p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 2 out of 5 stars</p>
<p>Last friday <a href="http://www.microsoft.com/windows/internet-explorer/default.aspx" target="_blank">Internet Explorer 8</a> was launched as an official release. This will mean that lots of people will finally use it.</p>
<p>Allthough IE8 passed the <a href="http://www.webstandards.org/files/acid2/guide.html" target="_blank">ACID2 test</a>, again a new browser can be painfull for the webdeveloper to support multi-browsers.<br />
Luckily there are also IE8 CSS stylesheet hacks:</p>
<pre class="brush: css;">
.test{
     color:blue;
     //color:red;
}
</pre>
<p>With this hack, all browsers will skip the line with color: red, since this is a comment line (before the property). Except for Internet Explorer. IE8 ignores it, and just change the color to red, while other browsers keep the color blue.</p>
<p>But there is more!<br />
IE8 Standards-Mode Only:</p>
<pre class="brush: css;">
.test { color /*\**/: blue\9 }
</pre>
<p>All IE versions, including IE8 Standards Mode:</p>
<pre class="brush: css;">
.test { color: blue\9 }
</pre>
<p>Another trick, to make css styles for IE8 only, is by using conditional comment tags in your HTML:</p>
<pre class="brush: xml;">
&lt;!--[if gte IE 8]&gt;
      &lt;style type=&quot;text/css&quot;&gt;
      body {
       color: #0000ff;
       background-color: #000000;
      }
      &lt;/style&gt;
&lt;![endif]--&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/css/internet-explorer-8-css-hacks/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Salesforce: Cases css stylesheet</title>
		<link>http://www.ladysign-apps.com/blog/code/salesforce/salesforce-cases-stylesheet/</link>
		<comments>http://www.ladysign-apps.com/blog/code/salesforce/salesforce-cases-stylesheet/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 21:29:15 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[salesforce]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[stylesheet]]></category>

		<guid isPermaLink="false">http://ladysign-apps.com/blog/?p=63</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>Use this CSS stylesheet for your custom S-Control pages.<br />
Your mod will look like a real Salesforce styled page. (cases ta[......]</p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>Use this CSS stylesheet for your custom S-Control pages.<br />
Your mod will look like a real Salesforce styled page. (cases tab style)</p>
<pre class="brush: css;">
body {
	font-family:'Arial','Helvetica',sans-serif;
	font-size:75%;
	line-height: 1.6em;
	background: #fff;
	padding: 0;
}

h1,  h2 { font-size: 14px; font-weight: bold; }
h3 { font-size: 100%; background: #DDB929; display: block; padding: 1px; color: #fff; }
h4 { font-size: 80%; background: #DDB929; display: block; padding: 1px; color: #fff; }

label { font-weight: bold; text-align: right;  }
span { }
strong { font-weight: bold; color: #f00; }

a { color: #000; }

hr { color: #eeecd1;  border: 1px solid;}

div {
	background: #F3F3EC;
	margin: 5px;
	padding: 5px;
	border: 2px Solid #eeecd1;
	width: 95%;
}

li{
	 display: block;
	 margin: 2px 2px 2px -20px;
}

table {
	width: 100%;
	background: #F3F3EC;
	font-size: 12px;
	border-top: 5px Solid #E5C130;
	border-bottom: 2px Solid #E5C130;
	border-left: 1px Solid #eeecd1;
	border-right: 1px Solid #eeecd1;
	padding: 0px;
	margin: 0px 0px 10px 0px;
}

th { background: #eeecd1; height: 19px; width: 20%; } // TODO dynamic

td {
	height: 19px;
	border-bottom: 1px solid #eeecd1;
	width: 20%;
	margin: 0px 2px 0px 2px;
	padding: 0px 5px 0px 2px;
}

.classy0 { background-color: #eeecd1; }

button, .btn {
	background-image:url('/img/bgButton.gif');
	background-position:left top;
	background-repeat:repeat-x;
	border-color:-moz-use-text-color #5C5D61 rgb(92, 93, 97) -moz-use-text-color;
	border-style:none solid solid none;
	border-width:medium 1px 1px medium;
	color:#FFFFFF;
	cursor:pointer;
	display:inline;
	font-family:'Verdana','Geneva',sans-serif;
	font-size:80%;
	font-weight:bold;
	padding:1px 3px;
}

.relatedListBlock{
	float: left;
}

.end {
	clear: both;
}

.hide {
  	display: none;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/salesforce/salesforce-cases-stylesheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
