<?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>CSS Concept &#187; Tutorials</title>
	<atom:link href="http://www.cssconcept.com/category/tutorials/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cssconcept.com</link>
	<description>CSS can be just that easy..</description>
	<lastBuildDate>Sat, 07 Jun 2008 13:07:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS Syntax</title>
		<link>http://www.cssconcept.com/tutorials/css-syntax</link>
		<comments>http://www.cssconcept.com/tutorials/css-syntax#comments</comments>
		<pubDate>Sat, 07 Jun 2008 13:05:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://cssconcept.com/tutorials/css-syntax</guid>
		<description><![CDATA[Syntax 
The concept of CSS Syntax is made of three parts :
a) selector
b) property
c) value  

Selector = HTML element/tag that you wish to define. Property = the attribute that you wish to change. Each property can take a value. The last two are separated by a colon, surrounded by curly braces :


Though, when the [...]]]></description>
			<content:encoded><![CDATA[<h3><strong>Syntax </strong></h3>
<p>The concept of CSS Syntax is made of three parts :</p>
<p><strong>a) selector</strong></p>
<p><strong>b) property</strong></p>
<p><strong>c) value  </strong></p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/06/174.jpg" title="174.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/06/174.jpg" alt="174.jpg" /></a><br />
Selector = HTML element/tag that you wish to define. Property = the attribute that you wish to change. Each property can take a value. The last two are separated by a colon, surrounded by curly braces :</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/06/175.jpg" title="175.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/06/175.jpg" alt="175.jpg" /></a></p>
<p><span id="more-615"></span></p>
<p>Though, when the value is multiple words, add a quote around the value</p>
<pre><a href="http://cssconcept.com/wp-content/uploads/2008/06/176.jpg" title="176.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/06/176.jpg" alt="176.jpg" /></a></pre>
<p>When you want to specify more than one property, separate each property with a semicolon.</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/06/177.jpg" title="177.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/06/177.jpg" alt="177.jpg" /></a></p>
<p>To be more reliable, you can describe one property on each line :</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/06/178.jpg" title="178.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/06/178.jpg" alt="178.jpg" /></a></p>
<h3><strong> Grouping</strong></h3>
<p>Each selector can separate with comma. Bellow we have grouped all the headers elements.</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/06/179.jpg" title="179.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/06/179.jpg" alt="179.jpg" /></a></p>
<h3> Class Selector</h3>
<p>Class selectors can define different styles for the same type of HTML element.  Here is an example when you have two paragraphs (right-aligned and center-aligned) :</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/06/180.jpg" title="180.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/06/180.jpg" alt="180.jpg" /></a></p>
<p>The class attribute in your HTML document :</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/06/181.jpg" title="181.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/06/181.jpg" alt="181.jpg" /></a></p>
<p>M ore than one class per given element :</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/06/182.jpg" title="182.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/06/182.jpg" alt="182.jpg" /></a></p>
<p>If you omit the tag name in the selector to define a style that will be used by all HTML elements that have a certain class.</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/06/183.jpg" title="183.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/06/183.jpg" alt="183.jpg" /></a></p>
<h3>id Selector</h3>
<p>The id  selector is defined as a #.</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/06/185.jpg" title="185.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/06/185.jpg" alt="185.jpg" /></a></p>
<h3>CSS Comments</h3>
<p>Are used to explain your code, and may help you when you edit the source code at a later date.</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/06/186.jpg" title="186.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/06/186.jpg" alt="186.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssconcept.com/tutorials/css-syntax/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Classic two-column layout with left side &#8211; Tutorial</title>
		<link>http://www.cssconcept.com/tutorials/classic-two-column-layout-with-left-side-tutorial</link>
		<comments>http://www.cssconcept.com/tutorials/classic-two-column-layout-with-left-side-tutorial#comments</comments>
		<pubDate>Sat, 07 Jun 2008 12:02:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://cssconcept.com/tutorials/classic-two-column-layout-with-left-side-tutorial</guid>
		<description><![CDATA[ The following tutorial will make a simple two-column layout. For the beginning the page is simple, and you know that the content (images, text) is marked with HTML code between the &#60;body&#62; and &#60;/body&#62; tags.
First We will have this :


Above we have 2 sections marked using &#60;div&#62; tags.  &#60;div&#62; tags are being used [...]]]></description>
			<content:encoded><![CDATA[<p> The following tutorial will make a simple two-column layout. For the beginning the page is simple, and you know that the content (images, text) is marked with HTML code between the <strong>&lt;body&gt;</strong> and <strong>&lt;/body&gt;</strong> tags.</p>
<p>First We will have this :</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/06/167.jpg" title="167.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/06/167.jpg" alt="167.jpg" /></a></p>
<p><span id="more-606"></span></p>
<p>Above we have 2 sections marked using &lt;div&gt; tags.  &lt;div&gt; tags are being used to create a division in the doc. or to make a department.  The following code is doing that and is forming 2 containers and each has an unique ID :</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/06/1681.jpg" title="1681.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/06/1681.jpg" alt="1681.jpg" /></a></p>
<p>The content of the page are contained in one of the major page division. So what are the rules of ID&#8217;s in HTML pages and why do we use them like DIVs to assign them to page ?</p>
<p><strong>a ) </strong>You can assign ID&#8217;s to HTML tag. And also an ID to a <strong>&lt;p&gt;</strong> tag.<br />
<strong>b)</strong>  It should be used just once. The rule that two elements must have one ID is true. ID are used to uniquely identify a page element. Above we have presented just an page element having an ID of navigation and only one ID of &#8216;centerDoc&#8217;.</p>
<p><strong> c) </strong>ID&#8217;s on HTML pages are used in CSS. For changing the appearance we can target ID&#8217;s in our CSS code.</p>
<p>In &lt;div&gt; tags we are using header tags like : &lt;h1&gt; and &lt;h2&gt; for setting the headers.  In the following code we have attached the CSS doc. with the line code between the <strong>&lt;head&gt; &lt;head/head&gt;</strong> tags :</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/06/169.jpg" title="169.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/06/169.jpg" alt="169.jpg" /></a></p>
<p>Like all page link we have an &#8216;href&#8217; attribute for this time to a CSS doc which has all CSS code and will affect the page if we linked to it.</p>
<p>So after we have the styled sheet linked to the doc. we can look at the <strong>CSS code. </strong>First snippet of code &#8217;styles&#8217; the unique ID&#8217;s we have mentioned before :</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/06/170.jpg" title="170.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/06/170.jpg" alt="170.jpg" /></a></p>
<p>We will pay attention just to some elements for the moment. In the previous example we have 2 selectors, one for ID and each selectors are grouped using the curly brackets :{}.  In the following example you will see the CSS selectors code with all the guts out :</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/06/171.jpg" title="171.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/06/171.jpg" alt="171.jpg" /></a></p>
<p>Now we have a CSS ID selector for each of our HTML divs which have an ID, and have the same corresponding name. The CSS selecotr <strong>#centerDoc applies to the div : &#8216;&lt;div id = &#8220;centerDoc&#8221;&gt;.  </strong>For the div with id of &#8216;navigation&#8217; we have the code :</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/06/172.jpg" title="172.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/06/172.jpg" alt="172.jpg" /></a></p>
<p>The great thing is in the CSS code for centerDoc:</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/06/173.jpg" title="173.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/06/173.jpg" alt="173.jpg" /></a></p>
<p>CSS is able to concept from 0-100% a box or you name it, that wraps around HTML elements. The model consists of : margins, padding, content and other.. this gives you the opportunity to space elements in relation with other ones.</p>
<p>So, all between &lt;div&gt; tags is content. After comes padding. Then a border and the margin.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssconcept.com/tutorials/classic-two-column-layout-with-left-side-tutorial/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Styleguides a fast way to reach Readability</title>
		<link>http://www.cssconcept.com/tutorials/css-styleguides-a-fast-way-to-reach-readability</link>
		<comments>http://www.cssconcept.com/tutorials/css-styleguides-a-fast-way-to-reach-readability#comments</comments>
		<pubDate>Fri, 30 May 2008 11:47:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://cssconcept.com/tutorials/css-styleguides-a-fast-way-to-reach-readability</guid>
		<description><![CDATA[   For your first develop, you are ready to drop all the structures of the project that contains classes, schemes and so many codes and you are ready to start the next one. For comprehending coding, you need more time, perhaps less, but as fas as I know coding is lit bit hard and nasty. [...]]]></description>
			<content:encoded><![CDATA[<p>   For your first develop, you are ready to drop all the structures of the project that contains classes, schemes and so many codes and you are ready to start the next one. For comprehending coding, you need more time, perhaps less, but as fas as I know coding is lit bit hard and nasty. And after time goes by, codes starts to get complex, they are starting to get very high complex, depending on the project. So, how can you get sensible structure? Make use of comments &#8211; after the projects itself has been ended.</p>
<p>In time, each developer started to make more creative and inventive the comments and format of the text and to improve the surveillance of CSS. This are structured in CSS-styleguides &#8211; master of CSS code which offer for developers very helpful hints for the structure of the code and many information of the background related.</p>
<p>The following article has <strong>5 techniques that can improve your developing skills. </strong>The following codes can be apply to CSS and also to any stylesheet that you are using.</p>
<p><span id="more-594"></span></p>
<ul>
<li>
<h3><strong>Divide the code</strong></h3>
</li>
</ul>
<p>The most important in your CSS-code are the structure of the layout and identity. First start and choose the order of the CSS-selectors according to your div&#8217;s and classes from your layout. One mentioning, before doing that have some time and group common elements in distinct section and give a name to each one.<br />
Separate fragments of code, choose flags or striking comments. They will serve as a heading in the stylesheet for each group . Recognize single blocks when scanning trough your code, and after add the flags.</p>
<p>For large developments this hints might not be enough, though are good. For that divide your code in more/multiple case for having a control to it. You will have to use master-stylesheet for controlling them, and so your code shall be easy to control. Include only <strong>master-file in your doc.</strong></p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/156.jpg" title="156.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/156.jpg" alt="156.jpg" /></a></p>
<p>For bigger projects use brief update log.For not having problems when debugging CSS-code use diagnostic styling.</p>
<ul>
<li>
<h3><strong> Start and Define a table of Contents</strong></h3>
</li>
</ul>
<p>For having everything clear, you might consider having a  table of contents at the beginning of your CSS-file. For doing that you have to integrate a table of contents / or display a <strong>3</strong> overview of the layout having ID&#8217;s , classes that are being used in the three. Use some detailed named for them, for the section, to reach faster at them.</p>
<p>Also some of the elements that you want to change regular select them, at the end, when you release the project.   The classes and ID can appear in your table of contents.</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/157.jpg" title="157.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/157.jpg" alt="157.jpg" /></a></p>
<p><strong>or so :</strong></p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/158.jpg" title="158.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/158.jpg" alt="158.jpg" /></a></p>
<p>use <strong>simple enumeration without indentation</strong>. That&#8217;s easy, quick and effective.</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/159.jpg" title="159.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/159.jpg" alt="159.jpg" /></a></p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/160.jpg" title="160.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/160.jpg" alt="160.jpg" /></a></p>
<p>The role of having a table of contents is that it would be easier for other to read the code. This can save time when it is in table of contents.</p>
<ul>
<li>
<h3><strong> Define color and Typography</strong></h3>
</li>
</ul>
<p>When you are starting a project you should know that colors and typography are &#8216;constants&#8217;. First you should make a color glossary. So, you will have some reference of the colors that you are using in the site, so you will have to avoid mistakes, and when you need to change a color, you will have a list.<br />
<a href="http://cssconcept.com/wp-content/uploads/2008/05/161.jpg" title="161.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/161.jpg" alt="161.jpg" /></a></p>
<p><strong> describe color codes used in your layout. </strong>for a given design element you can describe the colors which are used there.</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/162.jpg" title="162.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/162.jpg" alt="162.jpg" /></a></p>
<p><strong>The same holds for typography.</strong></p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/163.jpg" title="163.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/163.jpg" alt="163.jpg" /></a></p>
<ul>
<li>
<h3>CSS properties</h3>
</li>
</ul>
<p>The CSS properties must be ordered with some special formatting, so the code would be more reliable, intuitive.  Some put the colors and fonts first, some put the positioning and floats first.</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/164.jpg" title="164.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/164.jpg" alt="164.jpg" /></a></p>
<p>an <strong>alphabetical order</strong></p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/165.jpg" title="165.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/165.jpg" alt="165.jpg" /></a></p>
<ul>
<li>
<h3>Indentation helps</h3>
</li>
</ul>
<p><strong>   One-liners for brief fragments of code </strong>is very helpful to see if your code is good. The result might not be positive if you have defined 3 attributes for a selector, or other stuff like that. Your code readability will grow fast and you will find some specific element in your stylesheet.<br />
<a href="http://cssconcept.com/wp-content/uploads/2008/05/166.jpg" title="166.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/166.jpg" alt="166.jpg" /></a></p>
<p>Styleguides are a great and very helpful &#8216;hand&#8217; when you need. So, remove all your styleguide that doesn&#8217;t help to have a better code. The idea is to have a nice and easy to read code, follow the rules and you will have good results.</p>
<p><strong>Fast Help</strong></p>
<p><a href="http://css-tricks.com/videos/css-tricks-video-8.php">CSS-Tricks</a></p>
<p><a href="http://www.louddog.com/bloggity/2008/03/css-best-practices.php">Loud Dog</a></p>
<p><a href="http://woork.blogspot.com/2008/01/optimize-your-css-files-to-improve-code.html">Optimize you CSS</a></p>
<p><a href="http://css-tricks.com/indent-css-changes-you-are-unsure-about/">Indent CSS Changes</a></p>
<p><a href="http://www.onyx-design.net/weblog2/css/12-articles-and-tools-for-css-structuring-and-optimising/">12 Articles and Tools for CSS</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssconcept.com/tutorials/css-styleguides-a-fast-way-to-reach-readability/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Centering an image in a div</title>
		<link>http://www.cssconcept.com/tutorials/centering-an-image-in-a-div</link>
		<comments>http://www.cssconcept.com/tutorials/centering-an-image-in-a-div#comments</comments>
		<pubDate>Thu, 29 May 2008 18:59:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://cssconcept.com/tutorials/centering-an-image-in-a-div</guid>
		<description><![CDATA[  For centering  images inside  a div with CSS you need to apply the following steps. If your HTML code looks like this :
HTML code: 

The next move is to apply display:block; for the image and set the margins (left and right) to &#8216;auto&#8217; like this :

CSS code:
 
For Vertical-Align
CSS code:

It would be perfect if you [...]]]></description>
			<content:encoded><![CDATA[<p>  For centering  images inside  a div with CSS you need to apply the following steps. If your HTML code looks like this :</p>
<p><strong>HTML code: </strong></p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/133.jpg" title="133.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/133.jpg" alt="133.jpg" /></a></p>
<p>The next move is to apply display:block; for the image and set the margins (left and right) to &#8216;auto&#8217; like this :</p>
<p><span id="more-569"></span></p>
<p><strong>CSS code:</strong></p>
<p><strong> </strong><a href="http://cssconcept.com/wp-content/uploads/2008/05/135.jpg" title="135.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/135.jpg" alt="135.jpg" /></a></p>
<h3><strong>For Vertical-Align</strong></h3>
<p><strong>CSS code:</strong></p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/135.jpg" title="135.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/135.jpg" alt="135.jpg" /></a></p>
<p>It would be perfect if you could split vertical-align:middle on the image, like:</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/136.jpg" title="136.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/136.jpg" alt="136.jpg" /></a></p>
<p><strong>we will use <code>line-height</code> equal to the height of our container:</strong></p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/137.jpg" title="137.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/137.jpg" alt="137.jpg" /></a></p>
<p><strong> equal amount of <code>font-size:</code></strong></p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/138.jpg" title="138.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/138.jpg" alt="138.jpg" /></a></p>
<p><strong>That&#8217;s all here..</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssconcept.com/tutorials/centering-an-image-in-a-div/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Different Styles to IE6 and IE7</title>
		<link>http://www.cssconcept.com/tutorials/different-styles-to-ie6-and-ie7</link>
		<comments>http://www.cssconcept.com/tutorials/different-styles-to-ie6-and-ie7#comments</comments>
		<pubDate>Thu, 29 May 2008 17:50:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://cssconcept.com/tutorials/different-styles-to-ie6-and-ie7</guid>
		<description><![CDATA[   Web developers are very familiar with conditional comments when it comes to serve styles for certain versions of Internet Explorer. Though multiple conditional comments are able to be used. We have here an example of what can be used in this type of coding.
 CSS code:


]]></description>
			<content:encoded><![CDATA[<p>   Web developers are very familiar with conditional comments when it comes to serve styles for certain versions of Internet Explorer. Though multiple conditional comments are able to be used. We have here an example of what can be used in this type of coding.</p>
<h2><strong> CSS code:</strong></h2>
<p><span id="more-566"></span></p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/132.jpg" title="132.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/132.jpg" alt="132.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssconcept.com/tutorials/different-styles-to-ie6-and-ie7/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Page Indicator in CSS &#8211; not scripting</title>
		<link>http://www.cssconcept.com/tutorials/page-indicator-in-css-not-scripting</link>
		<comments>http://www.cssconcept.com/tutorials/page-indicator-in-css-not-scripting#comments</comments>
		<pubDate>Wed, 28 May 2008 13:12:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://cssconcept.com/tutorials/page-indicator-in-css-not-scripting</guid>
		<description><![CDATA[The following article will show you how can you highlight a page&#8217;s link on a navigation menu using CSS code, and no scripting.  When you have a navigation menu, let&#8217;s say standard : Home, About, Contact, Products links and the viewer is looking at the Contact page, the link shall be highlight so they are [...]]]></description>
			<content:encoded><![CDATA[<p>The following article will show you how can you highlight a page&#8217;s link on a navigation menu using CSS code, and no scripting.  When you have a navigation menu, let&#8217;s say standard : Home, About, Contact, Products links and the viewer is looking at the Contact page, the link shall be highlight so they are viewing that page.<br />
To do this, you are able by adding a class to the link that direct you to that page. The class must be moved to the relevant link on each page. The method that we have presented now, is very known and more than that, works just fine, though the following tutorial will show you to make it automate the process and make the menu part of an include.</p>
<p><span id="more-557"></span></p>
<p><span id="more-280"></span></p>
<p><strong><span class="langName">HTML:</span></strong></p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/125.jpg" title="125.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/125.jpg" alt="125.jpg" /></a></p>
<p><strong>Home page </strong></p>
<p><strong>CSS code:</strong><br />
<a href="http://cssconcept.com/wp-content/uploads/2008/05/126.jpg" title="126.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/126.jpg" alt="126.jpg" /></a></p>
<p><strong>CSS code:</strong></p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/127.jpg" title="127.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/127.jpg" alt="127.jpg" /></a></p>
<p>On each HTML pages be sure to see that the correct class are in the body tag so they will work fine.</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/128.jpg" title="128.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/128.jpg" alt="128.jpg" /></a></p>
<p>Doing that ok,  the correct page will automatically be highlighted when the user lands there.</p>
<p><strong> </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssconcept.com/tutorials/page-indicator-in-css-not-scripting/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Round Corners in CSS</title>
		<link>http://www.cssconcept.com/tutorials/round-corners-in-css</link>
		<comments>http://www.cssconcept.com/tutorials/round-corners-in-css#comments</comments>
		<pubDate>Wed, 28 May 2008 12:44:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://cssconcept.com/tutorials/round-corners-in-css</guid>
		<description><![CDATA[   Our previous tutorials learned you how to make menus, and many other things that can be very useful when you are developing a website. This time i consider to be useful for you, to make some interesting round corners for a fluid box. The element from inside the box will be colored any way [...]]]></description>
			<content:encoded><![CDATA[<p>   Our previous tutorials learned you how to make menus, and many other things that can be very useful when you are developing a website. This time i consider to be useful for you, to make some interesting <strong>round corners</strong> for a fluid box. The element from inside the box will be colored any way you like, without having to paint the transparent part of the corner in the similar background color.</p>
<p>When you decide to make round corners in CSS, things might be bit pain. So, our work shall be as clean as crystal for you. So, to start making your design first, I will tell you some tips, that I used in this tutorial. First, i used an image in <strong>PNG8, </strong>but if you don&#8217;t have Fireworks you can use Gif for IE.</p>
<p><span id="more-549"></span></p>
<h3>We shall use this text : <strong>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed convallis mauris eu ipsum. Proin volutpat facilisis dui. Sed pretium pulvinar arcu </strong></h3>
<p><strong>CSS code</strong>, mark up for this as follows:</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/118.jpg" title="118.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/118.jpg" alt="118.jpg" /></a></p>
<p><strong>HTML code:</strong></p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/119.jpg" title="119.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/119.jpg" alt="119.jpg" /></a></p>
<p>For our next thing we have to give 4 elements and place our corners into positions with static position. Padding &#8211; 10px for the box, so we can position the corners nicely with no affecting inner content. To provide elements for the corners I will use div with nested span, but for reducing mark up you can use a nested &#8216;b&#8217; element.  This can be bit negative for a class.<br />
<strong>HTML code:</strong></p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/120.jpg" title="120.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/120.jpg" alt="120.jpg" /></a></p>
<p>Div and span have been inserted in the inner element, so we have to drag the top corners upwards into the padding area, and after outwards into free so the transparent corners can show. For the bottom corners is also needed the process.</p>
<p><strong> CSS and HTML code:</strong></p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/121.jpg" title="121.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/121.jpg" alt="121.jpg" /></a></p>
<p>For making things bit tidy i added a div content in the middle, for revised HTML as :</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/122.jpg" title="122.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/122.jpg" alt="122.jpg" /></a></p>
<p><strong>   Font-size = 10px in CSS. </strong></p>
<p>For holding together everything the codes uses floats, though we can modify and simplify bit and use static elements. The main element is not floated and you will find that margin collapse affects the negative margined corners in Firefox, and to stop that we will add 1px border in the current background color.</p>
<p><strong>CSS code:</strong></p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/123.jpg" title="123.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/123.jpg" alt="123.jpg" /></a></p>
<p><strong>HTML code:</strong></p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/124.jpg" title="124.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/124.jpg" alt="124.jpg" /></a></p>
<p>For adding a new border, you need to make a new round image with the border color that you want.  And then we can add CSS border to the layout to end the image. Though, this time you will need to make 2 images, since the border part of the round corner that extends will show.</p>
<p>The main drawback is once again the extra html mark up required to place each corner and if that upsets you then you may want to try one of the many <a href="http://webdesign.html.it/articoli/leggi/528/more-nifty-corners/">javascript</a> <a href="http://www.456bereastreet.com/archive/200505/transparent_custom_corners_and_borders/"> solutions</a> that are out there.</p>
<p>There is also extra maintenance involved with the negative positioning that we used and you will need to take this into account when you place the corners alongside other elements as they will overlap other elements if you don&#8217;t allow about 10px more space than you thought you needed.</p>
<p>In addition, the first examples make a lot of use of floats to hold everything together and you may need to wrap the whole lot in a static element if you need to place it somewhere (see example 4 above). Example 5 is the most stable version and the method I recommend you use but either method will work following the guidelines already outlined.</p>
<p>IE6 is also a little jumpy on fluid floated layouts at small screen sizes but that&#8217;s nothing new and something you&#8217;ll have to live with. Example 5 does not suffer from this though because the outer wrappers are not floated.</p>
<p>The advantage of this method is that the image is only 300bytes and you are not restricted by size like most other methods that use a massive image to draw the sides and borders. The above examples can have unlimited width and height and carry virtually no overhead in file size apart from the extra HTML of course.</p>
<p>I started out by saying this was simple but due to bugs and browser differences it wasn&#8217;t really that simple was it? Please refer to the examples for the full code as there are some fixes in place for the various demos. Have fun playing with the examples and if you find a better method of doing this, or want help with the above, or if you find some bugs then let&#8217;s hear from you.</p>
<p><span id="more-532"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssconcept.com/tutorials/round-corners-in-css/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pagination Style in CSS</title>
		<link>http://www.cssconcept.com/tutorials/pagination-style-in-css</link>
		<comments>http://www.cssconcept.com/tutorials/pagination-style-in-css#comments</comments>
		<pubDate>Sun, 25 May 2008 12:18:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://cssconcept.com/tutorials/pagination-style-in-css</guid>
		<description><![CDATA[  The following article explains how to design a pagination to search results or to split a long list of records into more pages.  The following tutorial includes HTML/CSS code which can include Digg-like, Clean pagination style that are ready to use in your development projects.
Pagination structure
You can have four main elements :

 Standard Page selector
Current [...]]]></description>
			<content:encoded><![CDATA[<p>  The following article explains how to design a pagination to search results or to split a long list of records into more pages.  The following tutorial includes HTML/CSS code which can include Digg-like, Clean pagination style that are ready to use in your development projects.</p>
<p><strong>Pagination structure</strong></p>
<p>You can have four main elements :</p>
<ul>
<li> Standard Page selector</li>
<li>Current Active page</li>
<li>Previous/Next</li>
<li>Previous/Next button/disable</li>
</ul>
<p>Your design can be made using HTML list/&lt;ul&gt; which have &lt;li&gt; elements for each pagination and give an ID for the &lt;ul&gt; list to assign a specific pagination style to the list.</p>
<p><span id="more-467"></span></p>
<p><strong>Flickr-like</strong></p>
<p><strong>HTML code:</strong></p>
<p>For the HTML code it is very simple and you can add the structure in each pagination-style. all that you have to do is changing the &lt;ul&gt; ID :</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/37.jpg" title="37.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/37.jpg" alt="37.jpg" /></a></p>
<p><strong>Flickr in CSS code:</strong></p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/38.jpg" title="38.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/38.jpg" alt="38.jpg" /></a></p>
<p><strong>Digg-like in HTML code:</strong></p>
<p>Digg-like pagination style:</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/39.jpg" title="39.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/39.jpg" alt="39.jpg" /></a></p>
<p><strong> CSS code:</strong></p>
<p>CSS code is very similar to the previous Flickr-like example.</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/40.jpg" title="40.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/40.jpg" alt="40.jpg" /></a></p>
<p><strong>Clean pagination.</strong></p>
<p><strong>HTML code:</strong></p>
<p>For a minimal design.</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/41.jpg" title="41.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/41.jpg" alt="41.jpg" /></a></p>
<p><strong>CSS Code</strong></p>
<p>For this pagination style is :</p>
<p><a href="http://cssconcept.com/wp-content/uploads/2008/05/42.jpg" title="42.jpg" rel="lightbox"><img src="http://cssconcept.com/wp-content/uploads/2008/05/42.jpg" alt="42.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssconcept.com/tutorials/pagination-style-in-css/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
