<?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>Konstruktors &#187; development</title>
	<atom:link href="http://konstruktors.com/blog/tag/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://konstruktors.com</link>
	<description>Web Design, WordPress and Performance Services</description>
	<lastBuildDate>Sat, 19 May 2012 16:41:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-beta4-20805</generator>
<atom:link rel="hub" href="http://konstruktors.superfeedr.com/"/><atom:link rel="hub" href="http://pubsubhubbub.appspot.com/"/>		<item>
		<title>CSS @Imports&#160;Suck</title>
		<link>http://konstruktors.com/blog/web-design/1159-css-imports-suck/</link>
		<comments>http://konstruktors.com/blog/web-design/1159-css-imports-suck/#comments</comments>
		<pubDate>Mon, 11 May 2009 23:21:27 +0000</pubDate>
		<dc:creator>Kaspars</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://konstruktors.com/blog/?p=1159</guid>
		<description><![CDATA[I have never used them, and here is why you shouldn&#8217;t use CSS @imports too. Via Monday By Noon.]]></description>
			<content:encoded><![CDATA[<p>I have never used them, and here is <a title="Why CSS @import is worse than simple meta links" href="http://www.stevesouders.com/blog/2009/04/09/dont-use-import/">why you shouldn&#8217;t use CSS @imports</a> too. Via <a href="http://mondaybynoon.com/">Monday By Noon</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://konstruktors.com/blog/web-design/1159-css-imports-suck/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse PHP Development Tools (PDT) Video&#160;Tutorials</title>
		<link>http://konstruktors.com/blog/web-design/193-eclipse-php-development-tools-pdt-video-tutorials/</link>
		<comments>http://konstruktors.com/blog/web-design/193-eclipse-php-development-tools-pdt-video-tutorials/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 14:50:37 +0000</pubDate>
		<dc:creator>Kaspars</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://konstruktors.com/blog/?p=193</guid>
		<description><![CDATA[The authors of PHPDeveloperBlog.com (currently unavailable) have put up two introductory screencasts on how to get started with Eclipse PDT: Part 1 and Part 2. (via pup.lv)]]></description>
			<content:encoded><![CDATA[<p><a title="View the Eclipse PDT tutorials" href="http://youtube.com/watch?v=VRFZpk-YHl4"><img class="size-medium wp-image-194 alignright" title="PHP Tutorial Screenshot" src="http://konstruktors.com/wp-content/uploads/2008/04/php-tutorial-screenshot.png" alt="PHP Tutorial Screenshot" width="60" height="45" /></a> The authors of PHPDeveloperBlog.com (currently unavailable) have put up two introductory screencasts on how to get started with <strong><a title="Get your copy of the free Eclipse PDT" href="http://www.zend.com/en/community/pdt">Eclipse <abbr title="PHP Development Tools">PDT</abbr></a></strong>: <a title="View Part 1: PHP Tutorial: Using Eclipse+PDT as a PHP IDE" href="http://youtube.com/watch?v=VRFZpk-YHl4">Part 1</a> and <a title="View Part 2: PHP Tutorial: Using Eclipse+PDT as a PHP IDE" href="http://youtube.com/watch?v=x8WnciHjXco">Part 2</a>. (via <a title="Read the source, in latvian." href="http://www.pup.lv/2008/04/03/kapec-zala-gaisma-eclipsepdt/">pup.lv</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://konstruktors.com/blog/web-design/193-eclipse-php-development-tools-pdt-video-tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Create Beautiful and Elegant HTML Lists Using&#160;CSS</title>
		<link>http://konstruktors.com/blog/web-design/125-how-to-create-beautiful-and-elegant-html-lists-using-css/</link>
		<comments>http://konstruktors.com/blog/web-design/125-how-to-create-beautiful-and-elegant-html-lists-using-css/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 22:40:01 +0000</pubDate>
		<dc:creator>Kaspars</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[development]]></category>

		<guid isPermaLink="false">http://konstruktors.com/blog/design-suggetions/125-how-to-create-beautiful-and-elegant-html-lists-using-css/</guid>
		<description><![CDATA[HTML list have become one of the most used HTML elements for marking-up various semantic content structures &#8212; navigation, comments and even image galleries. This article will explain and show you how to style lists inside blog posts, articles or other basic HTML documents. Before we start, it is necessary to understand the importance of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://konstruktors.com/wp-content/uploads/2008/02/anatomy-of-html-lists-unordered-ordered.png"><img class="aligncenter size-medium wp-image-129" title="Anatomy of HTML lists, unordered, ordered" src="http://konstruktors.com/wp-content/uploads/2008/02/anatomy-of-html-lists-unordered-ordered-500x290.png" alt="" width="500" height="290" /></a></p>
<p>HTML list have become one of the most used HTML elements for marking-up various semantic content structures &#8212; navigation, comments and even image galleries.</p>
<p>This article will explain and show you how to style lists inside blog posts, articles or other basic HTML documents.</p>
<p>Before we start, it is necessary to understand the importance of using specific HTML tags <code>&lt;ul&gt;</code> and <code>&lt;ol&gt;</code>, instead of simple numbering (like 1., 2. or •, ») for building lists. By applying content a semantic structure, we emphasize the relationships between different content elements. In case of lists we are able to imply that there is a <em>certain relationship</em> between all of the list members, which is possibly described by the paragraph introducing the list. It also helps screen reader users for whom the total number of items is announced before the rest of the list.<span id="more-125"></span></p>
<h3>Default list rendering in standards aware browsers and Internet Explorer</h3>
<p>Let&#8217;s look at the default rendering of ordered <code>&lt;ol&gt;</code> and unordered <code>&lt;ul&gt;</code> lists by Web standards aware browsers (with Gecko, Webkit or Opera rendering engine) and Internet Explorer (IE).</p>
<p><a href="http://konstruktors.com/wp-content/uploads/2008/02/list-rendering-standards-ie-thumb.png"><img class="aligncenter size-full wp-image-133" title="HTML list rendering. standards vs internet explorer" src="http://konstruktors.com/wp-content/uploads/2008/02/list-rendering-standards-ie-thumb.png" alt="" width="400" height="186" /></a></p>
<div class="image wide"></div>
<p>It turns out that IE applies default left side <strong>margin</strong> to the list container (<code>&lt;ul&gt;</code> and <code>&lt;ol&gt;</code>) while standards aware browsers apply left side <strong>padding</strong>. These differences in list rendering force us to set both padding and margin of <code>&lt;ul&gt;</code> to 0 and continue to work only with styling <code>&lt;li&gt;</code> tag.</p>
<p>Another thing we notice is that list bullets or numbering becomes invisible in IE with the left side margin set to 0.</p>
<h3>Getting the list rendering consistent among all browsers</h3>
<p>To solve the <em>invisible bullet</em> problem described above, its a good idea to use relative positioning of list containers <code>&lt;ul&gt;</code> and <code>&lt;ol&gt;</code>. By doing so, we will be able to create much more advanced list style later without repeating most of the CSS.</p>
<h4>CSS for simple lists</h4>
<pre lang="css">ul, ol {
   margin:auto -3em 1em 0;
   padding:0;
   position:relative;
   left:-3em;
   overflow:hidden;
}
li {
   margin-top:0.25em;
   margin-bottom:0.25em;
}
ul ul, ul ol,
ol ol, ol ul {
   margin-left:1em;
   padding-left:0;
}
ul li, ol li {
   margin-left:5em;
}
li li {
   margin-left:1em;
}</pre>
<h4>Internet Explorer specific CSS</h4>
<p>To fix IE&#8217;s ability to do the math correctly, we have to enable <a href="http://www.satzansatz.de/cssd/onhavinglayout.html">hasLayout</a> property for all of our <code>&lt;ul&gt;</code> and <code>&lt;ol&gt;</code> tags. This is done by using <a title="Read about conditional comments and how are they used for targeting different versions of IE" href="http://www.quirksmode.org/css/condcom.html">conditional comments</a>:</p>
<pre lang="html">ul, ol { height:0; overflow:visible; }
ul, ol { height:1%; }</pre>
<h5>Output</h5>
<p><img class="alignright" src="http://konstruktors.com/wp-content/uploads/2008/02/list-anatomy-simple-unordered.png" alt="Simple unordered list" width="200" height="170" /></p>
<p>List is now rendered equally in all browsers. For illustration purposes a yellow background is applied to the list container <code>&lt;ul&gt;</code>, gray border shows the dimensions of <code>&lt;ul&gt;</code>, while list items <code>&lt;li&gt;</code> have gray background.</p>
<h3><em>Flat</em> lists for more content per list item</h3>
<p>Sometimes you have multiple lines of content per list item and then it might be reasonable to align the lists with the rest of the content in order to sustain the vertical flow of it.</p>
<h4>CSS for <em>flat</em> lists</h4>
<pre lang="css">.flat li {
   margin-left:3em;
}
.flat li ul, .flat li ol {
   margin-left:1em;
   padding-left:0;
}
.flat li li {
   margin-left:0;
}</pre>
<p><img class="alignright" src="http://konstruktors.com/wp-content/uploads/2008/02/list-anatomy-flat-unordered.png" alt="Screenshot: flat HTML lists for more content" width="200" height="167" /></p>
<p>Notice the little amount of CSS, but more importantly that it is rendered equally among all of the browsers and we can still use the default bullet styles instead of images.</p>
<p>However, sometimes one might want to use custom style list bullets. This can be done using the <code>list-style-image</code> property in CSS.</p>
<h4>Lists with <em>custom style bullets</em></h4>
<p><img class="alignright" src="http://konstruktors.com/wp-content/uploads/2008/02/list-anatomy-unordered-custom-bullet-image.png" alt="Screenshot: HTML lists with custom bullet image" width="200" height="472" /></p>
<p><em>Note:</em> don&#8217;t forget to remove the line break after <code>list-style-image:</code> to get it working.</p>
<h4>CSS:</h4>
<pre lang="css">ul.bullet-a li {
   list-style-image:
    url('bullet-image-a.png');
}
ul.bullet-b li {
   list-style-image:
    url('bullet-image-b.png');
}</pre>
<p>Although the alignment of the list image is not pixel perfect among all of the browsers, it is more than satisfactory if the height of the bullet image doesn&#8217;t exceed 10 pixels. One might suggest to use background of <code>&lt;li&gt;</code> tag as a list bullet image, but this would brake the ability to combine multiple CSS identifiers per list, like <code>&lt;ul class="flat bullet-a"&gt;</code> because of inherited margin settings.</p>
<h3>All the small details</h3>
<p>Notice that the spacing between list items in the last example (rounded image bullets) is larger than the default one (arrow image bullets). This enhances readability and separates list items similarly to paragraphs. So here is the final set of CSS styles to suite most of the needs:</p>
<pre lang="css">.spaced {
    margin-bottom:0;
}
.spaced ul, .spaced ol {
    margin-top:1em;
}
.spaced li {
    margin-bottom:1em;
}</pre>
<pre lang="css">.indent li {
    padding-left:1em;
    text-indent:-1em;
}
.inside li {
    list-style-position:inside;
}
.clear li {
    list-style-type:none;
}</pre>
<p>You can see that one of the previous examples already utilizes the &#8220;spaced&#8221; styling, while &#8220;indent&#8221;, &#8220;inside&#8221; and &#8220;clear&#8221; might benefit from a few examples:</p>
<p style="text-align: center;"><img class="aligncenter" src="http://konstruktors.com/wp-content/uploads/2008/02/indent-flat-clear-inside-html-lists.png" alt="Screenshot: Flat and indented list, clear list, inside list" width="450" height="137" /></p>
<h3>All of CSS combined &amp; list style cheat-sheet</h3>
<ul class="flat">
<li><a href="http://konstruktors.com/wp-content/uploads/2008/02/index.html">View all of the list style examples</a> in your browser.</li>
<li>View the resulting CSS as <a title="CSS for beautiful HTML lists" href="http://konstruktors.com/wp-content/uploads/2008/02/konstruktors-lists.css">a seperate file</a> (bullet images: <a title="Sample bullet image a" href="http://konstruktors.com/wp-content/uploads/2008/02/bullet-image-a.png"><img class="inline" src="http://konstruktors.com/wp-content/uploads/2008/02/bullet-image-a.png" alt="Sample bullet image a" /></a> <a title="Sample bullet image b" href="http://konstruktors.com/wp-content/uploads/2008/02/bullet-image-b.png"><img class="inline" src="http://konstruktors.com/wp-content/uploads/2008/02/bullet-image-b.png" alt="Sample bullet image b" /></a>)</li>
<li><a title="HTML list style CSS cheat sheet" href="http://konstruktors.com/wp-content/uploads/2008/02/konstruktors-html-list-cheat-sheet.pdf"> Download a list style CSS classname cheat-sheet</a> (.pdf) which you can print and use as a reference when composing your articles, blog posts or other HTML documents.</li>
</ul>
<h3>Screenshot showing the use of various HTML list styles</h3>
<p style="text-align: center;"><a href="http://konstruktors.com/wp-content/uploads/2008/02/list-example-result.png"><img class="withborder aligncenter" src="http://konstruktors.com/wp-content/uploads/2008/02/list-example-result-thumb.png" alt="List output example" width="450" height="306" /></a></p>
<h4>Internet Explorer specific HTML and CSS</h4>
<pre lang="html">ul, ol { height:0; overflow:visible; }
ul, ol { height:1%; }</pre>
<h3>Few suggestions:</h3>
<ul class="flat">
<li>Bullet image height preferably should not exceed 10 pixels. Lower image height makes them look better in Internet Explorer. If you want bullet images to be transparent, save them as transparent GIF or 8-bit PNG files.</li>
<li>You might find it useful to apply this styling only to your post content, which can be easily done by prepeding the identifier of your post wrapper (like <code>.post</code> or <code>.article</code>) to all of the list styles. The end result would be something like <code>.post ul, .post ol {}</code>.</li>
</ul>
<h4>Related posts</h4><ol>
<li><a href='http://konstruktors.com/blog/web-design/755-minimize-wordpress-2-7-dashboard-header/' rel='bookmark' title='Squeeze the Header of the New WordPress 2.7&nbsp;Dashboard'>Squeeze the Header of the New WordPress 2.7&nbsp;Dashboard</a></li>
<li><a href='http://konstruktors.com/blog/web-design/2899-replace-login-logo-with-site-name-link/' rel='bookmark' title='Replace WordPress Login Logo With Your Site&#8217;s Name and&nbsp;Link'>Replace WordPress Login Logo With Your Site&#8217;s Name and&nbsp;Link</a></li>
<li><a href='http://konstruktors.com/blog/web-design/2036-remove-index-html-from-the-url/' rel='bookmark' title='Remove index.html from the&nbsp;URL'>Remove index.html from the&nbsp;URL</a></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://konstruktors.com/blog/web-design/125-how-to-create-beautiful-and-elegant-html-lists-using-css/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Suggestions for writing flexible and usable&#160;plugin</title>
		<link>http://konstruktors.com/blog/wordpress/105-suggestions-for-writing-flexible-and-usable-plugin/</link>
		<comments>http://konstruktors.com/blog/wordpress/105-suggestions-for-writing-flexible-and-usable-plugin/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 21:41:02 +0000</pubDate>
		<dc:creator>Kaspars</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://konstruktors.com/blog/sidenotes/105-suggestions-for-writing-flexible-and-usable-plugin/</guid>
		<description><![CDATA[After the release of Custom Function Widgets plugin I also wrote about it in the WordPress support forum. Fellow forum contributor Otto42 (author of a very similar plugin: ExecPHP) had very interesting things to say regarding the plugin development in general. Really worth reading and discussing. Related posts WhiteHouse.gov Runs&#160;Drupal Tabbed Widgets Updated for WordPress&#160;2.8 [...]]]></description>
			<content:encoded><![CDATA[<p>After the release of <em>Custom Function Widgets</em> plugin I also wrote about it in the WordPress support forum. Fellow forum contributor <a href="http://wordpress.org/support/profile/71962" title="His WordPress forum profile">Otto42 </a>(author of a very similar plugin: <a href="http://ottodestruct.com/blog/2006/04/09/fun-with-widgets/" title="WordPress plugin ExecPHP by Otto">ExecPHP</a>) had very interesting things to say regarding the plugin development in general. Really worth <a href="http://wordpress.org/support/topic/155304" title="Read the discussion in WordPress forum">reading and discussing</a>.</p>
<h4>Related posts</h4><ol>
<li><a href='http://konstruktors.com/blog/free-software/1589-whitehouse-gov-runs-drupal/' rel='bookmark' title='WhiteHouse.gov Runs&nbsp;Drupal'>WhiteHouse.gov Runs&nbsp;Drupal</a></li>
<li><a href='http://konstruktors.com/blog/wordpress/1797-tabbed-widgets-updated-for-wordpress-2-8/' rel='bookmark' title='Tabbed Widgets Updated for WordPress&nbsp;2.8'>Tabbed Widgets Updated for WordPress&nbsp;2.8</a></li>
<li><a href='http://konstruktors.com/blog/wordpress/1443-widget-context-in-official-plugin-repository/' rel='bookmark' title='Widget Context Plugin Added to the Official Plugin&nbsp;Repository'>Widget Context Plugin Added to the Official Plugin&nbsp;Repository</a></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://konstruktors.com/blog/wordpress/105-suggestions-for-writing-flexible-and-usable-plugin/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
