<?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>Premier Web Templates&#187; CSS</title>
	<atom:link href="http://premierwebtemplates.com/blog/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://premierwebtemplates.com/blog</link>
	<description>Web design tips and techniques for anyone who runs a web site or blog</description>
	<lastBuildDate>Wed, 10 Dec 2008 04:50:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Planning Your Stylesheet &#8211; The Definitive Guide</title>
		<link>http://premierwebtemplates.com/blog/css/planning-your-stylesheet-the-definitive-guide/</link>
		<comments>http://premierwebtemplates.com/blog/css/planning-your-stylesheet-the-definitive-guide/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 08:06:07 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[accessibility]]></category>
		<category><![CDATA[stylesheets]]></category>

		<guid isPermaLink="false">http://premierwebtemplates.com/blog/?p=142</guid>
		<description><![CDATA[The more we rely upon CSS, the larger and more complex stylesheet files become. Planning and organising your stylesheet is essential to creating a lean, manageable website. There are many ways of organising CSS code but the following are best practice...]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>The more we rely upon CSS, the larger and more complex stylesheet files become. Planning and organising your stylesheet is essential to creating a lean, manageable website. There are many ways of organising CSS code but the following are best practice&#8230;<span id="more-142"></span></p>
<h4>Comment your stylesheet</h4>
<p>Commenting your stylesheet makes it much easier to find the information or the commands you&#8217;re looking for.</p>
<p>Meaningful comments include:</p>
<ul>
<li><strong>Last updated</strong> &#8211; This information can quickly let developers know about recent changes made to the file:<br />
<code>/* WEBCREDIBLE<br />
Updated: Thu 1 Jan 2008<br />
Author: John Doe<br />
Updates: Add new section 'Forum'<br />
––––––––––––––––––––––––––––––––––––––––––––––––*/</code></li>
<li><strong>References</strong> &#8211; Comments can also be used as a quick reference for the main style guides applied throughout the site:<br />
<code>/* COLORS<br />
Body Background: #FFFFFF;<br />
Main Text: #000000;<br />
Link: #F0F0F0;<br />
etc ...<br />
*/</code>
</li>
<li><strong>Organisation</strong> &#8211; Use comments to identify the different sections of the stylesheet:<br />
<code>/* =HEADER<br />
––––––––––––––––––––––––––––––––––––––––––––––––*/</code></p>
<p><code>/* =FOOTER<br />
––––––––––––––––––––––––––––––––––––––––––––––––*/</code>
</li>
<li> <strong>Reminders and notes</strong> &#8211; Leaving reminders and notes for yourself and other developers can help avoid confusion later:<br />
<code>/* The width is overwritten for IE 6 in: cssIE.css */<br />
    div {width: 150px;}</code>
</li>
</ul>
<h4>Define general rules and main classes at the top of the stylesheet</h4>
<p>Set the styles of generic HTML elements, for example:<br />
<code>body<br />
    {<br />
        background: #FFF;<br />
        font: Arial, sans-serif 75%;<br />
    }<br />
    h1 {<br />
        font-size: 1.2em;<br />
        color: #000;<br />
    }<br />
    h2 {<br />
        font-size: 1em;<br />
        color: #F0F0F0;<br />
    }<br />
    img {border: 0;}</code></p>
<p>Then, list the classes that will be most commonly used across the site, for example:<br />
<code>.hide<br />
    {<br />
        position: absolute;<br />
        left: -9000px;<br />
    }<br />
    .required {<br />
        background: url(#) no-repeat 100% 0;<br />
    }<br />
    .fl<br />
    {<br />
        float: left;<br />
    }<br />
    .fr<br />
    {<br />
        float: right;<br />
    }</code></p>
<h4>Order the CSS in the same order as the HTML</h4>
<p>The order of the HTML should be used to determine the order of the CSS sections. CSS files can sometimes be large and commands difficult to find. Having some correlation between the HTML and CSS file makes it easier to locate how an element is being styled.</p>
<h4>Know when to use elements, ids and classes</h4>
<p>Using the correct selector type means your CSS file can be significantly reduced in size:</p>
<ol>
<li><strong>Elements</strong> &#8211; Elements such as body, (&lt;body&gt;), paragraphs, (&lt;p&gt;) and headings, (&lt;h1&gt;,&lt;h2&gt; etc.) should be used to define general rules</li>
<li><strong>IDs</strong> &#8211; These are unique identifiers and should only be used once within a document. IDs should be used to style major structural sections of a web page such as the header or the footer.</li>
<li><strong>Classes</strong> &#8211; These can be used on any type of HTML element.</li>
</ol>
<p>Too many ids or classes can overload the HTML and the CSS files unnecessarily. Try and define as many rules as possible by referencing elements and/or ids by nesting the selectors.</p>
<p>Imagine the following HTML code:<br />
<code>&lt;ul id="nav"&gt;<br />
&lt;li&gt;&lt;a href="#"&gt;Item 1&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</code></p>
<p>Because each of the list items has a common parent, descendant selectors can simplify the CSS markup as follow:</p>
<p><code>#nav { properties listed here }<br />
#nav li { properties listed here }<br />
#nav li a { properties listed here }</code></p>
<h4>Name classes and ids logically</h4>
<p>Don&#8217;t name classes and ids based on their color or position as these may change in time. Try and give them a name that&#8217;s likely to remain relevant over time. Also, use hyphens ahead of underscores as certain old browsers have a hard time understanding the latter.</p>
<p>Use a common naming system for your classes and ids. It will save a lot of time and confusion when developing, debugging and updating documents.</p>
<h4>Nest CSS selectors</h4>
<p>By nesting CSS selectors (i.e. using more than one CSS selector in one command) we can apply styles by navigating the HTML document tree. For example, to apply a colour of red to all paragraphs within a div, we can use the following rule:<br />
<code>div p {color: red;}</code></p>
<h4>Take advantage of inheritance</h4>
<p>Some CSS commands inherit from their parents whereas others don&#8217;t. The use of nesting means you don&#8217;t have to declare the same properties over and over again.</p>
<p>Generally speaking, text-related CSS commands (e.g. font-size, color) are inherited by descendant elements, whereas layout-related commands (e.g. float, width) aren&#8217;t inherited .</p>
<h4>Group selectors with common CSS declarations</h4>
<p>You can avoid specifying the same set of properties several times by grouping the selectors that share the same CSS declarations together. For example:<br />
<code>h1, h2, h3<br />
{<br />
color: black;<br />
padding: .2em;<br />
}</code></p>
<blockquote><p>This article was written by Brigitte Simard. Brigitte&#8217;s crazy about accessibility and CSS &#8211; so crazy that she works for Webcredible, an industry leading <a href="http://www.webcredible.co.uk/" target="_blank">user experience consultancy</a>, helping to make the Internet a better place for everyone. She spends much of her time working on the world&#8217;s <a href="http://www.webcredible.co.uk/services/accessible-cms.shtml" target="_blank">most accessible CMS</a> and is very good at <a href="http://www.webcredible.co.uk/services/css-training-fund.shtml" target="_blank">CSS training</a>.</p></blockquote>
Note: There is a rating embedded within this post, please visit this post to rate it.
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://premierwebtemplates.com/blog/css/planning-your-stylesheet-the-definitive-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing Articles With Style &#8211; Create Quality Articles With CSS</title>
		<link>http://premierwebtemplates.com/blog/css/writing-articles-with-style-create-quality-articles-with-css/</link>
		<comments>http://premierwebtemplates.com/blog/css/writing-articles-with-style-create-quality-articles-with-css/#comments</comments>
		<pubDate>Sat, 18 Oct 2008 04:55:47 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[cascading style sheets]]></category>
		<category><![CDATA[example html code]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[html document]]></category>
		<category><![CDATA[html tags]]></category>
		<category><![CDATA[style sheet]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://premierwebtemplates.com/blog/?p=128</guid>
		<description><![CDATA[Writing your quality articles using Cascading Style Sheets (CSS) will insure that your articles will be both easy to read and aesthetically pleasing to the viewer.

A CSS style sheet allows the HTML code for your articles to be cleaner, table-less, easily customizable, and "liquid."

Removing the display attributes of your articles from the HTML code allows you to concentrate on using the HTML for organizing your document's content.]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>Writing your quality articles using Cascading Style Sheets (CSS) will insure that your articles will be both easy to read and aesthetically pleasing to the viewer.</p>
<p>A CSS style sheet allows the HTML code for your articles to be cleaner, table-less, easily customizable, and &#8220;liquid.&#8221;</p>
<p>Removing the display attributes of your articles from the HTML code allows you to concentrate on using the HTML for organizing your document&#8217;s content.<span id="more-128"></span></p>
<p>When you use CSS, a new approach is possible to writing your articles for the Web:</p>
<ul>
<li>First, you write your article in a very basic HTML document, using simple HTML code. At this stage, use only the most common HTML tags. Focus on organizing your article&#8217;s content first.</li>
<li>Next, you identify parts of your document for special display formatting.</li>
<li>Finally, you define the formatting in the CSS file.</li>
</ul>
<p>Once you work through this process, you can reuse both the HTML document and the CSS file as templates for your future, quality articles.</p>
<p>This article will provide the tips, tricks, and sample code to give you a head start in creating your own quality articles and templates using CSS. If this all seems complex and intimidating at first, don&#8217;t despair &#8211; read on. I will explain the basic HTML and CSS terminology throughout the article.</p>
<h4>THE BASIC HTML DOCUMENT</h4>
<p>The basic HTML document is devided into several sections: html, head, and body.</p>
<p>Tags are used to demarcate document sections, or &#8220;elements.&#8221; Content lies between the tags. For example, the article you are now reading lies between the body tags of an html document.</p>
<p>Tags usually exist in pairs, a start tag and and end tag. The start tag is surrounded by less-than and greater-than angle brackets. An end tag is bracketed with the same symbols but the first character of the tag is a forward slash (/). For example, HTML code for a paragraph element would include the start and end &#8220;p&#8221; tags with the content sandwiched between the two.</p>
<p>The basic tag pairs found in web pages are:</p>
<ul>
<li><strong>html</strong> &#8211; These tags tell a browser that this is an HTML document and define the start and end of the document.</li>
<li><strong>head</strong> &#8211; The head element can contain information about the document. Although the browser does not present the information to a viewer, the information can be &#8220;seen&#8221; and used by search engines.</li>
<li><strong>title</strong> &#8211; The title tags define the title element that will be used by a browser for the document&#8217;s title.</li>
<li><strong>body</strong> &#8211; The document&#8217;s content is placed between the body tags.</li>
</ul>
<p>In HTML 4.01, not all tags exist in pairs. The &#8220;!DOCTYPE&#8221; and &#8220;meta&#8221; tags do not use an end tag, for instance.</p>
<p>The first line of code in the basic document is the Document Type Definition (DTD). The !DOCTYPE tag tells the browser which HTML or XHTML specification the document uses. HTML 4.01 specifies three document types: Strict, Transitional, and Frameset.</p>
<p>The first meta tag in the basic HTML document provides information about how the page-content characters are encoded so that a browser can interpret them correctly.</p>
<p>If you want your articles to be widely seen on the Internet, you need to be particularly interested in the meta tags for keywords and description. These can be seen and used by search engines.</p>
<p>Use the &#8220;keyword name&#8221; and its related &#8220;content&#8221; in a meta tag to list your keywords or keyword phrases.</p>
<p>Keywords ought to be appropriate for the article content. They should also reflect what internet surfers actually type into a search engine&#8217;s query box when hunting for the information you are offering.</p>
<p>Keyword research is a study in itself. Freeware is available on the Internet that can help you determine the best keywords to use in your article and keyword list. Keywords or keyword phrases within the meta tag need to be separated from each other with a comma.</p>
<p>Although not all search engines will utilize the description meta tag for their search results, you still need to include a good description for those that do.</p>
<p>If you had just a few characters to describe your article, or to entice a surfer to select yours from the results of a search, what would you write? What you would write is what should go into the description.</p>
<h4>USING CASCADING STYLE SHEETS (CSS)</h4>
<p>I have already suggested several reasons why today&#8217;s preferred method of creating web pages is to separate a page&#8217;s content from it&#8217;s display properties. It&#8217;s time for a demonstration of how this can be accomplished.</p>
<p>In the past, HTML tags included attributes to define how the content was to be displayed by a browser.</p>
<p>Today, CSS is used to concentrate these attributes in a single, separate file. Simple HTML code specifies &#8220;what&#8221; content is to be displayed; the CSS code defines &#8220;how&#8221; the content is to be displayed.</p>
<p>Before CSS can be used to format an HTML document, the name and location of the CSS file must be known to the browser. The browser gets this information through the HTML &#8220;link&#8221; tag that is coded between the head tags.</p>
<p>Once the CSS file is linked, the browser will check the CSS file for display attributes. For example, if the browser encounters an &#8220;h1&#8243; tag in the HTML code, it will check the CSS file for &#8220;h1&#8243; formatting. Here is the &#8220;h1&#8243; formatting information I included in the article.css file I use for my article titles:</p>
<pre>h1
{
  color: maroon;
  text-align: center;
}</pre>
<p>When a browser encounters an &#8220;h1&#8243; tag in the HTML code, it would display the title centered and maroon.</p>
<h4>SELECTING CONTENT FOR FORMATTING</h4>
<p>Content formatting can be applied to an HTML document only after the content to be formatted has been identified to the browser. An easy way to do this is to place a &#8220;class&#8221; or &#8220;id&#8221; attribute within a start tag. The same class name can be used many times on a web page; each id name should be used just once per page.</p>
<p>Once content is identified, the class or id name can be referred to in the CSS file and the browser will apply any formatting attributes found there.</p>
<h4>Selections Using Class Names</h4>
<p>As an example of using the class name, I used the following CSS for in an article about writing ad headlines. In the HTML code, I used divisions tags with a class name of &#8220;headline&#8221; to demarcate the headline text. I added the following code to the CSS file:</p>
<pre>.headline
{
  font-size: 24px;
  color: red;
  font-weight: bold;
  text-align: center;
}</pre>
<p>In the CSS file, I specified the font-size, color, font-weight, and text-align attributes. The class name was added to the CSS file by preceeding the name with a period. I used a semicolon to separate attributes in the list. The HTML and CSS code combine to produce a bold, 24px, red headline centered in the HTML page.</p>
<p>It should be noted that there are some basic HTML tags that are their own class names and do not require a preceding period in the CSS file. These include p, h, body, li, and others. That being said, these tags can be modified by appending an additional class name to them. For example, if I wanted to make the next paragraph blue, I could add a &#8220;blue&#8221; class attribute to the opening HTML &#8220;p&#8221; tag and then add this code to the CSS file:</p>
<pre>p.blue
{
  color: #0000FF;
}</pre>
<p>This would be a blue paragraph if this HTML were displayed in color.</p>
<h4>Selections Using ID Names</h4>
<p>The CSS syntax for an ID is a little different from that used for a class. In the CSS file, ID names are proceeded with a pound sign (#). The example below &#8220;floats&#8221; my 288px by 59px logo image to the left of the following paragraph: the text flows around the image. I added an ID attribute with a name of &#8220;logo&#8221; to the HTML &#8220;div&#8221; start tag I used to demarcate the image information. Here is the CSS code I used:</p>
<pre>#logo
{
  float: left;
}</pre>
<p>The HTML and CSS code would combine to produce the following results:</p>
<p>~~~LOGO WOULD FLOAT HERE~~ Text here would flow around the logo.</p>
<h4>Selections Using Span Tags</h4>
<p>If you want to format just a bit of content, you can use span tags</p>
<p>In the article.css file, I defined a background-color attribute for a &#8220;highlight&#8221; class that will put a yellow background behind selected text. For the next paragraph, I used span tags to bracket the text, &#8220;separate attributes.&#8221; Here is the CSS code:</p>
<pre>.highlight
{
  background-color: yellow;
}</pre>
<p>As a result, and if this were in color, the phrase &#8220;separate attributes&#8221; would be highlighted with a yellow background.</p>
<h4>LOOKS AND LAYOUT</h4>
<p>A careful selection of the &#8220;global&#8221; characteristics used for the body element of your web page will insure that your articles will be both easy to read and aesthetically pleasing to the viewer. These characteristics include font, font color, page background color, and page margins.</p>
<p>I use the &#8220;body&#8221; code in the CSS file to define the default body display attributes. Here is the CSS body code from the article.css file:</p>
<pre>body
{
  background: #fffef2;
  color: black;
  line-height: normal;
  margin: 3% 25% 3% 25%;
}</pre>
<h4>Fonts</h4>
<p>In the CSS body code, I specify the font family I want to use. The first font listed, Verdana, will be used by a browser if it exists on a viewer&#8217;s PC. If Verdana is not available, the other fonts will be checked, in order. If none of the specific fonts are available, the browser will default to any available sans-serif font.</p>
<p>If you use a commonly available font/font-family for your articles, the chances are good that a reader will see the article as expected. Otherwise, your article might not look the way it should.</p>
<p>Verdana was designed for easy readability on computer monitors and, for this reason, is my font of choice. Since Verdana is commonly available on PCs, using this as the default font will also increase the likelihood that my article text will be displayed as I intended.</p>
<h4>Page Background</h4>
<p>I set the background color to a light color, the font color to black, and the line height, or spacing between lines, to normal. The background color I like to use (#fffef2) shows colored text and graphics to good advantage.</p>
<h4>Margins</h4>
<p>I like to adjust the article on my page to show content in roughly the middle half of the page. I think it is easier for the eye to process than content that goes edge to edge. I use the CSS margin attribute to adjust this. The margin attribute defines the top, right, bottom, and left margins respectively (margin: top right bottom left).</p>
<p>In the CSS body code above, I set the left and right margins to 25% of the available display width. Using 25% places about 60 characters per line of text on my 1024&#215;768 pixel full-screen display. I also set a small 3% margin above and below the content.</p>
<h4>Lists</h4>
<p>If you use a list in your article, you can use the CSS file to customize the way your list looks. Two important considerations of list design are the list bullet and the spacing between list elements. The example below shows how to change the bullet graphic and element spacing of an unordered list:</p>
<pre>li
{
  list-style-position: inside;
  list-style-image: url (http://www.elizabethadamsdirect.com/articles/images/small_blob.gif);
  list-style-type: none;
  margin-bottom: 1em;
}</pre>
<p>I added two list attributes to customize the list:</p>
<ol>
<li><strong>list-style-image</strong> &#8211; used to specify the URL to a bullet image (not shown below), and</li>
<li><strong>margin-bottom</strong> &#8211; used to provide some extra space between list items.</li>
</ol>
<p>For a complete description of possible list attributes &#8211; as well as great tutorials on using HTML and CSS &#8211; you can visit <a href="http://www.w3schools.com" target="_blank">http://www.w3schools.com</a></p>
<h4>Entity Names</h4>
<p>Some characters have special meaning in HTML documents. When you want to use these characters in your text, you can use their &#8220;entity names&#8221; to prevent browsers from misinterpreting them for HTML code. I used entity names extensively for my web version of this article to display many symbols, particularly in the code samples.</p>
<p>Most commonly, I use entity names in my HTML code for quote marks. By doing this, I get the look and feel I want in my text when I use quotes. For example, when I want to use distinctly different left and right quote-marks in my web-based titles and headlines, I use specific entity names to do so.</p>
<p>Careful attention to the entity names you use can add &#8220;that extra touch of class&#8221; to your articles.</p>
<p>For HTML 4.01, there are entity names for both ASCII and extended characters and symbols. I use an entity name to insert a copyright symbol at the bottom of all of my web pages. You can find a complete list of entity names at w3schools.</p>
<p>I use Dreamweaver 8 for my HTML and CSS editing. With Dreamweaver, I can validate my code as I write it. I have optioned the validator to warn me when entity name substitution might be appropriate.</p>
<h4>Validating Your HTML and CSS Code</h4>
<p>I like to write valid HTML code for the &#8220;!DOCTYPE&#8221; version I use. If you click on the w3 validation icon at the bottom of my full-color, web-site version of this article, you will see that the HTML code for the article is valid and error free. You can use the validator accessible through w3schools to check your code, too.</p>
<h4>CONCLUSIONS</h4>
<p>When you separate your article&#8217;s content from the code browsers use to display your article, you can focus on using simple, basic HTML code to organize your content. A Cascading Style Sheets(CSS) can accomplish the separation.</p>
<p>A CSS style sheet allows the HTML code for your articles to be cleaner, table-less, easily customizable, and &#8220;liquid.&#8221;</p>
<p>You can look at one of my recently published articles to see the results of using the techniques outlined in this article. The article is &#8220;Profitable Ads: How to Write Ads that Pull.&#8221;</p>
<blockquote><p>Elizabeth Adams has been writing direct sales copy since the early 1990&#8217;s, when she employed several people to handle mailings and product fulfillment for her postcard marketing business. Elizabeth learned in direct mail how to tweak her sales copy on the run and improve her sales conversion by as much as 400% in only one mailing. She learned how to write a great headline and effective sales copy. Get &#8220;Great Headlines — Instantly&#8221; today to learn how to do for yourself what Elizabeth learned in the trenches: <a href="http://www.elizabethadamsdirect.com/greatheadlines/" target="_blank">http://www.elizabethadamsdirect.com/greatheadlines/</a><br />
<a href="http://www.ArticleCity.com/" target="_blank"></a></p></blockquote>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://premierwebtemplates.com/blog/css/writing-articles-with-style-create-quality-articles-with-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using CSS Instead of Tables</title>
		<link>http://premierwebtemplates.com/blog/css/using-css-instead-of-tables/</link>
		<comments>http://premierwebtemplates.com/blog/css/using-css-instead-of-tables/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 00:16:44 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[css style sheet]]></category>
		<category><![CDATA[messy code]]></category>
		<category><![CDATA[nested tables]]></category>
		<category><![CDATA[tables]]></category>
		<category><![CDATA[tabular data]]></category>
		<category><![CDATA[web page layout]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://premierwebtemplates.com/blog/?p=81</guid>
		<description><![CDATA[Most web developers and designers will tell you to stay away from tables when developing web sites, of course there are some exceptions, like forms, and data. Instead they will tell you to use CSS. When designing your web site you should use CSS, along with the HTML tag. Now, you may be asking, why? The reasons are below!]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>The following article will show you why to stay away from tables when designing a site.</p>
<p>Most web developers and designers will tell you to stay away from tables when developing web sites, of course there are some exceptions, like forms, and data. Instead they will tell you to use <abbr title="Cascading Style Sheet">CSS</abbr>. When designing your web site you should use CSS, along with the HTML tag. Now, you may be asking, why? The reasons are below!<span id="more-81"></span></p>
<h4>1. Tabular Data. Not layouts.</h4>
<p>Tables are for Tabular Data. They simply are not for designing a page. Here is a good page at about.com that explains Tabular Data.</p>
<h4>2. Nested Tables</h4>
<p>Nested tables is a common way to make layouts with tables. With nested tables, one, or more, tables are placed inside each other. There is a problem when designing a page this way, it takes the browser longer to render your page. With CSS there is way less code, and your code is cleaner, therefor it is easier on the browser.</p>
<h4>3. Changing fonts, colors, and layouts.</h4>
<p>Lets say you had a site with 100 pages, with tables, and you wanted to change the header of every page to blue instead of red. With CSS you could go into the CSS file, included on every one of those 100 pages, and change the font-color to blue. It would then update all of your pages with the color blue. With tables you would have to open every one of those pages and change the color.</p>
<h4>4. Invalid XHTML</h4>
<p>When using tables for your web page layout, you are writing invalid XHTML. You should only use tables when you are working with Tabular Data, as I stated above.</p>
<h4>5. Smaller HTML files</h4>
<p>No one wants a huge HTML file, full of messy code, right? Well, this is just another reason to use CSS. Since you can call your CSS style sheet from external file, it doesn&#8217;t even need to be in your HTML file to work, making it even smaller.</p>
<blockquote><p>Article written by <a href="http://ezinearticles.com/?expert=Joe_S_O" target="_blank">Joe S O</a><br />
LeetWebmasters.com is home to tutorials, tips, resources, and scripts for your web sites!<br />
Home Page &#8211; <a href="http://www.leetwebmasters.com">http://www.leetwebmasters.com</a><br />
Community Forum &#8211; <a href="http://www.leetwebmasters.com/community">http://www.leetwebmasters.com/community</a></p></blockquote>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://premierwebtemplates.com/blog/css/using-css-instead-of-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Concept Behind CSS</title>
		<link>http://premierwebtemplates.com/blog/css/the-concept-behind-css/</link>
		<comments>http://premierwebtemplates.com/blog/css/the-concept-behind-css/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 00:50:58 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[cascading style sheets]]></category>
		<category><![CDATA[style sheet]]></category>

		<guid isPermaLink="false">http://premierwebtemplates.com/blog/?p=108</guid>
		<description><![CDATA[The concept behind CSS (a.k.a. cascading style sheets or style sheets) is really simple. CSS allows you to create a single document of code, similar to an HTML file, that lets you specify the colors, fonts, backgrounds, etc. of a web page. The CSS file is then linked to from the web page(s) that you want to have the same styles that you specify.]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><h4>What is The Concept Behind CSS?</h4>
<p>The concept behind CSS (a.k.a. cascading style sheets or style sheets) is really simple.  CSS allows you to create a single document of code, similar to an HTML file, that lets you specify the colors, fonts, backgrounds, etc. of a web page. The CSS file is then linked to from the web page(s) that you want to have the same styles that you specify.<span id="more-108"></span></p>
<p>CSS allows you to make changes to all of the web pages that link to the CSS file at once by changing a style in the style sheet, instead of having to manually change every style in every HTML file.</p>
<p>If CSS did this and only this, they would save you a lot of time to say the least, especially if you have a large or multiple web sites. This alone is worth learning CSS, however, style sheets allow you to do this and much more.</p>
<h4>CSS also allows you to:</h4>
<ul>
<li>Position text and graphics precisely where you want to.</li>
<li>Add rollover effects to links.</li>
<li>Control the spacing between letters, lines, margins, web page borders.</li>
<li>Specify the units such as centimeters, pixels, points and more.</li>
<li>Hide content from certain web browsers in certain situations. An example of this is when you have some content that you want to appear only in your web pages, but not in print.</li>
</ul>
<h4>Some Benefits of CSS</h4>
<ul>
<li>Your web pages load faster because there is less code to transfer.</li>
<li>There is less code to type.</li>
<li>It is easier to have a consistent look and feel to your entire web site.</li>
<li>Updating and maintaining websites is much easier and less time consuming.</li>
</ul>
<p>In the end, CSS can save you a lot of time and effort and is very easy to learn.</p>
<blockquote><p>Jose Valdez is the webmaster of <a href="http://freecsstutorial.com/" target="_blank">FreeCSSTutorial.com</a><br />
Article Source: <a href="http://www.ArticleGeek.com" target="_blank">http://www.ArticleGeek.com</a> &#8211; Free Website Content</p></blockquote>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://premierwebtemplates.com/blog/css/the-concept-behind-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
