<?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>cakebaker &#187; html</title>
	<atom:link href="http://cakebaker.42dh.com/tags/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Tue, 20 Dec 2011 15:29:40 +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>Link-like buttons</title>
		<link>http://cakebaker.42dh.com/2009/11/20/link-like-buttons/</link>
		<comments>http://cakebaker.42dh.com/2009/11/20/link-like-buttons/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 08:05:37 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://cakebaker.42dh.com/?p=1293</guid>
		<description><![CDATA[Sometimes you want to make a button look like a link. For example, in an admin interface you might want to have &#8220;links&#8221; to edit and delete articles. The &#8220;edit&#8221; link will be a normal link. But for the &#8220;delete&#8221; link you &#8220;cannot&#8221; use a normal link, because a delete action changes the state on [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you want to make a button look like a link. For example, in an admin interface you might want to have &#8220;links&#8221; to edit and delete articles. The &#8220;edit&#8221; link will be a normal link. But for the &#8220;delete&#8221; link you &#8220;cannot&#8221; use a normal link, because a delete action changes the state on the server and hence it should be performed using POST. Therefore the need for a button.</p>
<p>Thanks to CSS it should be easy to make a button look like a link, that&#8217;s what I thought when I started. But as usual when I work with CSS, what seems to be easy is not that easy&#8230; Anyway, here is the solution:</p>
<p>First the HTML code. Nothing special here, the only thing to note is that I had to use a &#8220;button&#8221; instead of an &#8220;input&#8221; element due to some CSS issues with <a href="http://www.konqueror.org/">Konqueror</a>. </p>
<pre>
<code>&lt;form action="/article/1" method="post"&gt;
  &lt;p&gt;
    &lt;button type="submit" class="link"&gt;&lt;span&gt;Delete&lt;/span&gt;&lt;/button&gt;
  &lt;/p&gt;
&lt;/form&gt;</code>
</pre>
<p>And here the CSS (thanks to Natalie Downe for her article <a href="http://natbat.net/2009/Jun/10/styling-buttons-as-links/">Styling buttons to look like links</a>, from where I got some of the settings below): </p>
<pre>
<code>button.link {
  -moz-user-select: text;
  background: none;
  border: none;
  cursor: pointer;
  color: blue;
  font-size: 1em;
  margin: 0;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  overflow: visible;
  width: auto;
}</code>
</pre>
<p>This worked fine in Konqueror, but in Firefox there was always a padding of 2px. And of course I had no clue why. As you can see in the CSS snippet above, the padding was already set to 0&#8230; Fortunately, I found the solution in a <a href="http://natbat.net/2009/Jun/10/styling-buttons-as-links/#c5551">comment</a> of the aformentioned article:</p>
<pre>
<code>button::-moz-focus-inner {
  padding: 0;
  border: none;
}</code>
</pre>
<p>To use such link-like buttons in your own application you have to adapt the CSS to your own needs.</p>
<p>Have fun :)</p>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2009/11/20/link-like-buttons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Do we really need HTML and CSS on the web?</title>
		<link>http://cakebaker.42dh.com/2006/10/07/do-we-really-need-html-and-css-on-the-web/</link>
		<comments>http://cakebaker.42dh.com/2006/10/07/do-we-really-need-html-and-css-on-the-web/#comments</comments>
		<pubDate>Sat, 07 Oct 2006 15:42:37 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[ideas]]></category>

		<guid isPermaLink="false">http://cakebaker.42dh.com/2006/10/07/do-we-really-need-html-and-css-on-the-web/</guid>
		<description><![CDATA[A provocative question, I know. But I like to try to get to the bottom of something from time to time, and to give my fancy full scope ;-) Let&#8217;s start with another question: what do we do on the web? We read news, we compare prices, we buy products, we learn, we look at [...]]]></description>
			<content:encoded><![CDATA[<p>A provocative question, I know. But I like to try to get to the bottom of something from time to time, and to give my fancy full scope ;-)</p>
<p>Let&#8217;s start with another question: what do we do on the web? We read news, we compare prices, we buy products, we learn, we look at pictures, etc., in short we are interested in content. Content is king. So the design of the sites is not that important. Of course it is more pleasant if a site has a nice design, but that&#8217;s not the reason a site is visited. It&#8217;s because of its content. </p>
<p>So we can say the web is about content. Ok. But HTML and CSS are primary for design purposes. Hm. Could it be that HTML and CSS are a wrong solution for websites? It is possible. There are some indicators for that:</p>
<ul>
<li>HTML and CSS are (too) complex, which makes it difficult for non-technical people to create websites</li>
<li>too much time must be invested to make a website look correct in the different browsers</li>
<li>extra work is needed if a website should be accessible for disabled people</li>
</ul>
<p>What could be an alternative? I think an alternative approach should be similar to plain-text email, with no possibilities to format anything. So it would be really easy to create content, just open an editor and start writing (like writing an email). And you would no longer have to worry about the different browsers, because the content is shown in the way it was entered, with just one font and one font size&#8230;</p>
<p>What do you think about this topic?</p>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2006/10/07/do-we-really-need-html-and-css-on-the-web/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Seven free layout templates for CakePHP</title>
		<link>http://cakebaker.42dh.com/2006/07/07/seven-free-layout-templates-for-cakephp/</link>
		<comments>http://cakebaker.42dh.com/2006/07/07/seven-free-layout-templates-for-cakephp/#comments</comments>
		<pubDate>Fri, 07 Jul 2006 11:20:48 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[cakephp]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.cakebaker.42dh.com/?p=222</guid>
		<description><![CDATA[Shunro Dozono, a baker from Japan, has ported the designs from Contented Designs to CakePHP. They are a good starting point for creating your own layout if you do not want to create one from scratch.]]></description>
			<content:encoded><![CDATA[<p>Shunro Dozono, a baker from Japan, has <a href="http://cakephp.seesaa.net/article/20355864.html">ported</a> the designs from <a href="http://contenteddesigns.com/templates/index.html">Contented Designs</a> to CakePHP. They are a good starting point for creating your own layout if you do not want to create one from scratch. </p>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2006/07/07/seven-free-layout-templates-for-cakephp/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

