<?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>WordPress Freelancer &#187; CSS</title>
	<atom:link href="http://wplancer.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://wplancer.com</link>
	<description>WordPress Freelance Designer &#38; Developer</description>
	<lastBuildDate>Tue, 13 Dec 2011 20:27:49 +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>Accessible CSS</title>
		<link>http://wplancer.com/accessible-css/</link>
		<comments>http://wplancer.com/accessible-css/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 12:18:30 +0000</pubDate>
		<dc:creator>BANAGO</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.wplancer.com/?p=654</guid>
		<description><![CDATA[When I needed to hack a WordPress theme and I got my hands dirty with CSS code, sometimes I came across with in-line written CSS code i.e. every CSS selector occupied only one row. I found this practice very ugly and not scannable. I was used to CSS written in the classic way where every [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin: 15px 10px 0 0;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwplancer.com%2Faccessible-css%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwplancer.com%2Faccessible-css%2F&amp;source=banago&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="size-full wp-image-649 alignright" title="wordpress-themes-css" src="http://www.wplancer.com/wp-content/wordpress-themes-css.png" alt="wordpress-themes-css" width="250" height="250" /> When I needed to hack a WordPress theme and I got my hands dirty with CSS code, sometimes I came across with in-line written CSS code i.e. every CSS selector occupied only one row. I found this practice very ugly and not scannable. I was used to CSS written in the classic way where every value is written in a new line. So, I would often break the single lines into multiple ones to distinguish them better. But this did not last forever. What happened?</p>
<p>Not very far in the past, I came across a article about <a title="Single Line CSS" href="http://orderedlist.com/articles/single-line-css" target="_blank">single line CSS</a>, where <a title="Steve Smith" href="http://orderedlist.com/about/" target="_blank">Steve Smith</a>, the designer at <a title="OrderedList.com" href="http://orderedlist.com/" target="_blank">OrderedList.Com</a> had written of the same topic. He had gone thought the same dilemma I went and his conclusion is no different from mine. He says:</p>
<blockquote><p>But imagine now that you have over 200 selectors, each with a laundry-list of attributes. That&#8217;s quite a mess to search through. My issue with CSS files like these is when they get large, it becomes very difficult to scan the document for a particular selector. They&#8217;re all separated by loads of attribute and value pairs. So what if we took out that separation, and put each selector, <em>and</em> it’s attributes and values all on the same line?</p></blockquote>
<p>Let&#8217;s look at a live example taken from a site I have been developing lately. This is the way the code would look like if it was coded classically.</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
</pre>
<pre><span class="css">h1{
<span class="css-property">float<span class="css-selector">:</span><span class="css-value"> left</span></span>;
<span class="css-property">width<span class="css-selector">:</span><span class="css-value"> 120px</span></span>;
<span class="css-property">height<span class="css-selector">:</span><span class="css-value"> 40px</span></span>;
<span class="css-property">margin-top<span class="css-selector">:</span><span class="css-value"> 35px</span></span>;
}
h1 span{
<span class="css-property">display<span class="css-selector">:</span><span class="css-value"> none</span></span>;
}
h2 {
<span class="css-property">padding<span class="css-selector">:</span><span class="css-value"> 0 0 15px 0</span></span>;
<span class="css-property">font-family<span class="css-selector">:</span><span class="css-value">Arial, Helvetica, sans-serif</span></span>;
<span class="css-property">font-size<span class="css-selector">:</span><span class="css-value">18px</span></span>;
<span class="css-property">line-height<span class="css-selector">:</span><span class="css-value"> 20px</span></span>;
<span class="css-property">color<span class="css-selector">:</span><span class="css-value"> #159089</span></span>;
<span class="css-property">font-weight<span class="css-selector">:</span><span class="css-value">200</span></span>;}
h2 a {
<span class="css-property">color<span class="css-selector">:</span><span class="css-value"> #159089
</span></span>}
h3 {
<span class="css-property">padding<span class="css-selector">:</span><span class="css-value"> 0 0 15px 0</span></span>;
<span class="css-property">font-family<span class="css-selector">:</span><span class="css-value">Arial, Helvetica, sans-serif</span></span>;
<span class="css-property">font-size<span class="css-selector">:</span><span class="css-value">16px</span></span>;
<span class="css-property">line-height<span class="css-selector">:</span><span class="css-value"> 18px</span></span>;
<span class="css-property">color<span class="css-selector">:</span><span class="css-value"> #159089</span></span>;
<span class="css-property">font-weight<span class="css-selector">:</span><span class="css-value">200</span></span>;
}
h4 {
<span class="css-property">font-family<span class="css-selector">:</span><span class="css-value"> Geneva, Arial, Helvetica, sans-serif</span></span>;
<span class="css-property">font-size<span class="css-selector">:</span><span class="css-value">22px</span></span>;
<span class="css-property">line-height<span class="css-selector">:</span><span class="css-value"> 24px</span></span>;
<span class="css-property">color<span class="css-selector">:</span><span class="css-value"> #d21d1d</span></span>;
<span class="css-property">font-weight<span class="css-selector">:</span><span class="css-value">500</span></span>;
<span class="css-property">text-align<span class="css-selector">:</span><span class="css-value">left</span></span>;
}
h5 {
<span class="css-property">padding<span class="css-selector">:</span><span class="css-value"> 10px 0 0 0</span></span>;
<span class="css-property">font-family<span class="css-selector">:</span><span class="css-value"> Geneva, Arial, Helvetica, sans-serif</span></span>;
<span class="css-property">font-size<span class="css-selector">:</span><span class="css-value">16px</span></span>;
<span class="css-property">line-height<span class="css-selector">:</span><span class="css-value"> 19px</span></span>;
<span class="css-property">color<span class="css-selector">:</span><span class="css-value"> #4b4141</span></span>;
<span class="css-property">font-weight<span class="css-selector">:</span><span class="css-value">500</span></span>;
<span class="css-property">text-align<span class="css-selector">:</span><span class="css-value">left</span></span>;
}</span></pre>
</div>
<p>And this is actual code I have coded of the site using the single line method.</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
2
3
4
5
6
7
8
9
10
11
12
13
</pre>
<pre><span class="css">h1{ <span class="css-property">float<span class="css-selector">:</span><span class="css-value"> left</span></span>; <span class="css-property">width<span class="css-selector">:</span><span class="css-value"> 120px</span></span>; <span class="css-property">height<span class="css-selector">:</span><span class="css-value"> 40px</span></span>; <span class="css-property">margin-top<span class="css-selector">:</span><span class="css-value"> 35px</span></span>;}
h1 span{ <span class="css-property">display<span class="css-selector">:</span><span class="css-value"> none</span></span>; }
h2 { <span class="css-property">padding<span class="css-selector">:</span><span class="css-value"> 0 0 15px 0</span></span>; <span class="css-property">font-family<span class="css-selector">:</span><span class="css-value">Arial, Helvetica, sans-serif</span></span>; <span class="css-property">font-size<span class="css-selector">:</span><span class="css-value">18px</span></span>; <span class="css-property">line-height<span class="css-selector">:</span><span class="css-value"> 20px</span></span>; <span class="css-property">color<span class="css-selector">:</span><span class="css-value"> #159089</span></span>; <span class="css-property">font-weight<span class="css-selector">:</span><span class="css-value">200</span></span>;}
h2 a { <span class="css-property">color<span class="css-selector">:</span><span class="css-value"> #159089 </span></span>}
h3 { <span class="css-property">padding<span class="css-selector">:</span><span class="css-value"> 0 0 15px 0</span></span>; <span class="css-property">font-family<span class="css-selector">:</span><span class="css-value">Arial, Helvetica, sans-serif</span></span>; <span class="css-property">font-size<span class="css-selector">:</span><span class="css-value">16px</span></span>; <span class="css-property">line-height<span class="css-selector">:</span><span class="css-value"> 18px</span></span>; <span class="css-property">color<span class="css-selector">:</span><span class="css-value"> #159089</span></span>; <span class="css-property">font-weight<span class="css-selector">:</span><span class="css-value">200</span></span>;}
h4 { <span class="css-property">font-family<span class="css-selector">:</span><span class="css-value"> Geneva, Arial, Helvetica, sans-serif</span></span>; <span class="css-property">font-size<span class="css-selector">:</span><span class="css-value">22px</span></span>; <span class="css-property">line-height<span class="css-selector">:</span><span class="css-value"> 24px</span></span>; <span class="css-property">color<span class="css-selector">:</span><span class="css-value"> #d21d1d</span></span>; <span class="css-property">font-weight<span class="css-selector">:</span><span class="css-value">500</span></span>; <span class="css-property">text-align<span class="css-selector">:</span><span class="css-value">left</span></span>;}
h5 { <span class="css-property">padding<span class="css-selector">:</span><span class="css-value"> 10px 0 0 0</span></span>; <span class="css-property">font-family<span class="css-selector">:</span><span class="css-value"> Geneva, Arial, Helvetica, sans-serif</span></span>; <span class="css-property">font-size<span class="css-selector">:</span><span class="css-value">16px</span></span>; <span class="css-property">line-height<span class="css-selector">:</span><span class="css-value"> 19px</span></span>; <span class="css-property">color<span class="css-selector">:</span><span class="css-value">#4b4141</span></span>; <span class="css-property">font-weight<span class="css-selector">:</span><span class="css-value">500</span></span>; <span class="css-property">text-align<span class="css-selector">:</span><span class="css-value">left</span></span>;}</span></pre>
</div>
<p>Note the length of the first sample and keep in mind that this is only less than 5% of all the CSS code I wrote for that site. Can you imagine how long the file would be if it weren&#8217;t in a single line and how difficult it would be to look for a certain selector to edit? You would spend more time browsing up and down thought the code rather than actually writing or editing it. That is why I chose to write all my CSS code in single line selectors method, so that I can speed up my work and spend less time looking for selectors in a super-long CSS file.</p>
<p>So, why not give it a try yourself? I think it is worth trying and I strongly hope you will get to love it as I do now. What do you think?</p>
]]></content:encoded>
			<wfw:commentRss>http://wplancer.com/accessible-css/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Pack your WordPress theme with the necessary CSS</title>
		<link>http://wplancer.com/pack-your-wordpress-theme-with-the-necessary-css/</link>
		<comments>http://wplancer.com/pack-your-wordpress-theme-with-the-necessary-css/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 11:11:00 +0000</pubDate>
		<dc:creator>BANAGO</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.wplancer.com/?p=646</guid>
		<description><![CDATA[WordPress themes are being a great online resource for everybody to use, modify and share. This applies to GPL themes only though. However, in order to offer our online neighbors good themes that they will be happy using, theme developers, including me, should take care of some peculiar aspects in themes such as the use [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin: 15px 10px 0 0;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwplancer.com%2Fpack-your-wordpress-theme-with-the-necessary-css%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwplancer.com%2Fpack-your-wordpress-theme-with-the-necessary-css%2F&amp;source=banago&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="size-full wp-image-649 alignright" title="wordpress-themes-css" src="http://www.wplancer.com/wp-content/wordpress-themes-css.png" alt="wordpress-themes-css" width="250" height="250" />WordPress themes are being a great online resource for everybody to use, modify and share. This applies to GPL themes only though. However, in order to offer our online neighbors good themes that they will be happy using, theme developers, including me, should take care of some peculiar aspects in themes such as the use of CSS code. Along with WordPress theme evolution, some default CSS code needs to be included in very theme so that certain in-built features work well. This is mostly the case of images, but not only.</p>
<p>In WordPress 2.5 several classes for aligning images and block elements like DIV, P, TABLE etc. were introduced.Every theme should have these CSS classes &#8211; you can alter the style if need &#8211; in its <em>style.css</em>. The same classes are used to align images that have a caption, introduced in WordPress 2.6. Three additional CSS classes are needed for the captions, together the alignment and caption classes are:</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
</pre>
<pre><span class="css">.aligncenter, div.aligncenter {
<span class="css-property">display<span class="css-selector">:</span><span class="css-value"> block</span></span>;
<span class="css-property">margin-left<span class="css-selector">:</span><span class="css-value"> auto</span></span>;
<span class="css-property">margin-right<span class="css-selector">:</span><span class="css-value"> auto</span></span>;
}
.align<span class="css-property">left {
float<span class="css-selector">:</span><span class="css-value"> left</span></span>;
}
.align<span class="css-property">right {
float<span class="css-selector">:</span><span class="css-value"> right</span></span>;
}
.wp-caption {
<span class="css-property">border<span class="css-selector">:</span><span class="css-value"> 1px solid #ddd</span></span>;
<span class="css-property">text-align<span class="css-selector">:</span><span class="css-value"> center</span></span>;
<span class="css-property">background-color<span class="css-selector">:</span><span class="css-value"> #f3f3f3</span></span>;
<span class="css-property">padding-top<span class="css-selector">:</span><span class="css-value"> 4px</span></span>;
<span class="css-property">margin<span class="css-selector">:</span><span class="css-value"> 10px</span></span>;
<span class="css-comment">/* optional rounded corners for browsers that support it */</span>
<span class="css-property">-moz-border-radius<span class="css-selector">:</span><span class="css-value"> 3px</span></span>;
-khtml-<span class="css-property">border-radius<span class="css-selector">:</span><span class="css-value"> 3px</span></span>;
<span class="css-property">-webkit-border-radius<span class="css-selector">:</span><span class="css-value"> 3px</span></span>;
<span class="css-property">border-radius<span class="css-selector">:</span><span class="css-value"> 3px</span></span>;
}
.wp-caption img {
<span class="css-property">margin<span class="css-selector">:</span><span class="css-value"> 0</span></span>;
<span class="css-property">padding<span class="css-selector">:</span><span class="css-value"> 0</span></span>;
<span class="css-property">border<span class="css-selector">:</span><span class="css-value"> 0 none</span></span>;
}
.wp-caption p.wp-caption-text {
<span class="css-property">font-size<span class="css-selector">:</span><span class="css-value"> 11px</span></span>;
<span class="css-property">line-height<span class="css-selector">:</span><span class="css-value"> 17px</span></span>;
<span class="css-property">padding<span class="css-selector">:</span><span class="css-value"> 0 4px 5px</span></span>;
<span class="css-property">margin<span class="css-selector">:</span><span class="css-value"> 0</span></span>;
}</span></pre>
</div>
<p>Additionally, there are a few more WordPress CSS classes that you may optionally wish to style because WordPress generates them by default. I make use of most of them in my themes and I suggest very body uses them in their themes. There they are:</p>
<div class="fvch-code">
<pre class="fvch-line-numbers">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre>
<pre><span class="css">.categories {...}
.cat-item {...}
.current-cat {...}
.current-cat-parent {...}
.<span class="css-property">pagenav {...</span>}
.<span class="css-property">page_item {...</span>}
.current_<span class="css-property">page_item {...</span>}
.current_<span class="css-property">page_parent {...</span>}
.widget {...}
.widget_text {...}
.blogroll {...}
.linkcat{...}</span></pre>
</div>
<p>Did you find this information helpful? Do you have anything else to add? Your opinion is very much appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://wplancer.com/pack-your-wordpress-theme-with-the-necessary-css/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>I&#8217;m Sad to See WordPress Themes Using Tables</title>
		<link>http://wplancer.com/im-sad-to-see-wordpress-themes-using-tables/</link>
		<comments>http://wplancer.com/im-sad-to-see-wordpress-themes-using-tables/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 16:23:54 +0000</pubDate>
		<dc:creator>BANAGO</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.xixblog.com/?p=7</guid>
		<description><![CDATA[When I decided to begin a new project of mine, Open Book Critic, for time reasons, I just browsed the WordPress Themes Directory, typed &#8216;book&#8217; in the search and some four or five themes appeared in the results. I chose one, NoteBook 1.0 theme. Well, my intention was that this would be a temporary theme, [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin: 15px 10px 0 0;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwplancer.com%2Fim-sad-to-see-wordpress-themes-using-tables%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwplancer.com%2Fim-sad-to-see-wordpress-themes-using-tables%2F&amp;source=banago&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>When I decided to begin a new project of mine, <a title="Open Book Critic" href="http://www.openbookcritic.com/" target="_self">Open Book Critic</a>, for time reasons, I just browsed the <a title="WordPress Themes" href="http://www.xixblog.com/wp-admin/themes.wordpress.net" target="_self">WordPress Themes Directory</a>, typed &#8216;book&#8217; in the search and some four or five themes appeared in the results. I chose one, <a title="NoteBook" href="http://themes.wordpress.net/columns/2-columns/253/notebook-10/" target="_self">NoteBook 1.0</a> theme. Well, my intention was that this would be a temporary theme, until I would find some time to design and code one myself. That is why I was not interested in  retouching the code. Well, this did not change until my fiancee had a look at <a title="Open Book Critic" href="http://www.openbookcritic.com/" target="_self">Open Book Critic</a> and decided to have that same template for the site of her new English teaching center &#8216;<a title="Smart Center" href="http://www.smartcenter-al.com" target="_blank">Smart Center</a>&#8216;. And here begins the sad story.</p>
<p>Expect that I had to give up from my original theme for Smart Center, I had to redesign the template in <a title="Inkscape" href="http://www.inkscape.org" target="_blank">Inkscpe</a> as it had to be my fiancée&#8217;s favorite color, pink. For this reason I had a look at the xhtml/css code to grasp the designing manner. Well, this was the most bitter part; I came across with a painful TABLE-TR-TD mosaic. This made me pessimistic.</p>
<p>To make the situation less terrible, I begun to rewrite the xhtml/css from the beginning, following another layout principle with the image layout. And you can have a look at it at <a title="Smart Center Albania" href="http://www.smartcenter-al.com" target="_blank">Smart Center</a> and another at <a title="Open Book Critic" href="http://www.openbookcritic.com" target="_blank">Open Book Critic</a> to see the difference in look and in code. The look is almost the same, but the code very very different.</p>
<p>So, if you are someone who uses table-based design user, try to keep up with web standards and new tech. Make a <a title="Designing Without Tables" href="http://www.google.com/search?q=designing+without+tables&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a" target="_blank">Google search</a> and don&#8217;t get back look back; tables belong to the past. And than none will dare to call you <a title="you're basically a terrible person if you build table-based layouts" href="http://ubuntuforums.org/showpost.php?p=4634588&amp;postcount=5" target="_blank">a terrible person</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://wplancer.com/im-sad-to-see-wordpress-themes-using-tables/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
	</channel>
</rss>

