<?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>devexp &#187; css</title>
	<atom:link href="http://www.devexp.eu/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devexp.eu</link>
	<description>DEVelopment EXPerience, shared with the world!</description>
	<lastBuildDate>Fri, 28 Oct 2011 12:07:45 +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>Basic tips and tricks: 4.Css</title>
		<link>http://www.devexp.eu/2009/09/01/basic-tips-and-tricks-4-css/</link>
		<comments>http://www.devexp.eu/2009/09/01/basic-tips-and-tricks-4-css/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 11:42:12 +0000</pubDate>
		<dc:creator>van Rumste Kenneth</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[objects]]></category>
		<category><![CDATA[properties]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.devexp.eu/?p=899</guid>
		<description><![CDATA[Hello everybody, I&#8217;m back with another version of basic tips and tricks. After having a talk with a client, about the basic on css, I thought it might be good to have an easy introduction. So let’s give it a &#8230; <a href="http://www.devexp.eu/2009/09/01/basic-tips-and-tricks-4-css/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Hello everybody, I&#8217;m back with another version of basic tips and tricks.</p>
<p>After having a talk with a client, about the basic on css, I thought it might be good to have an easy introduction.</p>
<p>So let’s give it a try. We&#8217;ll talk about:</p>
<ul>
<li> Why would you use css?</li>
<li>How to insert css in your html file</li>
<li>How css is written</li>
<li>Css on objects, classes and unique objects</li>
<li>Basic css properties and there values</li>
<li>The pseudo class</li>
<li>Where to find good information on css</li>
</ul>
<blockquote><p>Cascading Style Sheets (CSS) is a style sheet language used to describe the presentation (that is, the look and formatting) of a document written in a markup language.</p>
<p>CSS is designed primarily to enable the separation of document content (written in HTML or a similar markup language) from document presentation, including elements such as the colors, fonts, and layout.</p></blockquote>
<p><span id="more-899"></span></p>
<p><strong>Why would you use css?</strong></p>
<p>Whenever you create an html page without css, you will probably insert layout into it. But every object will have to get it&#8217;s layout specifications and that could be a hard time, especially if you have a lot of objects that need the same layout.<br />
You don&#8217;t know any examples of objects with the same layout?</p>
<ul>
<li> A menu with 4 or 5 buttons.</li>
<li>Buttons</li>
<li>A list</li>
<li>Different headings and titles</li>
<li>Paragraphs</li>
<li>&#8230;</li>
</ul>
<p>As you can see, I don&#8217;t need to think very hard to get different objects on which the same layout can be applied.</p>
<p>I guess you see my point why you could use the same css code over and over again, instead of rewriting it for each object in your page.<br />
And I&#8217;m not even talking about different pages or a whole website&#8230;</p>
<p><strong>How to insert css in your html file</strong></p>
<p>CSS is a file containing code you and that puts a layout on specific objects in your html file.</p>
<p>That code can be written in a html file within these tags</p>
<pre class="brush: xml; title: ; notranslate">
&lt;STYLE type=text/css&gt;                 &lt;/STYLE&gt;
</pre>
<p>Or in a css file that is included within the &lt;head&gt;&lt;/head&gt; tags.</p>
<p>Whatever css code you write in there will be applied to the code within that page.</p>
<p>If you are creating a website or more than one page, it might be more sufficient to use an include so you can reuse the same code over and over again.</p>
<p>In my opinion the only times you can or should use the &lt;style&gt; tags without an include is if you are sure you will never create another page with the same layout or for testing.</p>
<p>Just for readability alone, it might be better to separate it from your original html file and include it.</p>
<p><strong>How css is written</strong></p>
<p>The coding is quite simple, the only difficult thing to learn is: what properties are there? And on which object are they possible?</p>
<p>Css is always written in this way:</p>
<pre class="brush: css; title: ; notranslate">
selector [, selector2, ...]:pseudo-class { property: value; }
/* comment*/
</pre>
<p>This means:</p>
<p>Selector<br />
Is the object you are trying to set the layout for.  It&#8217;s possible to put more than one selector by separating them with a comma.<br />
Ex: paragraphs, header, etc&#8230;</p>
<p>Pseudo class<br />
The pseudo class is a bit tricky and I will talk about that at the end of my tutorial.<br />
Ex: hover, link, visited, etc&#8230;</p>
<p>Property<br />
This is the property you want to set for a specific selector.<br />
Ex: background-color, font-size, etc&#8230;</p>
<p>Value<br />
This is the value you set for the property.<br />
Ex: 1px, #f1f1f1, none, etc&#8230;</p>
<p>Comment<br />
Comment is written between /* */ tags and can be 1 or more lines in length.</p>
<p><strong>Css on objects, classes and unique objects</strong></p>
<p>The selector is actually more then only an id and can be defined in various ways. I guess the best way to show this is by using some examples.<br />
This will set all paragraphs in your page with the background color red.</p>
<pre class="brush: css; title: ; notranslate">
p { background-color: red;}
&lt;p&gt;blabla&lt;/p&gt;
</pre>
<p>This will set all paragraphs with the class nature with a background green.</p>
<pre class="brush: css; title: ; notranslate">
p.nature { background-color: green; }
&lt;p class=&quot;nature&quot;&gt;blabla&lt;/p&gt;
</pre>
<p>This will put a background color green on every paragraph and a brow background color on every font with class tree within the nature paragraph.</p>
<pre class="brush: css; title: ; notranslate">
p.nature { background-color: green; }
p.nature font.tree { background: brown; }
&lt;p class=&quot;nature&quot;&gt; blabla &lt;font class=&quot;tree&quot;&gt; more bla &lt;/font&gt;
&lt;/p&gt;
</pre>
<p>If you are willing to put a layout on 1 specific object you can do that by using the #. In this case, the paragraph sky will get a blue background.</p>
<pre class="brush: css; title: ; notranslate">
#sky { background-color: blue}
&lt;p id=&quot;sky&quot;&gt;blabla&lt;/p&gt;
</pre>
<p>This part is very important because you can save tons of time and code by using classes and ids.</p>
<p><strong>Basic css properties and there values</strong></p>
<p>There are quite a few different properties and not all properties can be used on any object.</p>
<p>It&#8217;s not very complex, but with some try and error you&#8217;ll find your way quite fast in the exciting world of properties. <img src='http://www.devexp.eu/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I&#8217;ll give some examples first from simple to a bit more difficult and there possible values.</p>
<pre class="brush: css; title: ; notranslate">
background-color: #cccccc;
/* #cccccc is a grey color and can also be replaced by the string 'grey' */

margin: 5px;
/* this will put a margin of 5 pixels round the element */

font-size: normal;
/* The font size can also be replaced with number of px,em or % */

background: #FFFFFF url(image.jpg) repeat-x scroll left top;
/* As you can see it is also possible to add more than 1 value to some properties. */

#FFFFFF:          /* Is the default color the background has */
url(image.jpg)    /* is the image that will be displayed on the background*/
repeat-x          /*  is the way it will be repeated in. x is horizontal, y is vertical*/
scroll            /* sets if the image will be fixed or scroll with the rest of the page*/
left top          /* is where the background starts*/

/* Those are the more complex properties but can easily split up into different css properties if it's too complex.*/
background-color:  #FFFFFF;
background-image:  url(image.jpg);
background-repeat:  repeat-x;
background-attachment: scroll;
background-position: top left;
</pre>
<p>More properties are possible and you can find them other websites that I got lined up in the last part: &#8216;where to find good information on css&#8217;</p>
<p>&lt;strong&gt;The pseudo class&lt;/strong&gt;</p>
<p>These are used to add special effects to the object they are put on.</p>
<p>In this example you will add different text colors when the link is visited, hovered or active</p>
<pre class="brush: css; title: ; notranslate">
a:link {color:#FF0000}     /* unvisited link */
a:visited {color:#00FF00}  /* visited link */
a:hover {color:#FF00FF}    /* mouse over link */
a:active {color:#0000FF}   /* selected link */
</pre>
<p>Other pseudo-classes are possible like: first-child, focus, lang, etc&#8230;</p>
<p><strong>Where to find good information on css</strong></p>
<p><a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets" target="_blank">General information </a><br />
<a href="http://jigsaw.w3.org/css-validator/" target="_blank">Test your css</a><br />
<a href="http://www.w3.org/Style/CSS/" target="_blank">Official w3c website </a></p>
<p>Off course this doesn&#8217;t cover the whole story as this is only a basic guide.</p>
<p>I just hope you have some advantage from reading this.</p>
<p>C u next time. K.</p>
<div class="shr-publisher-899"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.devexp.eu/2009/09/01/basic-tips-and-tricks-4-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>enhance your css</title>
		<link>http://www.devexp.eu/2009/03/19/enhance-your-css/</link>
		<comments>http://www.devexp.eu/2009/03/19/enhance-your-css/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 08:43:29 +0000</pubDate>
		<dc:creator>van Rumste Kenneth</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[alphabetize]]></category>
		<category><![CDATA[clean]]></category>
		<category><![CDATA[enhance]]></category>

		<guid isPermaLink="false">http://www.devexp.eu/?p=445</guid>
		<description><![CDATA[Writing css code isn&#8217;t that hard, it&#8217;s easy, clean but can be a pain in the ass to keep it readable when you have hundreds or maybe thousands of lines of code. When sticking to specific rules it can all &#8230; <a href="http://www.devexp.eu/2009/03/19/enhance-your-css/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Writing css code isn&#8217;t that hard, it&#8217;s easy, clean but can be a pain in the ass to keep it readable when you have hundreds or maybe thousands of lines of code.</p>
<p>When sticking to specific rules it can all be made a bit more readable:</p>
<ul>
<li>always use a reset of some sort</li>
<li>alphabetize</li>
<li>write comment</li>
<li>consistency</li>
<li>start in the right place</li>
<li>Understanding Class and ID</li>
<li>Power of li</li>
<li>CSS Debugging Tools</li>
</ul>
<p>read the full text to enhance your css code</p>
<h5>5 Ways to Instantly Write Better CSS (click <a href="http://net.tutsplus.com/tutorials/html-css-techniques/5-tips-to-writing-better-css/" target="_blank">here </a>)</h5>
<h5>20 Useful CSS Tips (click <a href="http://www.hongkiat.com/blog/20-useful-css-tips-for-beginners/" target="_blank">here)</a></h5>
<div class="shr-publisher-445"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.devexp.eu/2009/03/19/enhance-your-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>layout inspiration</title>
		<link>http://www.devexp.eu/2009/02/05/layout-inspiration/</link>
		<comments>http://www.devexp.eu/2009/02/05/layout-inspiration/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 12:00:29 +0000</pubDate>
		<dc:creator>van Rumste Kenneth</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://www.devexp.eu/?p=363</guid>
		<description><![CDATA[A lot of programmers seem to hate the layout part of the job. Well if you work in a big company you probably won’t do the two jobs, but in some cases, or when you work in a small company &#8230; <a href="http://www.devexp.eu/2009/02/05/layout-inspiration/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><img class="alignright size-full wp-image-364" title="design" src="http://www.devexp.eu/wp-content/uploads/2009/02/design.jpg" alt="design" width="200" height="132" />A lot of programmers seem to hate the layout part of the job. Well if you work in a big company you probably won’t do the two jobs, but in some cases, or when you work in a small company (ex 1-5 employees) you have to do them both (layout and programming). And for those guys, it isn’t always easy to have inspiration right away, well there is a solution.</p>
<p>Here are a few sites that have a huge portfolio with nice layout sites. You can grab the css in some cases, and that’s the interesting part of it.</p>
<p>Take a look at them.<br />
<a href="http://cssmania.com/" target="_blank">cssmania</a><br />
<a href="http://cssremix.com/" target="_blank">cssremix/</a><br />
<a href="http://www.cssimport.com/" target="_blank">cssimport</a><br />
<a href="http://www.designsnack.com/" target="_blank">designsnack</a><br />
Anyone got a better idea to get inspiration? Feel free to add your way of working in the comments.</p>
<div class="shr-publisher-363"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.devexp.eu/2009/02/05/layout-inspiration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>basic tips and tricks: 1. Basic HTML</title>
		<link>http://www.devexp.eu/2008/11/03/basic-tips-and-tricks-1-basic-html/</link>
		<comments>http://www.devexp.eu/2008/11/03/basic-tips-and-tricks-1-basic-html/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 18:02:52 +0000</pubDate>
		<dc:creator>van Rumste Kenneth</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[basic]]></category>
		<category><![CDATA[lessons]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.devexp.eu/?p=230</guid>
		<description><![CDATA[There seems to be a big lack of knowledge in the field of basic web design, therefore I decided to write a step-by-step web design tutorial. Every post will be a new chapter in development; I will try to give &#8230; <a href="http://www.devexp.eu/2008/11/03/basic-tips-and-tricks-1-basic-html/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>There seems to be a big lack of knowledge in the field of basic web design, therefore I decided to write a step-by-step web design tutorial. Every post will be a new chapter in development; I will try to give you a fresh view on what really matters and is interesting for starting users. We&#8217;ll start with the basics like tags in html and go on with CSS; the future will tell us how far we get. The point is to share my experience with you guys, not to teach you every detail, if you are completely fresh to HTML and CSS; you better take a look at w3schools first. (<a href="http://www.w3schools.com/">http://www.w3schools.com</a>)</p>
<p>So let&#8217;s start off with our first post: BASIC HTML</p>
<p>First off all, if you want to learn HTML and CSS, try not to use the design view of programs to often. It&#8217;s very easy to create simple pages with those design views, but you won&#8217;t learn the code, and that&#8217;s the important stuff you need to know. So let&#8217;s take a look at basic fresh html code generated by Dreamweaver:</p>
<pre class="brush: xml; title: ; notranslate">
&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;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>So what is really important in this example?</p>
<p>As you can see, html is completely built up with tags and every tag is written inside the tag it is containing to. You can see that the head and body tag are within the html tag, because the html tag is the whole page and the header and body are in it.</p>
<p>The head tags are simply to give information like the name of the page (now ‘Untitled Document&#8217;) and include the necessary files (that&#8217;s for later). The real important one is the body tag because that is what the user will see. Whatever you will write within these tags, will be displayed on the screen of the person that visits your website.</p>
<p>So if we write &lt;body&gt;test&lt;/body&gt; the user will get an empty, blank screen with test written on it. Easy, isn&#8217;t it? So now you can write whatever you want in the page. The tricky part is the layout of the text.</p>
<p>Layout of a text is also done with the tags as they are written in the first example. So when you want to write for example this is <strong>bold</strong> this is <em>italic</em> and this is <span style="text-decoration: underline;">underlined</span>, you will have to write this:</p>
<p>This is &lt;b&gt;bold&lt;/b&gt; this is &lt;i&gt;italic&lt;/i&gt; and this is &lt;u&gt;underlined&lt;/u&gt;</p>
<p>As you can see every type of layout has its own specific layout tags b for bold, I for italic and u for underline. When using tags, be sure that you always close the tags just as in the example.</p>
<p>Like there are tags for text layout, there are also tags for line breaks and paragraphs. When you are writing long texts with paragraphs in it, always try to write your text within the &lt;p&gt;&lt;/p&gt; tags. Don&#8217;t use 2 &lt;br /&gt; tags instead; this is a very often made mistake. This is for the simple reason that &lt;br /&gt; isn&#8217;t the same as a paragraph, it doesn&#8217;t react the same way for every user, a paragraph tag does. So use your &lt;br /&gt; tags wisely within the &lt;p&gt; tags like so:</p>
<pre class="brush: xml; title: ; notranslate">

This is a long text and when we go to a new line within the paragraph we use a line break
So this will be displayed on a new line within the same paragraph

This is a second paragraph that will be displayed
</pre>
<p>This will result in:</p>
<p>This is a long text and when we go to a new line within the paragraph we use a line break<br />
So this will be displayed on a new line within the same paragraph</p>
<p>This is a second paragraph that will be displayed</p>
<p>The last thing for today is the headings which are used to display titles. Just like the paragraph tag you can use the heading tag: &lt;h1&gt;&lt;/h1&gt;&lt;h2&gt;&lt;/h2&gt;. H stands for heading and the numbers are the scale that the heading is displayed in, 1 being the biggest and 6 being the smallest.</p>
<p>That was it for today my friends, this was the easiest part, in next lessons we will talk about topics like:</p>
<p>DIV vs. Tables<br />
CSS and how to use it properly<br />
debugging and testing<br />
and much more</p>
<div class="shr-publisher-230"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.devexp.eu/2008/11/03/basic-tips-and-tricks-1-basic-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tables: use or don&#8217;t use</title>
		<link>http://www.devexp.eu/2008/09/16/tables-use-or-dont-use/</link>
		<comments>http://www.devexp.eu/2008/09/16/tables-use-or-dont-use/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 16:38:32 +0000</pubDate>
		<dc:creator>van Rumste Kenneth</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[tfoot]]></category>
		<category><![CDATA[thead]]></category>

		<guid isPermaLink="false">http://blog.mg-x.eu/?p=50</guid>
		<description><![CDATA[When creating a more complex table the last few days, I noticed that it is very useful to create them with the different additional elements: tbody, thead, tfoot, col, th, td, etc… In order to create a table in your &#8230; <a href="http://www.devexp.eu/2008/09/16/tables-use-or-dont-use/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"   DefSemiHidden="true" DefQFormat="false" DefPriority="99"   LatentStyleCount="267"> <w:LsdException Locked="false" Priority="0" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Normal" /> <w:LsdException Locked="false" Priority="9" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="heading 1" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8" /> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9" /> <w:LsdException Locked="false" Priority="39" Name="toc 1" /> <w:LsdException Locked="false" Priority="39" Name="toc 2" /> <w:LsdException Locked="false" Priority="39" Name="toc 3" /> <w:LsdException Locked="false" Priority="39" Name="toc 4" /> <w:LsdException Locked="false" Priority="39" Name="toc 5" /> <w:LsdException Locked="false" Priority="39" Name="toc 6" /> <w:LsdException Locked="false" Priority="39" Name="toc 7" /> <w:LsdException Locked="false" Priority="39" Name="toc 8" /> <w:LsdException Locked="false" Priority="39" Name="toc 9" /> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption" /> <w:LsdException Locked="false" Priority="10" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Title" /> <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font" /> <w:LsdException Locked="false" Priority="11" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtitle" /> <w:LsdException Locked="false" Priority="22" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Strong" /> <w:LsdException Locked="false" Priority="20" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Emphasis" /> <w:LsdException Locked="false" Priority="59" SemiHidden="false"    UnhideWhenUsed="false" Name="Table Grid" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text" /> <w:LsdException Locked="false" Priority="1" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="No Spacing" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 1" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 1" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 1" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 1" /> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision" /> <w:LsdException Locked="false" Priority="34" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="List Paragraph" /> <w:LsdException Locked="false" Priority="29" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Quote" /> <w:LsdException Locked="false" Priority="30" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Quote" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 1" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 1" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 1" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 1" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 1" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 2" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 2" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 2" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 2" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 2" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 2" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 2" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 2" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 2" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 3" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 3" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 3" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 3" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 3" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 3" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 3" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 3" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 3" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 4" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 4" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 4" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 4" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 4" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 4" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 4" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 4" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 4" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 5" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 5" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 5" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 5" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 5" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 5" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 5" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 5" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 5" /> <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 6" /> <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 6" /> <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 6" /> <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6" /> <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6" /> <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 6" /> <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 6" /> <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6" /> <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6" /> <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6" /> <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 6" /> <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 6" /> <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 6" /> <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 6" /> <w:LsdException Locked="false" Priority="19" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis" /> <w:LsdException Locked="false" Priority="21" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis" /> <w:LsdException Locked="false" Priority="31" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference" /> <w:LsdException Locked="false" Priority="32" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Reference" /> <w:LsdException Locked="false" Priority="33" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Book Title" /> <w:LsdException Locked="false" Priority="37" Name="Bibliography" /> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading" /> </w:LatentStyles> </xml><![endif]--> <span lang="EN-US">When creating a more complex table the last few days, I noticed that it is very useful to create them with the different additional elements: tbody, thead, tfoot, col, th, td, etc…<br />
In order to create a table in your webpage, it is not required to use these elements but when using css and trying to put a layout on a table, they are very handy.<br />
For example you can, by using the display property, specify the function of all the elements:</span></p>
<ul>
<li>TABLE { display: table }</li>
<li>TR { display: table-row }</li>
<li>THEAD { display: table-header-group }</li>
<li>TBODY { display: table-row-group }</li>
<li>TFOOT { display: table-footer-group }</li>
<li>COL { display: table-column }</li>
<li>COLGROUP { display: table-column-group }</li>
<li>TD, TH { display: table-cell }</li>
<li>CAPTION { display: table-caption }</li>
</ul>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"> </span></p>
<p class="MsoNormal"><span lang="EN-US">TFOOT will always be displayed as the bottom row of a table and most of the time contains totals.<br />
THEAD contains the header information of a table.</span></p>
<p class="MsoNormal"><span lang="EN-US">Not really a very interesting post, but I just love it when using a bit more complex css on tables. It makes the tables easy to manage and they are tons more readable in code.</span></p>
<p class="MsoNormal"><span lang="EN-US">The thing me and my colleagues noticed is that tables aren’t very good for web design; they are created to display data and not a whole site or newsletter. A few years ago everybody started creating sites in tables because they were easy to set up, and looked great in a few hours. But the horrible time starts when you need to change layout after worth. In the most cases you’ll end up with a table that contains a table that contains another table. I guess you get the picture and that they are very difficult to manage. By experience we can tell that they are not very layout friendly and readability sucks. </span></p>
<p class="MsoNormal"><span lang="EN-US">We started using divs and with good css you can do anything.<br />
Take a look at it, we recommend it.</span></p>
<div class="shr-publisher-50"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.devexp.eu/2008/09/16/tables-use-or-dont-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

