<?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; style</title>
	<atom:link href="http://www.ladysign-apps.com/blog/tag/style/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>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>
	</channel>
</rss>

