<?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>Martin Bergek &#187; Web design</title>
	<atom:link href="http://www.bergek.com/category/web-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bergek.com</link>
	<description>About the web we live in and gadgets in general.</description>
	<lastBuildDate>Tue, 27 Apr 2010 08:11:47 +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>WordPress iPhone theme</title>
		<link>http://www.bergek.com/2009/09/03/wordpress-iphone-theme/</link>
		<comments>http://www.bergek.com/2009/09/03/wordpress-iphone-theme/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 22:56:20 +0000</pubDate>
		<dc:creator>Martin Bergek</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Web design]]></category>

		<guid isPermaLink="false">http://www.bergek.com/?p=447</guid>
		<description><![CDATA[For WordPress blogs that want to support iPhone users the plugin WPTouch is very useful. The plugin detects the presence of iPhone (as well as some other devices) and sends a special theme instead of the blog&#8217;s standard theme.]]></description>
			<content:encoded><![CDATA[<p>For WordPress blogs that want to support iPhone users the plugin WPTouch is very useful. The plugin detects the presence of iPhone (as well as some other devices) and sends a special theme instead of the blog&#8217;s standard theme.<br />
<img src="http://www.bergek.com/wp-content/uploads/2009/09/wptouch.png" alt="Wordpress on iPhone with WPTouch plugin" title="WPTouch" width="206" height="376" class="aligncenter size-full wp-image-448" /></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.bergek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.bergek.com/2009/09/03/wordpress-iphone-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS-based rounded corners</title>
		<link>http://www.bergek.com/2009/02/22/css-based-rounded-corners/</link>
		<comments>http://www.bergek.com/2009/02/22/css-based-rounded-corners/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 14:08:05 +0000</pubDate>
		<dc:creator>Martin Bergek</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.bergek.com/?p=297</guid>
		<description><![CDATA[Having rounded corners in web layout is usually a nice touch, whether it be menu tabs, boxes or whatever. Way back when the layout was done using HTML tables this could be achieved with images and a bunch of extra table cells. Ugliest solution there ever was but it worked. The last few years I [...]]]></description>
			<content:encoded><![CDATA[<p>Having rounded corners in web layout is usually a nice touch, whether it be menu tabs, boxes or whatever. Way back when the layout was done using HTML tables this could be achieved with images and a bunch of extra table cells. Ugliest solution there ever was but it worked. The last few years I have been using Javascript libraries such as <a href="http://www.html.it/articoli/niftycube/index.html">NiftyCube</a> to achieve more or less the same effect.</p>
<p>In CSS3 there are finally options for creating rounded corners. It is worth noting that CSS3 is still under development and that this technique only works under Firefox and Safari &#8211; but since they are the browsers I use anyway it is almost good enough for me already.</p>
<div style="width:300px;background-color: #ddddff;-moz-border-radius: 15px;-webkit-border-radius: 15px;border: 4px solid #8888ff;padding: 10px;" >
Users of Firefox and Safari should see this text in a blueish box with rounded corners. Users of other browsers will see a box with square corners.
</div>
<p><br/><br />
The HTML code for the box above is<br />
<code><br />
&lt;div style="width:300px;<br />
background-color: #ddddff;<br />
-moz-border-radius: 15px;<br />
-webkit-border-radius: 15px;<br />
border: 4px solid #8888ff;<br />
padding: 10px;" ><br />
</code></p>
<p>The added options are (for the two browser families):<br />
<code><br />
-moz-border-radius: 5px;<br />
-webkit-border-radius: 5px;<br />
</code></p>
<p>It is also possible to round only certain corners by using a combination of the following:<br />
<code><br />
-moz-border-radius-topleft<br />
-moz-border-radius-topright<br />
-moz-border-radius-bottomleft<br />
-moz-border-radius-bottomright<br />
-webkit-border-radius-topleft<br />
-webkit-border-radius-topright<br />
-webkit-border-radius-bottomleft<br />
-webkit-border-radius-bottomright<br />
</code></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.bergek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.bergek.com/2009/02/22/css-based-rounded-corners/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iPhone viewport size</title>
		<link>http://www.bergek.com/2009/02/15/iphone-viewport-size/</link>
		<comments>http://www.bergek.com/2009/02/15/iphone-viewport-size/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 14:21:51 +0000</pubDate>
		<dc:creator>Martin Bergek</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Web design]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.bergek.com/?p=277</guid>
		<description><![CDATA[This information is from 2007 but every time I make a web page for the iPhone I have to go and search for it. The iPhone Safari browser does a good job of presenting just about any web page on its relatively small display. In so doing, it assumes that whatever web page it is [...]]]></description>
			<content:encoded><![CDATA[<p>This information is from 2007 but every time I make a web page for the iPhone I have to go and search for it.</p>
<p>The iPhone Safari browser does a good job of presenting just about any web page on its relatively small display. In so doing, it assumes that whatever web page it is displaying was designed for a much bigger display. To design a web page targeted for the iPhone and not have the phone shrink the web page to oblivion one must therefore add a meta tag to the head section of the HTML file:<br />
<code><br />
&lt;meta name="viewport" content="width=320, user-scalable=yes"><br />
</code></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.bergek.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.bergek.com/2009/02/15/iphone-viewport-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
