<?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>Mage Blog &#187; HTML/CSS</title>
	<atom:link href="http://blog.mageprojects.com/category/htmlcss/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mageprojects.com</link>
	<description></description>
	<lastBuildDate>Tue, 22 Jun 2010 20:26:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Mageprojects.com main page in pure css (3)!</title>
		<link>http://blog.mageprojects.com/2010/04/06/mageprojects-com-main-page-in-pure-css-3/</link>
		<comments>http://blog.mageprojects.com/2010/04/06/mageprojects-com-main-page-in-pure-css-3/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 17:21:23 +0000</pubDate>
		<dc:creator>markg85</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>

		<guid isPermaLink="false">http://blog.mageprojects.com/?p=239</guid>
		<description><![CDATA[Hi, I spend a few hours recreating the main mageprojects.com site in pure css. The result is visible here: http://mageprojects.com/PureCSS/ and works in Firefox 3.6, Chrome 4 and Safari 4. Note that there is actually just one image on that entire page and that&#8217;s the header image with my logo in it. Everything else you [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I spend a few hours recreating the main mageprojects.com site in pure css. The result is visible here: <a href="http://mageprojects.com/PureCSS/">http://mageprojects.com/PureCSS/</a> and works in Firefox 3.6, Chrome 4 and Safari 4.</p>
<p>Note that there is actually just one image on that entire page and that&#8217;s the header image with my logo in it. Everything else you see on that page is done with css only! I even had some css animation effects in it but since that&#8217;s chrome only i left it out for now.</p>
<p>Just made it to show you the power of CSS.</p>
<p>Feel free to browse the page source and use it to your liking.</p>
<p>Mark.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mageprojects.com/2010/04/06/mageprojects-com-main-page-in-pure-css-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Proposal: Stretch elements(s) via CSS</title>
		<link>http://blog.mageprojects.com/2009/05/30/stretch-elementss-via-css/</link>
		<comments>http://blog.mageprojects.com/2009/05/30/stretch-elementss-via-css/#comments</comments>
		<pubDate>Sat, 30 May 2009 18:21:58 +0000</pubDate>
		<dc:creator>markg85</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>

		<guid isPermaLink="false">http://blog.mageprojects.com/?p=144</guid>
		<description><![CDATA[Hi, First: What is the biggest problem in html/css that we currently have? Well, let one div be equal in height as some other div. When the height positions are absolute that isn&#8217;t an issue. When both can vary, lets say a menu and a content div, then it becomes a big nightmare for web [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>First: What is the biggest problem in html/css that we currently have?</p>
<p>Well, let one div be equal in height as some other div. When the height positions are absolute that isn&#8217;t an issue. When both can vary, lets say a menu and a content div, then it becomes a big nightmare for web developers. There are a lot of ways to solve that issue. Some say faux columns, some say tables and others use javascript grid library&#8217;s. All those solutions will just work fine but won&#8217;t fix the issue. The issue is ilustrated in the image below.</p>
<p><img class="alignnone size-full wp-image-145" title="currentdivissue" src="http://blog.mageprojects.com/wp-content/uploads/2009/05/currentdivissue.png" alt="currentdivissue" width="500" height="500" /></p>
<p>The image above is exactly what is possible today with divs. The menu div (in this case) can&#8217;t auto adjust to the height of the content div.</p>
<p>And this is what we want:</p>
<p><img class="alignnone size-full wp-image-146" title="currentdivpossiblefix" src="http://blog.mageprojects.com/wp-content/uploads/2009/05/currentdivpossiblefix.png" alt="currentdivpossiblefix" width="500" height="500" /></p>
<p>Note: the vertical text says:</p>
<pre><span style="color: #800000;">div#menu
{
    .....
    stretch-with: “div#content”, height;
    .....
}</span></pre>
<p>Now my proposal would be to add a &#8220;stretch-with&#8221; property in css which allows you to say:<br />
&#8220;this div (menu) should be equal in height as that (content) div&#8221;.</p>
<p>The properties within stretch-with would be: [element name] [how to stretch] [how much of it]<br />
So that would result in: stretch-with: &#8220;div#content&#8221;, height, 100%;<br />
Perhaps also a pixel value instead of percentages&#8230; not sure if that adds value to this idea?</p>
<p>I would say that 100% is default so no need to supply that so you get: stretch-with: &#8220;div#content&#8221;, height;<br />
In normal text this would say: stretch this element to the same height as div#content.</p>
<p>Now how is this different from the &#8220;Advanced Layout Module&#8221; that is a working draft over at W3C?<br />
Well they use ASCII to define the entire layout in css. That might be a little overkill and not even what you want. I certainly don&#8217;t want to specify my entire layout in ascii art. All you want in pritty much any case is to have some div be as high as another div. This proposal does just that and nothing more. Also this idea might be a lot easier for rendering engines to pick up because it&#8217;s a lot more simple then the Advanced Layout Module and it&#8217;s not making css much harder to understand or even make artwork from it.</p>
<p>Now all that needs to happen is the top rendering engines to implement this idea. Those are:<br />
Trident (internet Explorer)<br />
Gecko (Firefox) + a lot more gacko based browsers<br />
Webkit (Safari) + a lot more webkit based browsers<br />
Presto (Opera)</p>
<p>Making a Javascript implementation for this (just to test how it works) is probably extremely easy as well because it&#8217;s just not much to implement and not extremely complex.</p>
<p>Let me know what you think of this idea,<br />
Mark.</p>
<p><strong>Update:</strong> It&#8217;s &#8220;Template Layout Module&#8221; instead of &#8220;Advanced Layout Module&#8221;. Sorry for the confusion it might have caused. Not changing in the text above since i submitted it to a few places.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mageprojects.com/2009/05/30/stretch-elementss-via-css/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
