<?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>FDSign - Adult Design &#187; CSS</title>
	<atom:link href="http://www.fdsign.com/evolution/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fdsign.com/evolution</link>
	<description>Adult Web Design and Development</description>
	<lastBuildDate>Thu, 26 May 2011 04:03:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>GayBeef Tube</title>
		<link>http://www.fdsign.com/evolution/gay/gaybeef-tube/</link>
		<comments>http://www.fdsign.com/evolution/gay/gaybeef-tube/#comments</comments>
		<pubDate>Wed, 29 Dec 2010 23:06:56 +0000</pubDate>
		<dc:creator>Harvey</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[gay]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[tube]]></category>
		<category><![CDATA[gay beef tube]]></category>
		<category><![CDATA[grunge]]></category>

		<guid isPermaLink="false">http://www.fdsign.com/evolution/?p=658</guid>
		<description><![CDATA[Tube layout and coding for GayBeef Tube. The thumbnail sample is an slightly different version I liked better, so for the same price you have 2 previews, the one here and the live one, hah!]]></description>
			<content:encoded><![CDATA[<p>Tube layout and coding for <a title="Gay Beef Tube" href="http://tube.gaybeef.com/" target="_blank">GayBeef Tube</a>. The thumbnail sample is an slightly different version I liked better, so for the same price you have 2 previews, the one here and the live one, hah!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fdsign.com/evolution/gay/gaybeef-tube/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Private School Jewel Galleries</title>
		<link>http://www.fdsign.com/evolution/teens/private-school-jewel-galleries/</link>
		<comments>http://www.fdsign.com/evolution/teens/private-school-jewel-galleries/#comments</comments>
		<pubDate>Sat, 25 Dec 2010 13:00:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[galleries]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[solo]]></category>
		<category><![CDATA[teens]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[private school jewel]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[teen]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.fdsign.com/evolution/?p=653</guid>
		<description><![CDATA[We made a batch of galleries for Private School Jewel and they came up very nice, check them out by yourself! We also fixed all the XHTML and Flash code, CSS and added some semantic SEO for Jewel&#8217;s site, but since we didn&#8217;t design, well, no preview, we can&#8217;t take credit for other people&#8217;s work]]></description>
			<content:encoded><![CDATA[<p>We made a batch of galleries for <a title="Private School Jewel" href="http://privateschooljewel.com/" target="_blank">Private School Jewel</a> and they came up very nice, check them out by yourself! We also fixed all the XHTML and Flash code, CSS and added some semantic SEO for Jewel&#8217;s site, but since we didn&#8217;t design, well, no preview, we can&#8217;t take credit for other people&#8217;s work</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fdsign.com/evolution/teens/private-school-jewel-galleries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jay&#8217;s POV Site</title>
		<link>http://www.fdsign.com/evolution/paysites/jays-pov-site/</link>
		<comments>http://www.fdsign.com/evolution/paysites/jays-pov-site/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 03:16:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[amateur]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HD]]></category>
		<category><![CDATA[members areas]]></category>
		<category><![CDATA[paysites]]></category>
		<category><![CDATA[teens]]></category>
		<category><![CDATA[Jay's POV Site]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[light weight]]></category>
		<category><![CDATA[paysite]]></category>
		<category><![CDATA[POV]]></category>

		<guid isPermaLink="false">http://www.fdsign.com/evolution/?p=598</guid>
		<description><![CDATA[This is a site that, as you may imagine, is about POV content. It&#8217;s also about HD and we were instructed to do things within very specific work frames, and the result is this: a light-weight, no non-sense modern look tour which converts like hot cakes You can see a working version of this tour [...]]]></description>
			<content:encoded><![CDATA[<p>This is a site that, as you may imagine, is about POV content. It&#8217;s also about HD and we were instructed to do things within very specific work frames, and the result is this: a light-weight, no non-sense modern look tour which converts like hot cakes</p>
<p>You can see a working version of this tour <a title="JAY'S POV SITE" href="http://fdsign.com/jayspovsite/" target="_blank">here</a>. It also includes a very complete members area as well as an special join page not displayed here since the site isn&#8217;t alive yet</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fdsign.com/evolution/paysites/jays-pov-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial: Same Height Columns</title>
		<link>http://www.fdsign.com/evolution/tutorials/tutorial-same-height-columns/</link>
		<comments>http://www.fdsign.com/evolution/tutorials/tutorial-same-height-columns/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 19:31:09 +0000</pubDate>
		<dc:creator>Harvey</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[same height columns]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.fdsign.com/evolution/?p=217</guid>
		<description><![CDATA[So this is a mini tutorial that will help you (I hope) to achieve the dreaded CSS thingy in just&#8230; 10 lines of CSS. And to make it more fun, I&#8217;ll use some techniques that will help you to achieve things that most people is afraid of: same height columns! So, you can see the [...]]]></description>
			<content:encoded><![CDATA[<p>So this is a mini tutorial that will help you (I hope) to achieve the dreaded CSS thingy in just&#8230; 10 lines of CSS. And to make it more fun, I&#8217;ll use some techniques that will help you to achieve things that most people is afraid of: same height columns!</p>
<p>So, you can see the sample at <a href="http://www.fdsign.com/css_tutorial/" target="_blank">here</a></p>
<p>The sample has a header, a 3 columns body and a footer. If you want more or less columns, simply add/delete the column as you want it (and be sure to change the width for each column). In 99% of cases, you won&#8217;t want anything more complicated like this.</p>
<p>Are you seeing it? Cool. The html code for the page (without all the lipsum stuff) is as simple as this:</p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<p><pre><pre class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 498px;"><br />
&lt;div style=&quot;text-align: left;&quot; dir=&quot;ltr&quot;&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&amp;gt;<br />
&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;<br />
&amp;lt;title&amp;gt;Page Title&amp;lt;/title&amp;gt;<br />
&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&amp;gt;<br />
&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;style.css&quot; /&amp;gt;<br />
&amp;lt;/head&amp;gt;<br />
&amp;lt;body&amp;gt;<br />
&amp;lt;div id=&quot;container&quot;&amp;gt;<br />
<br />
&nbsp;&nbsp;&amp;lt;div id=&quot;header&quot;&amp;gt;&amp;lt;h1&amp;gt;This is the Header&amp;lt;/h1&amp;gt;&amp;lt;/div&amp;gt;<br />
<br />
&amp;lt;!--*************************************START LEFT COLUMN ***********************************************--&amp;gt;<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&amp;lt;div id=&quot;leftcol&quot;&amp;gt;&amp;lt;h2&amp;gt;The left column&amp;lt;/h2&amp;gt;&amp;lt;p&amp;gt;And the text for the left column&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;<br />
<br />
&amp;lt;!--*************************************END LEFT COLUMN ***********************************************--&amp;gt;<br />
<br />
&amp;lt;!--*************************************START CENTER COLUMN ***********************************************--&amp;gt;<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;lt;div id=&quot;midcol&quot;&amp;gt;&amp;lt;h2&amp;gt;The middle column&amp;lt;/h2&amp;gt;&amp;lt;p&amp;gt;And some text for the center column&amp;lt;/p&amp;gt;<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;lt;/div&amp;gt;<br />
<br />
&amp;lt;!--*************************************END CENTER COLUMN ***********************************************--&amp;gt;<br />
<br />
&amp;lt;!--*************************************START RIGHT COLUMN ***********************************************--&amp;gt;<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&amp;lt;div id=&quot;rightcol&quot;&amp;gt;&amp;lt;h2&amp;gt;The right column&amp;lt;/h2&amp;gt;&amp;lt;p&amp;gt;And then again, some text for the right column&amp;lt;/p&amp;gt;<br />
<br />
&amp;lt;/div&amp;gt;<br />
<br />
&amp;lt;!--*************************************END RIGHT COLUMN ***********************************************--&amp;gt;<br />
<br />
&amp;lt;hr style=&quot;display:block; height:0.1em; clear:both; visibility:hidden;&quot; /&amp;gt;<br />
&amp;lt;div id=&quot;footer&quot;&amp;gt;Footer&amp;lt;/div&amp;gt;<br />
<br />
&amp;lt;/div&amp;gt;<br />
&amp;lt;!--*************************************END MAIN CONTAINER ***********************************************--&amp;gt;<br />
&amp;lt;/body&amp;gt;<br />
&amp;lt;/html&amp;gt;&lt;/div&gt;<br />
<br />
</pre></pre>
</p></div>
<p>let&#8217;s analyze this: first of all, there&#8217;s something that jumps to the view at first sight: <strong>COMMENTS!</strong> . Yes, they jump to the view because I wanted that and because that&#8217;s what comments are for: to help you visualize everything at first glimpse. USE COMMENTS, LOVE COMMENTS, EMBRACE COMMENTS. If you think the 2kb they may add to a page are a bandwidth problem, well&#8230; you&#8217;re in the wrong business.</p>
<p>Then you have the header (with h1 tag) the cols (named in a way you&#8217;ll recognize what they are at first sight) and a footer. You&#8217;ll also see some &#8220;strange&#8221; code, and styled HR, but don&#8217;t worry, I&#8217;ll go to it later.</p>
<p>Once you have your html, you need to start define elements. I&#8217;ll make it sweet and simple: using px instead of ems or percentage, this one uses a container with 960px width, side columns are half of what the main column width is. Here goes the CSS code:</p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<p><pre><pre class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 274px;"><br />
&lt;div style=&quot;text-align: left;&quot; dir=&quot;ltr&quot;&gt;* {margin:0px; padding:0px;}<br />
body{background:#def5f9; font-family:verdana, helvetica, sans-serif; font-size:0.8em}<br />
<br />
#container{position:relative; width:900px; background:#f9f9f9; border:1px solid #900; margin:auto auto; padding: 10px 5px; overflow:hidden; text-align:center; z-index:1;}<br />
<br />
#header{width:890px; background:#333; margin:auto auto; padding:16px; margin:-16px; margin-bottom:10px;}<br />
#header h1{color:#fff; text-align:left;}<br />
<br />
#leftcol{width:240px; float:left; background:#f6d4d4; padding: 10px 5px; margin:0px 5px; padding-bottom:4000px; margin-bottom:-4000px; }<br />
#midcol{width:360px; float:left; background:#a3f9d8; padding: 10px 5px; margin:0px 5px; padding-bottom:4000px; margin-bottom:-4000px; text-align:left;}<br />
#midcol p{margin-bottom:10px;}<br />
#rightcol{ width:240px; float:left; background:#fa0; padding: 10px 5px; overflow:hidden; margin:0px 5px; padding-bottom:4000px; margin-bottom:-4000px;}<br />
<br />
#footer{position:relative; width:890px; background:#333; margin:auto auto; padding:16px; margin:-16px; margin-bottom:10px; height:100px; clear:both; z-index:20; margin-bottom:-20px; margin-top:30px; color:#fff;}&lt;/div&gt;<br />
<br />
</pre></pre>
</p></div>
<p>let&#8217;s go line by line (or 2 at most)</p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<p><pre><pre class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 50px;"><br />
&lt;div style=&quot;text-align: left;&quot; dir=&quot;ltr&quot;&gt;* {margin:0px; padding:0px;}<br />
body{background:#def5f9; font-family:verdana, helvetica, sans-serif; font-size:0.8em}&lt;/div&gt;<br />
<br />
</pre></pre>
</p></div>
<p>Nothing strange here, just defining the colors and font and reseting all margins and paddings</p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<p><pre><pre class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px;"><br />
&lt;div style=&quot;text-align: left;&quot; dir=&quot;ltr&quot;&gt;#container{position:relative; width:900px; background:#f9f9f9; border:1px solid #900; margin:auto auto; padding: 10px 5px; overflow:hidden; text-align:center; z-index:1;}&lt;/div&gt;<br />
<br />
</pre></pre>
</p></div>
<p>now, we add some flavor. Everything is quite straight, but we&#8217;ll use <strong>position:relative</strong>, <strong>z-index:1</strong> and <strong>overflow:hidden</strong>. You won&#8217;t normally need them most of the times, but we need it for the 100% height columns and the footer.</p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<p><pre><pre class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 50px;"><br />
&lt;div style=&quot;text-align: left;&quot; dir=&quot;ltr&quot;&gt;#header{width:890px; background:#333; margin:auto auto; padding:16px; margin:-16px; margin-bottom:10px;}<br />
#header h1{color:#fff; text-align:left;}&lt;/div&gt;<br />
<br />
</pre></pre>
</p></div>
<p>The header uses another of my tricks: <strong>padding:16px; margin:-16px;</strong> This makes sure the width is 100% overriding any margin or padding I may add to the container box. Tricky but effective.</p>
<p><span style="font-size: medium;"><strong>LET&#8217;S GO WITH THE COLUMNS!!!!</strong></span></p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<p><pre><pre class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 66px;"><br />
&lt;div style=&quot;text-align: left;&quot; dir=&quot;ltr&quot;&gt;#leftcol{width:240px; float:left; background:#f6d4d4; padding: 10px 5px; margin:0px 5px; padding-bottom:4000px; margin-bottom:-4000px; }<br />
#midcol{width:360px; float:left; background:#a3f9d8; padding: 10px 5px; margin:0px 5px; padding-bottom:4000px; margin-bottom:-4000px; text-align:left;}<br />
#rightcol{ width:240px; float:left; background:#fa0; padding: 10px 5px; margin:0px 5px; padding-bottom:4000px; margin-bottom:-4000px;}&lt;/div&gt;<br />
<br />
</pre></pre>
</p></div>
<p>The columns are extremely simple in their layout, but you&#8217;ll see those 4000px values and will ask yourself WTF! . That&#8217;s another of my tricks. By applying a huge padding value to the column and then a huge negative margin, the overflow:hidden we used in the container makes sure all columns are 100% height. Neat, huh?  Everything else is just styling (width, bg, color, whatever)</p>
<p>and finally, the footer:</p>
<div style="margin: 5px 20px 20px;">
<div class="smallfont" style="margin-bottom: 2px;">Code:</div>
<p><pre><pre class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px;"><br />
&lt;div style=&quot;text-align: left;&quot; dir=&quot;ltr&quot;&gt;#footer{position:relative; width:890px; background:#333; margin:auto auto; padding:16px; margin:-16px; margin-bottom:10px; height:100px; clear:both; z-index:20; margin-bottom:-20px; margin-top:30px; color:#fff;}&lt;/div&gt;<br />
<br />
</pre></pre>
</p></div>
<p>Here, the <strong>overflow:hidden</strong> I used in the container box, makes its work again and avoids anything goes &#8220;out of the box&#8221;. The only special thing I had to keep in mind is to add a z-index higher than the container, or it would be below the columns.</p>
<p>Finally, the misterious HR thing: I use that to add a little space when going wild with positive/negative values and clearing all floats. Dirty, but lovely.</p>
<p>And that&#8217;s it! The &#8220;impossible to make&#8221; in just 10 lines of CSS code. Now you can add divs inside the existing divs or whatever, try new things, experiment and learn!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fdsign.com/evolution/tutorials/tutorial-same-height-columns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial: Mobile tips and tricks</title>
		<link>http://www.fdsign.com/evolution/mobile/tutorial-mobile-tips-and-tricks/</link>
		<comments>http://www.fdsign.com/evolution/mobile/tutorial-mobile-tips-and-tricks/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 19:16:16 +0000</pubDate>
		<dc:creator>Harvey</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.fdsign.com/evolution/?p=203</guid>
		<description><![CDATA[Unless you live under a rock in another planet with no intelligent life, you must be aware by now that Mobile Content is the &#8220;next big thing&#8221;. There&#8217;s a lot to say about this conception, personally I find it very difficult to understand. While computer and TV screens are going bigger and bigger and then [...]]]></description>
			<content:encoded><![CDATA[<p>Unless you live under a rock in another planet with no intelligent life, you must be aware by now that Mobile Content is the &#8220;next big thing&#8221;. There&#8217;s a lot to say about this conception, personally I find it very difficult to understand. While computer and TV screens are going bigger and bigger and then even bigger, mobile content is going a million steps back. Then again, many people, especially younger people mesmerized by &#8220;coolness&#8221; likes this way of content delivery, and there&#8217;s money to be made off. So&#8230; time for some Mobile issues.</p>
<p>First of all, if your site is well done, you won&#8217;t need many changes. When I say well done, I mean proper XHTML with both HTML and CSS validating. If you went with a cheap designer that provided some half made product&#8230; well, now you have to pay again for a whole new content delivery tour. If your designer used tables&#8230; well, whole new tour. If your designer can&#8217;t make proper CSS (even if validating), well&#8230; whole new tour. Take it as a learning, pay twice for the &#8216;cheapo&#8217; (hopefully cheap) and continue reading.</p>
<p>Design for Mobile is a whole new different thing. it&#8217;s easy and simple but it has to be made TO THE &#8220;A&#8221;. Content organization and logical flow is key, and so is CSS. As you may imagine, there are not much options with mobile design since its screen doesn&#8217;t allow it. However, you can be as complex as you want. And&#8230;. fail. Mobile design is about simplicity, in essence it&#8217;s like 94/95&#8242;s design, only that without the tables.</p>
<p>Once you have a logical structure (you can draw it on paper or make a graph flow for visual help), you can apply the CSS. Personally, I&#8217;d use 3 or 4 style sheets and offer them as options. Since my html has to be PERFECT and I&#8217;ll use DIVs, I can change everything in a snap via CSS, hence your mobile customers will be able to choose whatever they like.</p>
<p>An idea for organization would be something like this:</p>
<p><a href="http://www.fdsign.com/evolution/wp-content/uploads/screen.jpg"><img class="alignnone size-full wp-image-204" title="Tutorial: Mobile Web Design" src="http://www.fdsign.com/evolution/wp-content/uploads/screen.jpg" alt="" width="240" height="320" /></a></p>
<p>the size of this screen is the one you should aim for since it&#8217;s the most common: 240&#215;320. However, you can serve different style sheets and detect screen sizes or be smart and use liquid layouts. The choice is yours.</p>
<p>As you may see, this very basic design uses logical semantyc XHTML. It&#8217;s simple and to the point, yet it uses some content display that allows you to maximize content delivery using as little space as possible</p>
<p>Another thing to note: Don&#8217;t rely on fonts! NEVER! Most mobile devices won&#8217;t include any of the fonts you usually will rely on, like Times, Verdana and such. The user has to install them.</p>
<p>For devices using Windows Mobile, it&#8217;s a great idea to offer the fonts you want to display in your site so the user can download them.</p>
<p>Obviously, you can use something as Facelift, Flir, AnyFont, whatever, but it&#8217;s always a nice idea to deliver the regular fonts for your site as well.</p>
<p>So now we need to display content.</p>
<p>In adult business, you&#8217;ll want to display photos and videos rather than text. How to do it AND DO IT WELL is a very tricky question. Personally, I&#8217;d use any kind of tool based on JQuery or Prototype to build AJAX apps, but you can do it with php or simply with HTML. The better you do that, the better you&#8217;ll do with your mobile site. As a tip, think about this: most people doesn&#8217;t have an Iphone, yet everybody loves it. So&#8230; why not serve your site emulating Iphone? It&#8217;s relatively easy for someone that knows what is he/she doing, and your members will love the slick modern design</p>
<p>Finally, something so basic that it&#8217;s borderline ridiculous yet many people doesn&#8217;t do: add a bookmark link.</p>
<p>Of course there&#8217;s a lot more to mobile content delivery, but for now, I hope this helps to any one willing to enter this competitive market</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fdsign.com/evolution/mobile/tutorial-mobile-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Tutorial: Creating Rounded Corners with Pure CSS</title>
		<link>http://www.fdsign.com/evolution/tutorials/tutorial-creating-rounded-corners-with-pure-css/</link>
		<comments>http://www.fdsign.com/evolution/tutorials/tutorial-creating-rounded-corners-with-pure-css/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 18:50:12 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[rounded corners]]></category>
		<category><![CDATA[w3]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.fdsign.com/evolution/?p=192</guid>
		<description><![CDATA[For those looking for rounded corners for their designs, there&#8217;s a lot of techniques throughout the ages, so to say. At first, web designers started with tables, and the only resource was to make several cells to contain rounded corners images. Pretty hideous but it does the trick. Now, with CSS you can make rounded [...]]]></description>
			<content:encoded><![CDATA[<p>For those looking for rounded corners for their designs, there&#8217;s a lot of techniques throughout the ages, so to say. At first, web designers started with tables, and the only resource was to make several cells to contain rounded corners images. Pretty hideous but it does the trick.</p>
<p>Now, with CSS you can make rounded corners by using only CSS and no images. You may ask yourself &#8220;what is this wacko talking about?&#8221; since there&#8217;s no rounded corners properties in CSS nor CSS2. So the wacko gives you a warm welcome to the kingdom of&#8230; <strong>CSS3!</strong></p>
<p>Before going further, CSS3 isn&#8217;t &#8220;oficially&#8221; alive, however, a bunch of the new CSS3 properties are available in most browsers, so it&#8217;s quite safe to use them (we&#8217;ll go further on how to display CSS sheets depending on browsers).</p>
<p>One of the most sough after properties for web designers is the rounded corners property, since it&#8217;s one of the main components of so called web 2.0 design (as we&#8217;re at it, after 20+ years as a designer, I still have no idea what <strong>web 2.0 design</strong> is)</p>
<p>So, without further ado, let&#8217;s start with the tutorial:<span id="more-192"></span></p>
<p>First let&#8217;s add a div with any content you may want:<br />
<pre><code>&nbsp;&nbsp;&nbsp;&nbsp;&lt;div style=&quot;background:#f09; width:300px; padding:10px; -moz-border-radius: 0 0 10px 5px; -webkit-border-bottom-left-radius: 10px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;-webkit-border-bottom-right-radius: 5px;<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-khtml-border-bottom-left-radius: 10px;<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-khtml-border-bottom-right-radius: 5px;<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;border-bottom-left-radius: 10px;<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;border-bottom-right-radius: 5px;&quot;&gt;This is the almighty content&lt;/div&gt;</code></pre><br />
Neat, huh? Unless you&#8217;re using a pseudo-browser, you should be seeing a pink box with all corners rounded. And this is the whole code used to create that</p>
<blockquote><p>
<pre><pre>&amp;lt;div style=&quot;background:#f09;<br />
width:300px;<br />
padding:10px;<br />
border-radius: 5px;<br />
-moz-border-radius: 5px;<br />
-webkit-border-radius: 5px;<br />
-khtml-border-radius: 5px;&quot;&amp;gt;<br />
This is the almighty content<br />
&amp;lt;/div&amp;gt;</pre></pre>
</p></blockquote>
<p>Let&#8217;s disect it: border-radius is the <a href="http://www.w3.org/TR/css3-background/#the-border-radius"><strong>w3.org property</strong></a>, so if you want to validate your page, you&#8217;ll need it. Sincerely, as long as the design works, I couldn&#8217;t care less about validation. Most of the times, when you want to go &#8220;out of the box&#8221;, you&#8217;ll find a lot of trouble validating your CSS. But getting back to our subject, this property has propietary codes for different browsers, hence the remaining properties we have added</p>
<p>-moz-border-radius: it&#8217;s the Mozilla propietary implementation<br />
-webkit-border-radius: it&#8217;s the Safari propietary implementation<br />
-khtml-border-radius: it&#8217;s the Konqueror propietary implementation</p>
<p>Now, we&#8217;d bang our heads against the wall wondering why all these browsers can&#8217;t just use the w3.org implementation, but well, it&#8217;s the same old story. This being said, Opera and Mozilla announced their browsers will recognize all w3 implementations (Opera already does on most of them, including this one).</p>
<p>Now, what if we want different radii on different corners or even no radius on some corner? This will require slightly more code, but not that much. See it by yourself:<br />
<code>&lt;div style=&quot;background:#f09; width:300px; padding:10px; -moz-border-radius: 0 0 10px 5px; -webkit-border-bottom-left-radius: 10px;-webkit-border-bottom-right-radius: 5px;border-bottom-left-radius: 10px;border-bottom-right-radius: 5px&quot;&gt;This is the almighty content&lt;/div&gt;</code><br />
and the code to achieve this as follows:</p>
<blockquote><p>&lt;div style=&#8221;background:#f09; width:300px; padding:10px; -moz-border-radius: 0 0 10px 5px; -webkit-border-bottom-left-radius: 10px;&lt;br /&gt;</p>
<p>-webkit-border-bottom-right-radius: 5px;&lt;br /&gt;</p>
<p>-khtml-border-bottom-left-radius: 10px;&lt;br /&gt;</p>
<p>-khtml-border-bottom-right-radius: 5px;&lt;br /&gt;</p>
<p>border-bottom-left-radius: 10px;&lt;br /&gt;</p>
<p>border-bottom-right-radius: 5px &#8220;&gt;This is the almighty content&lt;/div&gt;</p></blockquote>
<p>As you can see, <strong>Firefox propietary implementation</strong> is more simple than all others since you can define all radii in a single declaration, where the radius values order is: <em>top-left, top-right, bottom-left, bottom right</em>. However, the w3 implementation is way more sophisticated, once all browsers recognize it, you&#8217;ll be able to do stuff like this:</p>
<div id="attachment_193" class="wp-caption alignnone" style="width: 549px"><a href="http://www.fdsign.com/evolution/wp-content/uploads/corner-large-mix.png"><img class="size-full wp-image-193" title="corner-large-mix" src="http://www.fdsign.com/evolution/wp-content/uploads/corner-large-mix.png" alt="" width="539" height="211" /></a><p class="wp-caption-text">Image taken from w3.org</p></div>
<p>So this is it, CSS corners for the masses!</p>
<h2>Making CSS rounded borders in Internet Explorer</h2>
<p>OK, first of all let&#8217;s clarify something:<br />
a) IE is more a giant spyware machine with some browser capabilities than a real browser.<br />
b) Most people uses IE.<br />
c) Microsoft already announced they&#8217;ve no plans in the near future to be w3 compliant, much less CSS3 compliant.<br />
hence d) you must work on an IE version like it or not.</p>
<p>Bummer. At this point, I&#8217;m all for letting IE users see the above boxes as simple squares, but well, we all know we want the design to be cross-browser compatible. There&#8217;s no way in hell or heaven that a compliant CSS2 layout will look the same in IE than in any other browser, so you need to do things different for IE. There are several ways, but the one I like is making a whole different style-sheet for IE7 and another for IE6. Nasty, but will save you a lot of time. To achieve this, you&#8217;ll need to add this code in your pages between the <em>HEAD</em> tags</p>
<blockquote><p>&lt;link href=&#8221;style.css&#8221; rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; media=&#8221;screen&#8221; /&gt;</p>
<p>&lt;!&#8211;[if gte IE 6]&gt;</p>
<p>&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;style-IE.css&#8221; media=&#8221;screen&#8221; /&gt;</p>
<p>&lt;![endif]&#8211;&gt;<br />
&lt;!&#8211;[if gte IE 7]&gt;</p>
<p>&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;style-IE7.css&#8221; media=&#8221;screen&#8221; /&gt;</p>
<p>&lt;![endif]&#8211;&gt;</p></blockquote>
<p>That means: <em>&#8220;if Greater or Equal to IE6, use style-IE.css&#8221; </em>and same for IE7 . Want to cry? Although more compliant, you&#8217;ll probably need yet another style sheet for IE8!!! Personally, I don&#8217;t care anymore for IE6, you can&#8217;t even test it anymore since almighty Microsoft stopped supporting it. Why would I?</p>
<p>but&#8230; you know what? I&#8217;ll leave you here and hopefully you&#8217;ll visit us to find out how to make the dreaded rounded corners in Internet Explorer! <img src='http://www.fdsign.com/evolution/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.fdsign.com/evolution/tutorials/tutorial-creating-rounded-corners-with-pure-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

