<?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>Houston Web Design &#38; Development &#187; CSS Tutorials</title>
	<atom:link href="http://www.jbwebdev.com/blog/css-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jbwebdev.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 04 Aug 2010 21:12:49 +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>CSS Tooltip That Works With IE6</title>
		<link>http://www.jbwebdev.com/blog/css-tooltip/</link>
		<comments>http://www.jbwebdev.com/blog/css-tooltip/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 23:57:11 +0000</pubDate>
		<dc:creator>Jon B</dc:creator>
				<category><![CDATA[CSS Tutorials]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tooltip]]></category>

		<guid isPermaLink="false">http://www.jbwebdev.com/blog/?p=538</guid>
		<description><![CDATA[A tooltip is a great way to present the user with a small popup when they hover over a link or an image. Some designers even use tooltip instead of a javascript popup window to ensure their message is read in case the user has javascript turned off in their browser.

I’ve used many different types of tooltips in the past and they all shared the same problem, they do not work with Internet Explorer 6. After many trial and error, I finally have a pure CSS tooltip that works in IE6.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.jbwebdev.com/blog/wp-content/uploads/2010/01/css-tooltip-ie6-284x300.jpg" alt="" title="css-tooltip-ie6" width="184" height="200" class="alignright size-medium wp-image-539" />A <a href="#" class="tooltip">tooltip<span>This is a pure CSS tooltip window</span></a> is a great way to present the user with a small popup when they hover over a link or an image. Some designers even use tooltip instead of a javascript popup window to ensure their message is read in case the user has javascript turned off in their browser. </p>
<p>I&#8217;ve used many different types of tooltips in the past and they all shared the same problem, they do not work with Internet Explorer 6. After many trial and error, I finally have a pure CSS tooltip that works in IE6.</p>
<p><span id="more-538"></span></p>
<p>HTML Code:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;a href=&quot;#&quot; class=&quot;tooltip&quot;&gt;Your Link Here
&lt;span&gt; Tooltip message you want to appear. &lt;/span&gt;&lt;/a&gt;</pre></div></div>

<p>Here&#8217;s the CSS code:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">a<span style="color: #6666ff;">.tooltip</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#7C98AE</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
a<span style="color: #6666ff;">.tooltip</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
a<span style="color: #6666ff;">.tooltip</span> span <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
a<span style="color: #6666ff;">.tooltip</span><span style="color: #3333ff;">:hover </span>span <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
   	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span> 
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span> 
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> 
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">100</span><span style="color: #00AA00;">;</span>
        <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f0f2f6</span><span style="color: #00AA00;">;</span> 
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#955F1F</span><span style="color: #00AA00;">;</span>
	opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.9</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>This CSS tooltip works with IE6, IE7, IE8, Firefox, Chrome, Flock and Opera. If you have your own CSS tooltip solution please share them here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jbwebdev.com/blog/css-tooltip/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>7 CSS Layout Tips</title>
		<link>http://www.jbwebdev.com/blog/7-css-layout-tips/</link>
		<comments>http://www.jbwebdev.com/blog/7-css-layout-tips/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 21:01:13 +0000</pubDate>
		<dc:creator>Jon B</dc:creator>
				<category><![CDATA[CSS Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[layout]]></category>

		<guid isPermaLink="false">http://www.jbwebdev.com/blog/?p=481</guid>
		<description><![CDATA[The most difficult thing in CSS to get right is the layout of your site. Here are a couple of tips dealing just with that. Some of these tips are not exactly new, or rocket science, but hopefully they will save someone a bit of bother somewhere! Tip 1 Clear out the default padding and [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.jbwebdev.com/blog/wp-content/uploads/2009/08/css-tips.png" alt="css-tips" title="css-tips" width="200" height="180" class="alignright size-full wp-image-488" style="margin-left:10px" />The most difficult thing in CSS to get right is the layout of your site. Here are a couple of tips dealing just with that. Some of these tips are not exactly new, or rocket science, but hopefully they will save someone a bit of bother somewhere!</p>
<p><strong>Tip 1</strong><br />
Clear out the default padding and margin settings before you start working.<br />
Different browsers have different default margin and padding sizes so you want to start with a clean slate, so to speak. Use this command:</p>
<p><span id="more-481"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">*</span> <span style="color: #009900;">&#123;</span>
margin<span style="color: #339933;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> 
padding<span style="color: #339933;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
border<span style="color: #339933;">:</span> <span style="color: #cc66cc;">0</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>to clear all default margin and padding settings. Also note the border, which is set to 0. Please note that if you do this, you will also get rid of the pesky purple border round click-able images, although some people argue that the purple border is necessary for accessibility and usability. But lots of people do not like the purple border round images, and this is one way that you can get rid of it in one fell swoop without having to set img border=0 for each image (which is against the strict markup rules in any case).</p>
<p><strong>Tip 2</strong><br />
To center your layout, use a container div to contain all your content<br />
Declare it as follows:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#container{
</span>margin<span style="color: #339933;">:</span> <span style="color: #cc66cc;">0</span> auto<span style="color: #339933;">;</span>
width<span style="color: #339933;">:</span> xxxpx
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>There are a couple of points here to take note of. DO NOT declare the width to be 100%. This defeats the whole object since you will just have to declare the sub elements within the container and then center THEM using margin : 0 auto. This is VERY BAD since it means that instead of declaring the central layout once, you will have to declare it in multiple places for each element within your container.</p>
<p><strong>Tip 3</strong><br />
Work from the top down<br />
Literally start working on your CSS layout starting from the top most elements in your design, as well as the &#8216;top&#8217; elements in your HTML, such as the body, as well as your main containers.</p>
<p>Declare your CSS commands on the highest level possible and try and declare something once only and let it cascade throughout. Only override the commands at a lower level when strictly necessary. This prevents a verbose CSS file that is difficult to maintain and understand. For example, if you have { margin : 0 auto} settings on each and every sub div within your container &#8211; you are in trouble.</p>
<p><strong>Tip 4 </strong><br />
Document what you are doing and use Firebug and the Firefox browser to debug<br />
You are not writing your CSS code just for yourself, some day some poor sod will have to debug it. Make numerous comments inside your CSS file to explain why you are doing things in a specific way.</p>
<p>Fitting in with this, you might find yourself having to fix someone else&#8217;s CSS more often than you think (or even your own, for that matter). Use the Firebug add-on for Firefox to debug your CSS. This is a life-saver with regards to giving you an insight into exactly where your design might be broken and why.</p>
<p>The only problem with this is that your design might work perfectly in Firefox, but not in IE5, IE6 or IE7. This brings us to the next tip.</p>
<p><strong>Tip 5</strong><br />
Decide which browsers you are going to build your CSS for and test from the start<br />
Some purists insist on making sure that your website work for all possible browsers, others only make it work for the &#8216;major&#8217; browsers. How do you know exactly which browsers are used the most? Once again W3 Schools come to the rescue.</p>
<p>On the following page, you can see which browsers are the most popular: http://www.w3schools.com/browsers/browsers_stats.asp. From this page you can see that something like IE5 is only used by about 1.1% of browsers. It is up to you whether you consider it worthwhile to build your CSS to be compatible with this browser, or whether you are just going to test your compatibility with IE6, IE7 and Firefox, for example. Whatever you do, when you start building your CSS, start from the top, and test each and every setting in each of the browsers as you go along. There is nothing worse than building a perfect website in Firefox, then finding out right after you have coded a 1000 line css file that it is broken in IE6. To then debug and fix your code after the fact is a nightmare.</p>
<p><strong>Tip 6</strong><br />
Here is an embarrassing little tip for fixing your CSS in IE6 or IE7<br />
Let&#8217;s say your design works perfectly in Firefox, but is broken in IE6. You cannot use Firebug to determine where the problem might be since it WORKS in Firefox. You do not have the luxury of using Firebug in IE6, so how do you debug an IE6 or IE7 stylesheet? I often found that it helps to add {border : 1 px solid red} or {border : 1 px solid purple} to the problematic elements. This way you can often see why certain elements do not fit into the space available. It is an embarrassing little tip since it is so primitive and simple, but it works!</p>
<p><strong>Tip 7</strong><br />
Understand floats<br />
Floating of elements is essential to understand, especially in the context of getting your floated elements to work in the different browsers!</p>
<p>Basically elements such as divs are floated to the left or the right (never to the top or the bottom, only sideways). Here are a couple of things to take into consideration with floated elements. Each floated element must have an explicit width specified. If you are making use of floated divs to create a 3 column or a 2 column layout, rather specify the widths in terms of percentages rather than fixed widths, and if you do use percentages, make sure that the percentages do not add up to 100%, this will often cause the right most column to drop below the rest, clearly indicating that you are trying to fit something into the available space that is too wide for it. Rather use percentages that add up to slightly below 100%, such as 25%, 49%, 24% for a left column, middle column and right column.</p>
<p>Floating elements can be extremely complex to understand and it is worth while to spend some time on good sites that provide specific guidelines and tips, such as the Position Is Everything website.</p>
<p><strong>Conclusion</strong><br />
These CSS tips for layout should hopefully save you some time and effort when you next have to panel-beat a table-less design into submission!</p>
<p><small>Article By: Christine Anderssen<br />
Christine Anderssen is the owner of Tailormade4you, a <a href="http://www.tm4y.co.za/">web design</a> and hosting company in South Africa, catering for small business website owners. Visit our site on <a href="http://www.tm4y.co.za/10-strategies.html">www.tm4y.co.za/10-strategies.html</a> to download your free guide on how to make your website really work for you and bring in more customers to your business.</small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jbwebdev.com/blog/7-css-layout-tips/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Speed Up and Reduce Your CSS File</title>
		<link>http://www.jbwebdev.com/blog/speed-up-and-reduce-your-css-file/</link>
		<comments>http://www.jbwebdev.com/blog/speed-up-and-reduce-your-css-file/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 03:09:12 +0000</pubDate>
		<dc:creator>Jon B</dc:creator>
				<category><![CDATA[CSS Tutorials]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://jbwebdev.com/blog/?p=203</guid>
		<description><![CDATA[Cascading Style Sheets otherwise known as CSS has become one of the most important aspect of web development, over the last 6 years we&#8217;ve seen some amazing web design backed up by ingenious use of CSS. If you&#8217;re concerned about your CSS file size ending up way too big than you originally intended, a great [...]]]></description>
			<content:encoded><![CDATA[<p><img style="float:right;margin-left:16px" title="CSS Shorthand" src="http://jbwebdev.com/blog/wp-content/uploads/2008/10/css.png" alt="CSS Shorthand" width="150" height="150" />Cascading Style Sheets otherwise known as CSS has become one of the most important aspect of web development, over the last 6 years we&#8217;ve seen some amazing web design backed up by ingenious use of CSS.</p>
<p>If you&#8217;re concerned about your CSS file size ending up way too big than you originally intended, a great solution is to use CSS Shorthand. CSS shorthand allows you to specify several properties on a CSS selector.</p>
<p><span id="more-203"></span></p>
<p>Let&#8217;s have a look at one of the common ways to style an HTML body:</p>
<blockquote><p><code><br />
body{<br />
background-color: #FFFFFF;<br />
background-image: url(images/bg.jpg);<br />
background-repeat: no-repeat;<br />
background-position: top left;<br />
}<br />
</code></p></blockquote>
<p>We can achieve the same results using CSS shorthand:</p>
<blockquote><p><code><br />
body{background: #FFF url(images/bg.jpg) no-repeat top left}<br />
</code></p></blockquote>
<p>And what about styling your fonts? Here is an example of a common font properties:</p>
<blockquote><p><code><br />
p {<br />
font-style: normal;<br />
font-variant:normal;<br />
font-weight: bold;<br />
font-size: 12px;<br />
line-height: normal;<br />
font-family: Tahoma,"Verdana", Arial;<br />
}<br />
</code></p></blockquote>
<p>And here&#8217;s the shorthand for your font properties:</p>
<blockquote><p><code><br />
p {font:bold 1em/1.2em Tahoma,"Verdana",Arial}<br />
</code></p></blockquote>
<p>One of the common ways to style borders on your divs:</p>
<blockquote><p><code><br />
div{<br />
border-width: 1px;<br />
border-color: #000000;<br />
border-style: solid;<br />
}<br />
</code></p></blockquote>
<p>CSS shorthand for borders:</p>
<blockquote><p><code><br />
div{border:1px solid #000}<br />
</code></p></blockquote>
<p>List styles example:</p>
<blockquote><p><code><br />
ul {<br />
list-style-type: circle;<br />
list-style-position: inside:<br />
list-style-image: url (list.jpg);<br />
}<br />
</code></p></blockquote>
<p>Yes we can also shorthand list styles!</p>
<blockquote><p><code><br />
ul {list-style: circle inside url(list.jpg)}<br />
</code></p></blockquote>
<p>Let&#8217;s take a look at the margin properties:</p>
<blockquote><p><code><br />
div {<br />
margin-top: 10px;<br />
margin-bottom: 5px;<br />
margin-left: 15px;<br />
margin-right: 20px;}<br />
</code></p></blockquote>
<p>&#8230;And the shorthand version:</p>
<blockquote><p><code><br />
div {margin: 10px 20px 5px 15px}</code></p>
<p>/* One thing to note here is that the properties are assigned in a particular manner &#8211; it goes top &#8211; right &#8211; bottom &#8211; left */</p></blockquote>
<p>Another way to shorthand the margin properties if the top border is the same as the bottom, and if the right border is the same as the left side:</p>
<blockquote><p><code><br />
div {margin: 10px 20px}</code></p>
<p>/* And this assignment is top &amp; bottom &#8211; left &amp; right */</p></blockquote>
<p>Same rules would apply to your padding properties:</p>
<blockquote><p><code><br />
div {padding: 10px 5px 3px 4px}<br />
div {padding: 10px 20px}<br />
</code></p></blockquote>
<h2>More CSS Tips</h2>
<p>Delete redundant blank spaces in your stylesheet, instead of coding this way:</p>
<blockquote><p><code><br />
h1 {<br />
border-bottom:1px dotted #ccc;<br />
margin-left: 10px;<br />
}<br />
</code></p></blockquote>
<p>Delete your line breaks and blank spaces, keep everything in one line:</p>
<blockquote><p><code><br />
h1{border-bottom:1px dotted #ccc;margin-left: 10px}<br />
</code></p></blockquote>
<p>- You don&#8217;t need to put a semi colon at the very end of the property right before the closing bracket.<br />
- Use shortened hex code whenever possible, for example, if you have the hex code #FFFFFF which is white, you can use #FFF instead.</p>
<p>Want to become a CSS master? I highly recommend the books below:</p>
<p style="text-align:center"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="175" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="id" value="Player_b1bdf3d6-aef5-474e-80f4-23269845415d" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&amp;MarketPlace=US&amp;ID=V20070822%2FUS%2Fj0f15-20%2F8010%2Fb1bdf3d6-aef5-474e-80f4-23269845415d&amp;Operation=GetDisplayTemplate" /><embed id="Player_b1bdf3d6-aef5-474e-80f4-23269845415d" type="application/x-shockwave-flash" width="500" height="175" src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&amp;MarketPlace=US&amp;ID=V20070822%2FUS%2Fj0f15-20%2F8010%2Fb1bdf3d6-aef5-474e-80f4-23269845415d&amp;Operation=GetDisplayTemplate" allowscriptaccess="always" bgcolor="#FFFFFF" quality="high"></embed></object> <noscript>&amp;lt;A HREF=&#8221;http://ws.amazon.com/widgets/q?ServiceVersion=20070822&amp;amp;amp;MarketPlace=US&amp;amp;amp;ID=V20070822%2FUS%2Fj0f15-20%2F8010%2Fb1bdf3d6-aef5-474e-80f4-23269845415d&amp;amp;amp;Operation=NoScript&#8221; mce_HREF=&#8221;http://ws.amazon.com/widgets/q?ServiceVersion=20070822&amp;amp;amp;MarketPlace=US&amp;amp;amp;ID=V20070822%2FUS%2Fj0f15-20%2F8010%2Fb1bdf3d6-aef5-474e-80f4-23269845415d&amp;amp;amp;Operation=NoScript&#8221;&amp;gt;Amazon.com Widgets&amp;lt;/A&amp;gt;</noscript></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jbwebdev.com/blog/speed-up-and-reduce-your-css-file/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Fancy CSS Content Box</title>
		<link>http://www.jbwebdev.com/blog/fancy-content-box-using-css/</link>
		<comments>http://www.jbwebdev.com/blog/fancy-content-box-using-css/#comments</comments>
		<pubDate>Wed, 05 Sep 2007 03:19:58 +0000</pubDate>
		<dc:creator>Jon B</dc:creator>
				<category><![CDATA[CSS Tutorials]]></category>
		<category><![CDATA[content box]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://jbwebdev.com/blog/2007/09/05/fancy-content-box-using-css/</guid>
		<description><![CDATA[Strictly for beginners only, if you are a CSS guru you probably know how to make a better css content box. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In lobortis. Nam molestie lacus sed metus lobortis rutrum. Curabitur est enim, ornare tristique, fermentum id, feugiat eget, elit. Pellentesque et metus id tellus pretium lacinia. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Strictly for beginners only, if you are a CSS guru you probably know how to make a better css content box.</strong></p>
<div style="border:1px dotted #ccc;background: #F7F7F7 url('http://jbwebdev.com/blog/tutorial_images/dogear.jpg') no-repeat ;background-position:100% 0%; padding:30px;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In lobortis. Nam molestie lacus sed metus lobortis rutrum. Curabitur est enim, ornare tristique, fermentum id, feugiat eget, elit. Pellentesque et metus id tellus pretium lacinia. Pellentesque lacus velit, gravida in, consectetuer quis, iaculis eget, leo. Css content box Morbi vitae eros. Phasellus magna. Proin risus odio, porttitor sit amet, tempor sit amet, viverra at, eros. Fusce ac ipsum quis sapien tincidunt dignissim. Ut aliquet tortor in augue condimentum tempus. Fusce placerat faucibus diam. Pellentesque ornare. Nunc diam.
<p />
<p>Vivamus viverra, ante vitae hendrerit convallis, ligula nulla laoreet diam, eu rutrum massa erat nec nunc. Donec ac mi. Vestibulum magna arcu, iaculis eu, venenatis id, facilisis convallis, quam. Phasellus sagittis adipiscing est. Nunc pretium sagittis felis. Vivamus euismod lectus vel risus. Cras a libero vitae mi commodo facilisis. Praesent nibh. Ut vehicula fermentum lectus. Nunc et odio cursus sapien adipiscing pharetra. Fusce ante. Nulla facilisi. Mauris tempor. Aliquam fringilla libero rhoncus mi. Nullam congue. </p></div>
<p>This tutorial will be pretty straight forward, there isn&#8217;t any real css tricks or hacks involved. But I really like the simplicity of this css content box and I thought I&#8217;d share this with all the aspiring designers out there. What you see above is actually a div with an image of a folded corner otherwise known as dogear for obvious reasons.<span id="more-17"></span></p>
<p><img src="http://jbwebdev.com/blog/tutorial_images/dogear.jpg" alt="Houston Web Design Sample Image" style="float:left;padding:3px;" />Here&#8217;s what the dogear image looks like by itself, as you can probably tell this image will be sitting on the upper right corner of our content box. Let&#8217;s do some basic coding, here is the css code for our content box.</p>
<pre style="color:#ff0000; font-size:14px;">
div.contentbox{
    background: #F7F7F7 url('images/dogear.jpg') no-repeat;
    background-position:100% 0%;
    border:1px dotted #ccc;
    padding:30px}
</pre>
<p>That&#8217;s basically it, we have a CSS class for our content box. I told you this was straight-forward! And now let&#8217;s take a look at the html code:
<pre style="color:#ff0000; font-size:14px;">
  &lt;div class="contentbox"&gt;

    Blah blah blah the contents will be placed here...blah blah blah..
  &lt;/div&gt;</pre>
<p>Pretty simple right??? Of course you can place the dogear on any of the corners by playing around with the CSS class for that image.</p>
<p><strong>*NOTE ~ This was tested on Firefox 3, IE6, IE8, and Opera not sure how it would look on Safari.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jbwebdev.com/blog/fancy-content-box-using-css/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
