<?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>Ruelicke.net &#187; CSS</title>
	<atom:link href="http://www.ruelicke.net/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ruelicke.net</link>
	<description>...when coding passion, gaming addiction, Internet surfing syndrome and the real life collide...</description>
	<lastBuildDate>Mon, 05 Apr 2010 17:11:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Useful Tools for validating HTML, CSS and Accessibility</title>
		<link>http://www.ruelicke.net/2007/09/15/useful-tools-for-validating-html-css-and-accessibility/</link>
		<comments>http://www.ruelicke.net/2007/09/15/useful-tools-for-validating-html-css-and-accessibility/#comments</comments>
		<pubDate>Sat, 15 Sep 2007 08:00:39 +0000</pubDate>
		<dc:creator>Marco</dc:creator>
				<category><![CDATA[General Tips]]></category>
		<category><![CDATA[Advice]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Webmaster]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://www.ruelicke.net/2007/09/useful-tools-for-validating-html-css-and-accessibility/</guid>
		<description><![CDATA[Who doesn&#8217;t know the situation when you release a website and within a short time you get complaints of users with browser X who say that xyz doesn&#8217;t work on the page. These days there are many browsers out there and of course you can test your page on them if you have the time. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/herbet/16237678/"><img src="http://www.ruelicke.net/wp-content/uploads/2007/09/accessibility.png" alt="Useful Tools for validating HTML, CSS and Accessibility" title="Useful Tools for validating HTML, CSS and Accessibility" class="alignleft" /></a><span class="c_letter">W</span>ho doesn&#8217;t know the situation when you release a website and within a short time you get complaints of users with browser X who say that xyz doesn&#8217;t work on the page.</p>
<p><span class="c_letter">T</span>hese days there are many browsers out there and of course you can test your page on them if you have the time. Even then there is the chance you missed one or two and then you are back at zero. Also, it is possible that a design doesn&#8217;t allow users with a disability to use the page.</p>
<p><strong>So what to do?</strong></p>
<p><span class="c_letter">F</span>irst of all it is a good advise to use valid HTML and CSS. Also make sure you don&#8217;t abuse JavaScript, Flash and Gifs. If you are reading this article, I assume I don&#8217;t have to tell you about these things&#8230;</p>
<p><strong>But how can you validate your HTML, CSS and Accessibility?</strong></p>
<p><span class="c_letter">W</span>ell, I will tell you which tools I&#8217;m using to validate my websites. These tools are not perfect, but if you use them properly you make sure that they cover each others weakness and leaving you with a valid website at the end. Also, there are some things you can&#8217;t validate by using a tool. You need to know the guidelines for <a href="http://www.w3.org/TR/xhtml1/">HTML</a>, <a href="http://www.w3.org/TR/REC-CSS2/">CSS</a> and <a href="http://www.w3.org/TR/WAI-WEBCONTENT/">Accessibility</a> (<a href="http://www.w3.org/TR/WAI-WEBCONTENT/">WCAG</a>)<span id="more-130"></span></p>
<p><img src="http://www.ruelicke.net/wp-content/themes/ruelicke/images/icon-html.png" alt="HTML Validation" title="HTML Validation" class="alignright" /><br />
<h3 style="margin-top:0;padding-top:0;">HTML Validation</h3>
<p><span class="c_letter">M</span>y major validator is the official <a href="http://validator.w3.org/">W3C validator</a>. It is always up-to-date to the latest spec&#8217;s and allows you to either test a page directly if said page is online or you upload/copy the page to the validator. You can reach the validator from any location as long as you are online, which can be very handy.</p>
<p><span class="c_letter">A</span>dditionally I&#8217;m using my Firefox for testing my websites. I have two very powerful extensions installed:</p>
<ul>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/249">HTML Validator</a> by Marc Gueury</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/60">Web Developer</a> by Chris Pederick</li>
</ul>
<p><strong><span class="c_letter">T</span>he HTML Validator by Marc Gueury</strong> allows you to validate the page inside the browser without the need to visit a validator page like the W3C validator. The extension has 3 algorithm to validate the page.</p>
<ul>
<li>The &#8220;<em>HTML Tidy</em>&#8221; algorithm is based on the <a href="http://www.w3.org/People/Raggett/tidy/">HTML Tidy from W3C</a></li>
<li>The &#8220;<em>SGML Parser</em>&#8221; is based on the <a href="http://www.w3.org/TR/html4/sgml/intro.html">SGML reference information for HTML</a></li>
<li>The &#8220;Serial&#8221; uses both validator algorithms one after the other.</li>
</ul>
<p><span class="c_letter">T</span>he first algorithm is recommended for all while the other two are recommended for professionals. I myself prefer the Serial algorithm, but I believe you need to test which one works best for you.</p>
<p><strong><span class="c_letter">T</span>he Web Developer tool by Chris Pederick</strong> does not have a built in validator, but it allows you to easily check a page with the W3C validator. Also it allows you to easily disable scripting or it outlines your HTML elements. It has many more options and is also useful for validating your CSS or W3C.</p>
<p><img src="http://www.ruelicke.net/wp-content/themes/ruelicke/images/icon-css.png" alt="CSS Validation" title="CSS Validation" class="alignright" /><br />
<h3 style="margin-top:0;padding-top:0;">CSS Validation</h3>
<p><span class="c_letter">I</span>&#8216;m using the official <a href="http://jigsaw.w3.org/css-validator/">W3C validator</a> for validating my CSS code. It is always up-to-date to the latest spec&#8217;s and allows you to either test a page directly if said page is online or you upload/copy the page to the validator. You can reach the validator from any location as long as you are online, which can be very handy.</p>
<p><span class="c_letter">A</span>dditionally I&#8217;m using the <a href="https://addons.mozilla.org/en-US/firefox/addon/60">Web Developer toolbar</a>. It allows you to disable CSS if you want to. You can edit the CSS code and see the result without having to edit the original file and upload it again. You can even resize your browser window to test your layout for different resolutions.</p>
<h3 style="margin-top:0;padding-top:0;">Accessibility Validation</h3>
<p><span class="c_letter">W</span>hen writing a website I always rely on the <a href="https://addons.mozilla.org/en-US/firefox/addon/249">HTML Validator</a> extension. It tells you almost everything you need to know.</p>
<p><span class="c_letter">T</span>here are also online validators available, one of them you can easily access with the Web Developer toolbar. If it is not enough, you can always Google for other <a href="http://www.google.com/search?hl=en&#038;q=accessibility+validator&#038;btnG=Google+Search">accessibility validators</a>.</p>
<p><strong>Wrap Up</strong></p>
<p><span class="c_letter">N</span>ow you know which tools I&#8217;m using. I hope these tools will also help you. Or are you using them already? Do you know other tools you can recommend?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ruelicke.net/2007/09/15/useful-tools-for-validating-html-css-and-accessibility/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>CSS &#8211; Make your list different</title>
		<link>http://www.ruelicke.net/2007/09/12/css-make-your-list-different/</link>
		<comments>http://www.ruelicke.net/2007/09/12/css-make-your-list-different/#comments</comments>
		<pubDate>Wed, 12 Sep 2007 19:49:22 +0000</pubDate>
		<dc:creator>Marco</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.ruelicke.net/2007/09/css-make-your-list-different/</guid>
		<description><![CDATA[If you have a look at my sidebar, you see that my menu options have little dots (or images) to the left. Thanks to CSS, Cascading Style Sheets, you have many options to style your list, ranging from no style to one of the many default styles. You are even able to use an image [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.ruelicke.net/wp-content/themes/ruelicke/images/icon-css.png" alt="CSS - Cascading Style Sheets" title="CSS - Cascading Style Sheets" class="alignleft" /><span class="c_letter">I</span>f you have a look at my sidebar, you see that my menu options have little dots (or images) to the left. Thanks to CSS, Cascading Style Sheets, you have many <a href="http://www.w3schools.com/css/css_reference.asp#list">options to style your list</a>, ranging from no style to one of the many default styles. You are even able to use an image of your choice!</p>
<p><strong><span class="c_letter">S</span>o how do you edit and style your list?</strong></p>
<p><span class="c_letter">O</span>f course you are able to use almost any of the available CSS properties, like <a href="http://www.w3schools.com/css/css_reference.asp#border">borders</a>, <a href="http://www.w3schools.com/css/css_reference.asp#background">background</a>, <a href="http://www.w3schools.com/css/css_reference.asp#font">font</a> and so on.</p>
<h3>A list without icons</h3>
<p><span class="c_letter">L</span>et&#8217;s assume you want to use the list to create a menu, but you don&#8217;t want to have the default list icons added by the browser, because it would break with the design. How do you remove the icons? With a tiny bit of CSS of course:<br />
<code><br />
ul, ol {<br />
list-style:none;<br />
}<br />
</code><br />
This code will remove any list style, leaving you a <a href="http://www.ruelicke.net/example/css/tutorial01.html#list-2">list without the list icons</a>. It works for both types of lists, order and unordered. If you prefer using in-line editing, just add a <code>style="list-style:none;"</code> to the &#8220;ul&#8221; or &#8220;ol&#8221; tag and you are set.<span id="more-127"></span></p>
<h3>A list with one of the default icons</h3>
<p><span class="c_letter">N</span>ow let&#8217;s have a look at how we can use one of the many default icons. Please keep in mind that some of those icons are show different in different browsers. I recommend testing them before you use them.</p>
<p><span class="c_letter">B</span>efore we can set an icon, we need to know which icons exist. I took the time and compiled you a list:</p>
<ul>
<li>disc</li>
<li>circle</li>
<li>square</li>
<li>decimal</li>
<li>decimal-leading-zero</li>
<li>lower-roman</li>
<li>upper-roman</li>
<li>lower-alpha</li>
<li>upper-alpha</li>
<li>lower-greek</li>
<li>lower-latin</li>
<li>upper-latin</li>
<li>hebrew</li>
<li>armenian</li>
<li>georgian</li>
<li>cjk-ideographic</li>
<li>hiragana</li>
<li>katakana</li>
<li>hiragana-iroha</li>
<li>katakana-iroha</li>
</ul>
<p><span class="c_letter">A</span>nd before you start yelling at me &#8220;How does those icons look like&#8221; just <a href="http://www.ruelicke.net/example/css/tutorial01.html#list-2">have a look at my example</a> and try them all.</p>
<p><span class="c_letter">T</span>o add one of the icons you can use this code:<br />
<code><br />
ul, ol {<br />
list-style-type:<em>liststyle</em>;<br />
}</code></p>
<p>Replace the <em>liststyle</em> with the name of the icon you want to use. Of course you can also use the in-line style <code>style="list-style-type:<em>liststyle</em>"</code>.</p>
<p><span style="c_letter;">E</span>asy so far, isn&#8217;t it?</p>
<h3>A list with an icon/image of your choice</h3>
<p><span class="c_letter">N</span>ow let&#8217;s go a step further. I believe you can imagine that the default icons limit you in your design efforts. Fortunately CSS enables you to use an own image by using the code:<br />
<code><br />
list-style-image:url(<em>path-to-image</em>);<br />
</code><br />
<span class="c_letter">R</span>eplace the <em>path-to-image</em> with the url to your image. For the image I use in <a href="http://www.ruelicke.net/example/css/tutorial01.html#list-3">my example</a> the path would be:<br />
<em>http://www.ruelicke.net/wp-content/themes/ruelicke/images/feed-icon.png</em></p>
<p><span class="c_letter">Y</span>ou can use any kind of image, but depending on it&#8217;s size you need to play with the padding and font size to make it fit with the list.</p>
<h3>Wrap up</h3>
<p><span class="c_letter">C</span>ongratulation, you are now able to adjust the list style icon to your needs. You no longer need to use <a href="http://www.ruelicke.net/example/css/tutorial01.html#list-1">the default</a> icon.</p>
<p><span class="c_letter">I</span>f you like it fancy, you could <a href="http://www.ruelicke.net/example/css/tutorial01.html#list-5">style the list as I did</a> although I would never use that design. Of course I would never use that one on a site, but I think it is always good to play around with the CSS to get an idea about how it works.</p>
<p><strong>Any questions left?</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ruelicke.net/2007/09/12/css-make-your-list-different/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>CSS &#8211; First letter of a paragraph larger than the others</title>
		<link>http://www.ruelicke.net/2007/09/06/css-first-letter-of-a-paragraph-larger-than-the-others/</link>
		<comments>http://www.ruelicke.net/2007/09/06/css-first-letter-of-a-paragraph-larger-than-the-others/#comments</comments>
		<pubDate>Thu, 06 Sep 2007 21:12:58 +0000</pubDate>
		<dc:creator>Marco</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.ruelicke.net/2007/09/css-first-letter-of-a-paragraph-larger-than-the-others/</guid>
		<description><![CDATA[Pro Blog Design had an article about formating blog posts for readability the other day. As we discussed further methods of styling your blog articles, we started talking about &#8220;the concept of making the first letter of a paragraph larger than the others&#8220;. I then decided to give this technique a try on my blog [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.ruelicke.net/wp-content/themes/ruelicke/images/icon-css.png" alt="CSS - Cascading Style Sheets" title="CSS - Cascading Style Sheets" class="alignleft" /><a href="http://www.problogdesign.com"><span class="c_letter">P</span>ro Blog Design</a> had an article about <a href="http://www.problogdesign.com/blog-usability/format-your-posts-for-readability/">formating blog posts for readability</a> the other day. As we discussed further methods of styling your blog articles, we started talking about &#8220;<cite>the concept of making the first letter of a paragraph larger than the others</cite>&#8220;.</p>
<p><span class="c_letter">I</span> then decided to give this technique a try on my blog and we continued talking about it, which helped me to tweak my CSS code to make this &#8220;magic&#8221; happen. The code for this &#8220;magic trick&#8221; was posted as comment, but I think it is better to put it into an extra tutorial article although it is nothing special if you know how to use Cascading Style Sheets.</p>
<p><span class="c_letter">T</span>here are <strong>two methods</strong> to achieve the goal, I will tell you how to do it and mention the advantages and disadvantages.<span id="more-119"></span></p>
<h3>First method</h3>
<p><code>div.entry p:first-letter {<br />
font-size:1.5em;<br />
font-weight:700;<br />
text-transform:capitalize;<br />
}</code></p>
<p><span class="c_letter">T</span>his one will auto-add the &#8220;first letter of a paragraph larger than the others&#8221; effect, which saves you a lot of time. Unfortunately you are not able to not use it in an article. <strong>The effect will be always created.</strong> If you only write articles and it works for your design and style of writing, great! <img src='http://www.ruelicke.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span class="c_letter">I</span>n my case I have a problem when I post a story like my <a href="http://www.ruelicke.net/2007/08/star-wars-soldiers-vs-jedi/">Soldiers vs. Jedi</a>. So I had to look for an alternate way.</p>
<h3>Second method</h3>
<p><code>div.entry p span.c_letter {<br />
font-size:1.5em;<br />
font-weight:700;<br />
text-transform:uppercase;<br />
}</code></p>
<p><span class="c_letter">H</span>ow do you enable the effect now?<br />
You just have to wrap a <code>&lt;span class=”c_letter”&gt;</code> around the letter you want to capitalize and you get that effect. This will only work if the span is inside a paragraph:</p>
<p>e.g.:<br />
<code style="text-align:left;">&lt;p&gt;&lt;span class="c_letter"&gt;T&lt;/span&gt;he first letter is huge[…]&lt;/p&gt;</code></p>
<p><span class="c_letter">T</span>his method allows you to decide if you want to have a capital letter or not. However, it requires you to spend some time on wrapping the code around the letter.</p>
<p><span class="c_letter">S</span>o you need to see which method works best for you.</p>
<p><em><strong>#1 Note:</strong> The first method will also edit your older blog posts, so if you don&#8217;t want to &#8220;auto-edit&#8221; them, you should use the second method.</em></p>
<p><em><strong>#2 Note:</strong> Maybe you noticed the <code>text-transform:uppercase;</code> piece in the second method. It means that even a non-capital character will be shown as capital character. I added in case you could use it for <span class="c_letter">highlighting</span> a word without actually writing it in capitals. You may remove it if you don&#8217;t want it</em> <img src='http://www.ruelicke.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span class="c_letter">I</span> hope this tutorial was helpful for you. If you have any questions or need help with this, feel free to leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ruelicke.net/2007/09/06/css-first-letter-of-a-paragraph-larger-than-the-others/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

