<?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>Design Shack &#187; style</title>
	<atom:link href="http://designshack.net/tag/style/feed" rel="self" type="application/rss+xml" />
	<link>http://designshack.net</link>
	<description>Inspiration, CSS Gallery &#38; Community News</description>
	<lastBuildDate>Thu, 09 Feb 2012 06:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>10 CSS Table Examples</title>
		<link>http://designshack.net/articles/10-css-table-examples/</link>
		<comments>http://designshack.net/articles/10-css-table-examples/#comments</comments>
		<pubDate>Thu, 30 Aug 2007 19:55:44 +0000</pubDate>
		<dc:creator>David Appleyard</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Layouts]]></category>
		<category><![CDATA[style]]></category>
		<category><![CDATA[tables]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[webdesign]]></category>

		<guid isPermaLink="false">http://localhost:8888/?p=397</guid>
		<description><![CDATA[Today we&#8217;re going to take a look at a selection of beautiful tables styled using CSS. These are sourced from a variety of different sites. If you&#8217;re interested in learning how to do this yourself, be sure to take a look at a few of our CSS tutorials! 1. A CSS Styled Table Further to [...]]]></description>
			<content:encoded><![CDATA[<p>Today we&#8217;re going to take a look at a selection of beautiful tables styled using CSS. These are sourced from a variety of different sites. If you&#8217;re interested in learning how to do this yourself, be sure to take a look at a few of our <a href="http://designshack.net/category/articles/css/">CSS tutorials</a>!</p>
<p><span id="more-397"></span></p>
<h2>1. <a href="http://veerle.duoh.com/blog/comments/a_css_styled_table/">A CSS Styled Table</a></h2>
<p><img src="http://designshack.net/wp-content/uploads/csstable1.png" alt="A CSS Styled Table" class="tutorialimage" width="510" height="128" /></p>
<p>Further to my article about the creation of a CSS calendar the thought crossed my mind to show you an example on how you can style a table using CSS. The data of tables can be boring so all the more reason that we need to attract attention to it and make it as pleasant to read as possible. Presentation and design with some basic accessibility rules in mind is the way to go.</p>
<h2>2. <a href="http://veerle.duoh.com/blog/comments/a_css_styled_table_version_2/">A CSS Styled Table Part 2</a></h2>
<p><img src="http://designshack.net/wp-content/uploads/table2.jpg" alt="A CSS Styled Table 2" title="table2" width="510" height="324" class="tutorialimage" /></p>
<p>This article is about the proper usage of tables, for tabular data. How you can implement them with accessibility in mind and how to make them appealing for the eye using CSS. </p>
<h2>3. <a href="http://www.askthecssguy.com/2007/08/creating_a_table_with_dynamica.html">Creating a Dynamic CSS &#038; AJAX Table</a></h2>
<p><img src="http://designshack.net/wp-content/uploads/tabledynamic.jpg" alt="Dynamic AJAX CSS Table" width="510" height="197" class="tutorialimage" /></p>
<p>I like Crazy Egg&#8217;s pricing table on their Pricing &#038; Signup page. When you click on &#8220;Sign Up&#8221; for an option, that plan&#8217;s column highlights, the other plans vanish, and a signup form takes their place. There is a number of impressive things happening within this small area. I wanted to try and recreate the behavior step by step, and share the power of combining CSS, JavaScript, and images in clever ways.</p>
<h2>4. <a href="http://24ways.org/2005/tables-with-style">Tables With Style</a></h2>
<p><img src="http://designshack.net/wp-content/uploads/tablered.jpg" alt="Tables With Style" width="510" height="221" class="tutorialimage" /></p>
<p>It might not seem like it but styling tabular data can be a lot of fun. From a semantic point of view, there are plenty of elements to tie some style into. You have cells, rows, row groups and, of course, the table element itself. Adding CSS to a paragraph just isn’t as exciting.</p>
<h2>5. <a href="http://www.lukew.com/ff/entry.asp?328">Redesigning a Simple Table</a></h2>
<p><img src="http://designshack.net/wp-content/uploads/simpletable3.gif" alt="Simple CSS Table" width="510" height="249" class="tutorialimage" /></p>
<p>A series of excellent examples, showcasing how to simplify a basic data table by eliminating unnecessary interface elements.</p>
<h2>6. <a href="http://icant.co.uk/csstablegallery/">CSS Table Gallery</a></h2>
<p>The CSS Table Gallery is a showcase of how CSS and data tables can work together to create usable and pretty results. It&#8217;s a great way to see a bunch of interesting examples.</p>
<h2>7. <a href="http://robertdenton.org/reference/css-tables-tutorial.html">Various Table Techniques</a></h2>
<p><img src="http://designshack.net/wp-content/uploads/styletables.jpg" alt="Various Table Techniques" width="510" height="99" class="tutorialimage" /></p>
<p>Tables styled with CSS rules are much more efficient, if done well, than the old method of using font tags, a lot of color tags, and more&#8230; These examples are forward thinking, and also degrade well to older browsers.</p>
<h2>8. <a href="http://moronicbajebus.com/wordpress/wp-content/cssplay/reformat-table/index.html">Firefox Theme Table Example</a></h2>
<p><img src="http://designshack.net/wp-content/uploads/reformat.jpg" alt="Reformat the Table" title="reformat" width="510" height="195" class="tutorialimage" /></p>
<p>I banned the use of tables in my works when I first switched to CSS based layouts. But I was still missing the point of tables, tables are a way to markup tabular data. Once I got that point in my head, I started to think of things that really were tabular data such as the next example of Mozilla Firebird themes. Each row is a record of a theme and the columns are the fields for each theme.</p>
<h2>9. <a href="http://www.alistapart.com/articles/tableruler/">The Table Ruler</a></h2>
<p>With a bit of JavaScript / DOM sorcery, we can provide our visitors with the same functionality for long data tables in HTML, by applying rollover states to the rows. This could be implemented tediously by hand, of course, but it would be silly to do so. Instead, we will use the DOM to find the rows to highlight on mouseover.</p>
<p><strong><em>Like the article? Be sure to subscribe to our <a href="feed://feeds.feedburner.com/designshack">RSS feed</a> and follow us on <a href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/10-css-table-examples/feed/</wfw:commentRss>
		<slash:comments>82</slash:comments>
		</item>
		<item>
		<title>Introduction to CSS</title>
		<link>http://designshack.net/articles/introduction-to-css/</link>
		<comments>http://designshack.net/articles/introduction-to-css/#comments</comments>
		<pubDate>Tue, 05 Jun 2007 13:23:07 +0000</pubDate>
		<dc:creator>David Appleyard</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[basic]]></category>
		<category><![CDATA[cascading]]></category>
		<category><![CDATA[introduction]]></category>
		<category><![CDATA[sheets]]></category>
		<category><![CDATA[style]]></category>

		<guid isPermaLink="false">http://localhost:8888/?p=457</guid>
		<description><![CDATA[For many people, Cascading Style Sheets (CSS) is a fairly alien topic. This tutorial helps to provide a comprehensive overview of CSS, allowing you to get started using it in your website. What is CSS? Where HTML is the language you use for designing the structure of a web page and adding the content, CSS [...]]]></description>
			<content:encoded><![CDATA[<p>For many people, Cascading Style Sheets (CSS) is a fairly alien topic. This tutorial helps to provide a comprehensive overview of CSS, allowing you to get started using it in your website.</p>
<h2>What is CSS?</h2>
<p>Where HTML is the language you use for designing the structure of a web page and adding the content, CSS is the language for adding styles, colours and layout options to the content you have written in HTML.</p>
<p>It allows you to define and create styles, which can either be linked to pre-existing tags such as <code><a></code> or <code><br />
<h1></code>, or completely new styles which you would reference by placing <code>
<div style="yourstylename"></div>
<p></code> around the content.</p>
<h2>How to include a style sheet</h2>
<p>The general practice for including a CSS file in your webpage is to place the following code in the <code><head></head></code> area of your page:</p>
<pre>
<link rel="stylesheet" type="text/css" href="style.css" /></pre>
<p>The pathname (style.css) would need changing to the name and location of your CSS file.</p>
<h2>The basic website</h2>
<p>Here is the code of a simple website, ready to be styled with CSS. If you follow through the example and explanation, it should really help you when you come to create your own CSS styled web page.</p>
<pre>
<html>
   <head>
<link rel="stylesheet" type="text/css" href="style.css" />

   </head>
   <body>
<h1>Design Shack</h1>

Welcome to our website showcasing CSS and XHTML designs
<div class="box">
         This content will be in a CSS styled box
      </div>

   </body>
</html>
</pre>
<p>At the moment, this website will look <a href="/tutorialexamples/introductiontocss/nostyle.html" target="new window">something like this</a>. Very basic, and not too pretty. Let&#8217;s go ahead and create a CSS file to link to this page, defining some styles.</p>
<h2>The basic style sheet</h2>
<pre>body {
font-family: Verdana, Arial;
font-size: 11px;
color:#000;
background: #FFF;
}
h1 {
font-family: Arial, Verdana, Serif;
color: #99723b;
text-size: 18px;
}
.box {
padding: 10px;
border: 5px solid green;
width: 300px;
background: #f0f0f0;
}</pre>
<p>The website now <a href="/tutorialexamples/introductiontocss/style.html" target="new window">looks much better</a>, with more colour, layout ideas and more attractive fonts.</p>
<p>Most of the code used above in the CSS example is very self explanatory. The body section applies to everything within the <code><body></code> HTML tag, h1 to everything inside a <code><br />
<h1></code> tag, and .box to anything within the <code>
<div class="box"></div>
<p></code> tags. The dot before box denotes this as a custom style, not a standard one such as body or h1.</p>
<h2>Why is CSS important?</h2>
<p>Most of the effects shown above can be achieved by using <code><font></code> tags in your design, or tables. The great thing about CSS is that it separates design from layout, and keeps your HTML code easy to read and understand. Pages load quicker, search engines have an easier time indexing your site and everyone benefits.</p>
<p>It also reduces the repetition of using lots of font tags, and if you wanted to change the look of all the headings on your website, you need only alter one CSS file rather than every single page.</p>
<h2>Where to go from here</h2>
<p>Start experimenting! Set up your own page in a similar way to above, try your own styles and see just how easy it is to achieve stunning visual effects with CSS.</p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/introduction-to-css/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>CSS Style Switcher</title>
		<link>http://designshack.net/articles/css-style-switcher/</link>
		<comments>http://designshack.net/articles/css-style-switcher/#comments</comments>
		<pubDate>Mon, 21 May 2007 13:36:07 +0000</pubDate>
		<dc:creator>David Appleyard</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[colour]]></category>
		<category><![CDATA[scheme]]></category>
		<category><![CDATA[style]]></category>
		<category><![CDATA[switcher]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://localhost:8888/?p=485</guid>
		<description><![CDATA[Placing multiple colour or font schemes on your website blog is often an excellent addition, and it can help to customise your look and feel. It&#8217;s easy to add multiple stylesheets to your blog, and ensure that the user&#8217;s selection is stored on their computer so the style remains the same on each page. 1. [...]]]></description>
			<content:encoded><![CDATA[<p>Placing multiple colour or font schemes on your website blog is often an excellent addition, and it can help to customise your look and feel. It&#8217;s easy to add multiple stylesheets to your blog, and ensure that the user&#8217;s selection is stored on their computer so the style remains the same on each page.</p>
<h2>1. Download the styleswitcher javascript file</h2>
<p>You need to download the following file, and make sure that it is included in all the pages you&#8217;d like to run the style switcher.</p>
<p><a href="/postfiles/styleswitcher.js">Download The File</a></p>
<h2>2. Link to the javascript file in your <code><head></code> tag</strong></h2>
<p>Go to the area in your index.php source code, just before the <code></head></code> tag. Enter the following line of text, to ensure that the javascript file is included correctly:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;styleswitcher.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></td></tr></table></div>

<h2>3. Create the various stylesheets</h2>
<p>Make a copy of your main style sheet, and alter the colours and layout to create the new colour scheme for your website. Rename the new style sheet along the lines of &#8220;style-orange.css&#8221;. Do this as many times as required (you can always add more later).</p>
<h2>4. Link to the stylesheets in your header</h2>
<p>For the main, default stylesheet, enter the following just after the line we added above including the javascript file. This ensures that this is the stylesheet that loads when the page is opened for the first time.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;style.css&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;default&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></td></tr></table></div>

<p>For all the other stylesheets you have created, enter a line such as the following, changing the name of the colour for each style sheet you have added. Repeat it for all your additional styles.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;alternate stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;style-orange.css&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;orange&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></td></tr></table></div>

<h2>5. Place CSS switcher links in your page</h2>
<p>For each stylesheet you have created, just enter a link similar to the following. This will cause the selected stylesheet for the page to change to the one clicked on in the link. The <code>setActiveStyleSheet(’orange’);</code> part needs to be altered to reflect the <code>title</code> of the alternate style sheets you specified before.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;/&quot;</span> <span style="color: #000066;">onclick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;setActiveStyleSheet(’orange’); return false;&quot;</span>&gt;</span>Orange<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span></pre></td></tr></table></div>

<p>It&#8217;s also a good idea to enter a link similar to the following, in case a visitor wants to switch back to the default stylesheet:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;/&quot;</span> <span style="color: #000066;">onclick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;setActiveStyleSheet(’default’); return false;&quot;</span>&gt;</span>Default<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span></pre></td></tr></table></div>

<p>So there you have it &#8211; an easy and straight forward way to add additional style sheets to your website, giving your visitors a choice as to which colour or layout they see. This method can also be used for adding a high contrast accessible style sheet, which is something recommended for any website.</p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/css-style-switcher/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Object Caching 318/368 objects using disk: basic

Served from: designshack.net @ 2012-02-09 16:17:32 -->
