<?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>Cordobo &#187; feedback</title>
	<atom:link href="http://cordobo.com/tag/feedback/feed/" rel="self" type="application/rss+xml" />
	<link>http://cordobo.com</link>
	<description>Weblog of Andreas Jacob on Webdesign and CSS</description>
	<lastBuildDate>Mon, 20 Feb 2012 09:57:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Provide visual feedback using CSS #1</title>
		<link>http://cordobo.com/1119-provide-visual-feedback-css/</link>
		<comments>http://cordobo.com/1119-provide-visual-feedback-css/#comments</comments>
		<pubDate>Thu, 07 May 2009 20:25:38 +0000</pubDate>
		<dc:creator>Andreas Jacob</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[feedback]]></category>
		<category><![CDATA[ui]]></category>
		<category><![CDATA[ux]]></category>

		<guid isPermaLink="false">http://cordobo.com/?p=1119</guid>
		<description><![CDATA[Small changes can cause big improvements. Todays topic is about small css improvements, resulting in visual feedback for your visitors and improvements to your blogs user interface. Most of the CSS below only works in the newest browsers, but it shouldn&#8217;t prevent you from using it. Don&#8217;t just change the color of the link, provide [...]]]></description>
			<content:encoded><![CDATA[<p>Small changes can cause big improvements. Todays topic is about small css improvements, resulting in visual feedback for your visitors and improvements to your blogs user interface. Most of the CSS below only works in the newest browsers, <a href="http://www.stuffandnonsense.co.uk/archives/and_all_that_transcending_css_malarkey.html">but it shouldn&#8217;t prevent you from using it</a>.</p>
<h3>Don&#8217;t just change the color of the link, provide feedback</h3>
<p>Instead of just changing the color of your links, provide your websites&#8217; visitors with visual feedback for their interaction.</p>
<p><span id="more-1119"></span></p>
<h4>1. Improve the contrast between background and foreground</h4>
<p>If you have a low contrast between the link-color and the background-color (white on light-green, like in the image shown above), apply a light <strong>text-shadow</strong> to your navigation links. </p>
<p><img src="http://farm4.static.flickr.com/3397/3511223702_7c8feed527_o.png" alt="Visual Navigation Feedback" /></p>
<p>The text-shadow property adds a grey drop-shadow with one pixel to the bottom relative to the text (0px on the x-axis, 1px on the y-axis, 0px blur radius and the color #555)</p>
<p><code>a:link { text-shadow: 0px 1px 0px #555; }</code></p>
<p><strong>Note:</strong> This effect is only visible in Firefox 3.5+, Safari 3+, Opera 9+ and Chrome.</p>
<h4>2. Highlight the state of the link</h4>
<p>Change the color for an <code>:hover</code> effect, or like I did in the navigation, apply a darker and slightly bigger text-shadow to the link.</p>
<p><img src="http://farm4.static.flickr.com/3631/3511223744_67026bbf30_o.png" alt="Visual Navigation Feedback" /></p>
<p>With the following CSS applied, the link has a light 3D effect, like hovering over the navigation. </p>
<p><code>a:hover { text-shadow: 1px 1px 1px #000; }</code></p>
<p><strong>Note:</strong> this works only in Firefox 3.5+, Safari 3+ and Chrome, but neither in Internet Explorer nor Opera 9+</p>
<h4>3. Show me the click</h4>
<p>If it&#8217;s a link, let the link show some reaction.</p>
<p><img src="http://farm4.static.flickr.com/3633/3510415051_973786141f_o.png" alt="Visual Navigation Feedback" /></p>
<p>Use <code>a:active</code> to apply a small <strong>button-style</strong> effekt to your links. As a result to the code shown below, your link will &#8220;jump&#8221; 1px below its current position.</p>
<p><code>a:active { position: relative; top: 1px; }</code></p>
<h4>4. Seamless transition for links <span class="amp">&amp;</span> visible states</h4>
<p>If image 4 + 5 looks the same to you &mdash; well, that&#8217;s by intention.</p>
<p><img src="http://farm4.static.flickr.com/3554/3511223846_21152f4569_o.png" alt="Visual Navigation Feedback" /><br />
<small>The 1<sup>st</sup> page, right <strong>after you clicked</strong> the link, <strong>but before the 2<sup>nd</sup> page loads</strong>.</small></p>
<p><img src="http://farm4.static.flickr.com/3551/3510415163_5e3b2d9e35_o.png" alt="Visual Navigation Feedback" /><br />
<small>The 2<sup>nd</sup> page <strong>after</strong> the click.</small></p>
<p>I use the same color for <strong>a:focus</strong> and <strong>a.current</strong> (whereas <strong>.current</strong> is the class applied to the current page link on the 2<sup>nd</sup> page.</p>
<p><code>a:focus, a.current { color: #111; }</code></p>
<p>I also used it to create a <strong>seamless transition</strong> between the 1<sup>st</sup> and the 2<sup>nd</sup> page. Note, it&#8217;s only useful if you know, that the now current link on the 2<sup>nd</sup> page is at the same position like the a:focus on the 1<sup>st</sup> page, e.g. the navigation above. Also note, if it&#8217;s not obvious that the new page loaded, because of a very big header using the browsers complete viewport, this effect can be confusing. It can also be confusing if your page loads very fast or very slow.</p>
<h4>5. The complete transition effect</h4>
<p><img src="http://farm4.static.flickr.com/3316/3511177506_c776543ba7_o.png" alt="Visual Navigation Feedback" /></p>
<p>If you haven&#8217;t seen a lot of changes in the images above, open my website with either Firefox 3.5, Safari 4, Chrome 2 or Opera 9+ and check the top navigation above.</p>
<p>Thanks to <a href="http://korsti.de/blog/2009-04-28/physischer-knopf-klick-effekt-mit-css/">Korsti</a> and <a href="http://webzeugkoffer.de/">Björn</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://cordobo.com/1119-provide-visual-feedback-css/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

