<?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; CSS Theory</title>
	<atom:link href="http://www.cssconcept.com/category/css-theory/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>Things that should be known about CSS Specificity</title>
		<link>http://www.cssconcept.com/css/things-that-should-be-known-about-css-specificity</link>
		<comments>http://www.cssconcept.com/css/things-that-should-be-known-about-css-specificity#comments</comments>
		<pubDate>Mon, 19 May 2008 19:02:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Theory]]></category>

		<guid isPermaLink="false">http://cssconcept.com/css/things-that-should-be-known-about-css-specificity</guid>
		<description><![CDATA[Separate  from Floats , CSS Specificity is being considerate a hard and complex concept of Cascading Style Sheets. If sometimes your CSS doesn&#8217;t respond to your codes, that&#8217;s because the different weight of selectors. The most important is to start to understand how your browser interpret your code. And for that you need to [...]]]></description>
			<content:encoded><![CDATA[<p>Separate  from Floats , CSS Specificity is being considerate a hard and complex concept of Cascading Style Sheets. If sometimes your CSS doesn&#8217;t respond to your codes, that&#8217;s because the different weight of selectors. The most important is to start to understand how your browser interpret your code. And for that you need to have an understanding on how specificity works. Such problems are made because the fact that on your CSS you have defined a more specific selector.<br />
CSS Specificity is not that easy, and trough this article we are trying to explain the concept.</p>
<p><span id="more-393"></span></p>
<h3>Definition of Specificity</h3>
<p><strong>In short words Specificity determines on which CSS rules is being applied by browser</strong>.  &#8220;Specificity is a type of weighting that has a bearing on how your cascading style sheet (CSS) rules are displayed.&#8221;[<a href="http://www.adobe.com/devnet/dreamweaver/articles/css_specificity.html">Understand Specificity</a>]</p>
<p><strong>All selectors have their specificity.</strong> &#8220;All rules in your style sheet carry a specificity rating regardless of selector type, although the weighting that is given to each selector type varies and will ultimately affect the styling of your web documents.&#8221;[<a href="http://www.adobe.com/devnet/dreamweaver/articles/css_specificity.html">Understanding Specificity</a>]</p>
<p><strong>Selector specificity is a process used to determine which rules take precedence in CSS</strong> when several rules could be applied to the same element in markup. It&#8217;s a simple enough process, but has caught out a lot of developers at some point in their career. [<a href="http://juicystudio.com/article/selector-specificity.php">Selector Specificity</a>]</p>
<p><strong>Principles</strong></p>
<ul>
<li><strong>  Unequal specificity: &#8220;</strong>A selector can contain one or more reference points, the greater the specificity rating of these reference points the more specific your rule is.&#8221; [<a href="http://www.adobe.com/devnet/dreamweaver/articles/css_specificity_02.html">Understanding Specificity</a>]</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.cssconcept.com/css/things-that-should-be-known-about-css-specificity/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Definition</title>
		<link>http://www.cssconcept.com/css/css-definition</link>
		<comments>http://www.cssconcept.com/css/css-definition#comments</comments>
		<pubDate>Mon, 19 May 2008 12:23:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS Theory]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://cssconcept.com/css/css-definition</guid>
		<description><![CDATA[What is CSS is in fact ?
For a while CSS is no longer something that represents what we call &#8216;unknown&#8217;. The following so called article/tutorial will teach you what CSS is and what it can do for you. So CSS is an acronym for Cascading Style Sheets.
What can we do with CSS ?
Simple and with [...]]]></description>
			<content:encoded><![CDATA[<h3>What is CSS is in fact ?</h3>
<p>For a while CSS is no longer something that represents what we call &#8216;unknown&#8217;. The following so called article/tutorial will teach you what CSS is and what it can do for you. So CSS is an <strong>acronym</strong> for <strong>Cascading Style Sheets.</strong></p>
<h3><strong>What can we do with CSS ?</strong></h3>
<p>Simple and with no more other introduction, CSS is the language that defines layout of HTML documents. CSS is covering lines, height, width, fonts, margins, advanced and other things.</p>
<p>HTML is being used to add layout to a website. CSS offers a great and large gamut of option and is more accurate and sophisticated. All the browsers are supporting CSS today.</p>
<p><span id="more-368"></span></p>
<h3>There is a difference between CSS and HTML ?</h3>
<p>First HTML is being used to structure content, and CSS for  formatting structured  content. The composition may sound lit bit mechanical though in few seconds we will show you the difference.<br />
Back, in the early times when world wide web was just at the beginning , HTML was used just to add structure to text. Everyone could use HTML tags like &lt;h1&gt; and &lt;p&gt; just to mark the text.</p>
<p>Slowly the world wide web gained popularity and to make look better the layout for the online document, HTML was upgrade, especially the tags, was add such as &lt;font&gt; which was lit bit differed from the original.</p>
<p>So some situation where led, by this HTML upgrade, and the original tags where misused to layout pages instead of adding structure to text. And some browsers where not supporting some tags.</p>
<p>So, here was invented CSS to repair the situation and to provide to web designers a sophisticated and large gamut of opportunities to change the layout, which was supported by all browsers.</p>
<h3><strong> Benefits of CSS</strong></h3>
<p>It is used for web designing. The benefits include :</p>
<ul>
<li>permanent control of the layout to document from a style sheet;  (more if necessary)</li>
<li>more control of layout;</li>
<li>possibility to apply different layout to media-types.</li>
<li>techniques and advantages.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.cssconcept.com/css/css-definition/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Life Concepts about CSS Float Theory</title>
		<link>http://www.cssconcept.com/css-theory/life-concepts-about-css-folat-theory</link>
		<comments>http://www.cssconcept.com/css-theory/life-concepts-about-css-folat-theory#comments</comments>
		<pubDate>Fri, 29 Feb 2008 21:05:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Theory]]></category>

		<guid isPermaLink="false">http://cssconcept.com/css-theory/life-concepts-about-css-folat-theory</guid>
		<description><![CDATA[  Floats is like the base principle in CSS. Often it is being made confusion and floats are being accused for floating the context around it for the making readability and usability problems. Though the problem doesn&#8217;t come from the theory, more from the way it is interpreted by developers and browsers.
Also if you [...]]]></description>
			<content:encoded><![CDATA[<p>  Floats is like the base principle in CSS. Often it is being made confusion and floats are being accused for floating the context around it for the making readability and usability problems. Though the problem doesn&#8217;t come from the theory, more from the way it is interpreted by developers and browsers.</p>
<p>Also if you are looking better at the theory you will see that it is not such hard  at it appears to be. The big problems are made by the previous versions of I.E.  If  you are very PRO and know the bugs, you can control the  information in way that  is presented more sophisticated.</p>
<p>Trough this article we try to make things more easy and clarify them, for the floats that are being used. The results that we present here are more related articles and selected from important <strong>CSS-based</strong> layouts wit floats. <span id="more-105"></span></p>
<h2>   Tips about Floats</h2>
<p>&#8220;A <strong>floated box is laid</strong> out according to the normal flow, then taken out of the flow and shifted to the left or right as far as possible. Content can flow down the right side of a left-floated box and down the left side of a right-floated box.&#8221; <a href="http://css.maxdesign.com.au/floatutorial/introduction.htm">Floatutorial</a></p>
<p>&#8220;A line box is an imaginary rectangle that contains all the inline boxes that make up a line in the containing block-level element. It is (at least) as tall as its tallest line box.&#8221; <a href="http://www.autisticcuckoo.net/archive.php?id=2004/12/10/floating">Float Layouts</a></p>
<p>&#8220;In order to really understand float theory you have to understand what a line box means in CSS. Unfortunately, that in turn requires you to understand what is meant by an inline box, which is way too complicated to explain in any detail here. If you&#8217;re interested (and slightly masochistic) you can try to decipher the explanation in&#8221;  <a href="http://www.w3.org/TR/CSS21/visuren.html#q7">w3.org</a></p>
<p>&#8220;If we enclose each column in a DIV element with float:left they will appear side by side, just as we expect columns<br />
to do. If we then want a full-width footer to be shown at the bottom, no matter which column happens to be longest, we only need to set clear:both on it.&#8221; <a href="http://www.autisticcuckoo.net/archive.php?id=2004/12/10/floating">Float Layouts</a></p>
<p>&#8220;If floats are to be used in creating non-table layouts, then there needs to be a way to make their containing elements stretch around them. At present, this requires a bit of a structural hack. Since we want the bottom of the containing element to be placed clear past the bottom of the float, then <code>clear</code> is our answer.  We need only insert a block-level element just before the end of the container, and clear it.&#8221; <a href="http://www.complexspiral.com/publications/containing-floats/">Containing Floats</a></p>
<p><a href="http://www.complexspiral.com/publications/containing-floats/"><img src="http://cssconcept.com/wp-content/uploads/2008/03/67.gif" alt="67.gif" /></a></p>
<p>&#8220;When an element specifies <code>position:relative;</code> it is initially positioned following the normal flow rules. Surrounding boxes are positioned accordingly. Then,  the box is moved according to its offset properties.&#8221; <a href="http://www.brainjar.com/css/positioning/default2.asp">CSS Positioning </a></p>
<p>&#8220;A floated box is positioned within the normal flow, then taken out of the flow and shifted to the left or right as far as possible. Content may flow along the side of a float.&#8221; <a href="http://css.maxdesign.com.au/floatutorial/definitions.htm">Float Tutorial</a></p>
<p>&#8220;A floated box must have an explicit width (assigned via the <span class="noxref"><span class="propinst-width">&#8216;width&#8217;</span></span> property, or its intrinsic width in the case of replaced elements). Any floated box becomes a block box that is shifted to the left or right until its outer edge touches the containing block edge or the outer edge of another float. The top of the floated box is aligned with the top of the current line box (or bottom of the preceding block box if no line box exists). If there isn&#8217;t enough horizontal room on the current line for the float, it is shifted downward, line by line, until a line has room for it.&#8221;  <a href="http://www.w3.org/TR/CSS2/visuren.html#floats">Visual formatting model</a></p>
<p><a href="http://www.w3.org/TR/CSS2/visuren.html#floats"><img src="http://cssconcept.com/wp-content/uploads/2008/03/68.gif" alt="68.gif" /> </a></p>
<p>&#8221; There are a few things you should note regarding floated boxes. For one, the box being floated should have a width defined for it, either explicitly or implicitly. Otherwise, it will fill its containing block horizontally, just like non-floated content, leaving no room for other content to flow around it. As such, floated boxes are always treated as block boxes, even if they are defined using inline elements.&#8221; <a href="http://www.brainjar.com/css/positioning/default3.asp">CSS Positioning</a></p>
<h2>Float Bugs</h2>
<p>&#8221; A problem can arise if the text beside an image is not long enough to wrap around it. In this case, the next image could potentially float up into this space beneath the text, instead of sitting directly beneath the previous floated image.&#8221; <a href="http://www.communitymx.com/content/article.cfm?cid=B03A6">Close gaps Next to Floated Images in I.E </a></p>
<p>&#8221;  When a float is contained within a container box that has a visible border or background, that float does  <em>not</em> automatically force the container&#8217;s bottom edge down as the float is made taller. Instead the float is  ignored by the container and will hang down out of the container bottom like a flag. Those familiar only  with Explorer for Windows may scratch their heads and say &#8220;That&#8217;s not right!&#8221; True, IE/Win does enclose a float within a container &#8216;automatically&#8217;, but only if the container element has a stated dimension,  and in any case it&#8217;s a W3C spec violation. This illegal behavior can also  be &#8216;toggled&#8217; on and off by links within the container, if &#8216;hovering&#8217; alters the link background or several other  properties.&#8221; <a href="http://www.positioniseverything.net/easyclearing.html">Cleaning a Float container without Structural Map</a></p>
<p>&#8221;           Most of the CSS sits in a style block in the header of this page, but             where I alter the styles to demonstrate the bug I&#8217;ve put the changes             in-line so they&#8217;ll be easy to find, and there are obvious comments             in the             source             at the beginning of each example to make it even easier.&#8221; <a href="http://www.positioniseverything.net/explorer/floatIndent.html">Margin Bugs </a></p>
<p>&#8221; div#floatholder (dotted border) is dimensioned horizontally by margins, and vertically  by content. div#float (thick brown border) is floated left, and contains a test link. Following that are several lines of bare text, alternating with divs containing more text, plus test links. Next is a cleared div (purple border), then another div for good measure.&#8221;</p>
<p><a href="http://www.positioniseverything.net/explorer/peekaboo.html"><img src="http://cssconcept.com/wp-content/uploads/2008/03/69.gif" alt="69.gif" /> </a></p>
<p>&#8220;apparently IE is adding 3px of space to the end of the line boxes in this demo if they touch the float. Now cast your eyes down to the bottom of the test box. Observe how the 3px space is evident even tho the red bordered  box (#jog-box) is left margined far enough to separate it from the float. This means that the added &#8217;space&#8217;  is applied to the line boxes that are adjacent to a float, not just to ones that are touching the float.&#8221; <a href="http://www.positioniseverything.net/explorer/threepxtest.html">IE6 Three Pixel Gap</a></p>
<p>&#8220;This test case demonstrates a problem with Safari 1.3 and 2.0. Using a combination of float and negative margins on an element makes any links in the element unclickable. Text also becomes very difficult to select, and if you tab through the links they disappear when they lose focus. A workaround, as demonstrated in test case 2, is to add <code>position:relative</code> to the CSS declaration for any floated elements with negative margins.&#8221; <a href="http://www.456bereastreet.com/lab/float_negative_margins/">Float + negative margin bug in Safari </a></p>
<p>&#8221; Internet Explorer 6 has a puzzling bug involving multiple floated elements; text characters  from the last of the floated elements are sometimes duplicated below the last float. This bug  is a real headbanger because there seems to be nothing triggering it. However, by now everyone  should <em>know</em> that IE needs no excuse to misbehave.&#8221; <a href="http://positioniseverything.net/explorer/dup-characters.html">IE Duplicate Characters Bug</a></p>
<p>&#8220;In Explorer for Windows there are two display errors. One, the container is only containing  the last line of floats , and the floats are also running off to the right, all the way to the  right screen edge! Take it from me, folks, that is <em>not</em> kosher.&#8221; <a href="http://www.positioniseverything.net/explorer/escape-floats.html">Escaping Floats Bug</a><br />
<a href="http://www.positioniseverything.net/explorer/escape-floats.html"><img src="http://cssconcept.com/wp-content/uploads/2008/03/70.gif" alt="70.gif" /></a></p>
<h2>Clear the floats</h2>
<p>&#8221; When a float is contained within a container box that has a visible border or background, that float does  <em>not</em> automatically force the container&#8217;s bottom edge down as the float is made taller. Instead the float is  ignored by the container and will hang down out of the container bottom like a flag.&#8221; <a href="http://www.positioniseverything.net/easyclearing.html">Clearing a float container </a></p>
<p>&#8220;Elements following a floated element will wrap around the floated element. If you do  		not want this to occur, you can apply the &#8220;clear&#8221; property to these following  		elements. The four options are &#8220;clear: left&#8221;, &#8220;clear: right&#8221;, &#8220;clear: both&#8221; or  		&#8220;clear: none&#8221;.&#8221; <a href="http://css.maxdesign.com.au/floatutorial/clear.htm">Float Tutorial </a></p>
<p>&#8220;A common problem with float-based layouts is that the floats&#8217; container doesn&#8217;t want to stretch up to accomodate the floats. If you want to add, say, a border around all floats (ie. a border around the container) you&#8217;ll have to command the browsers somehow to stretch up the container all the way.&#8221; <a href="http://www.quirksmode.org/css/clearing.html">Clearing Floats</a></p>
<p><a href="http://www.quirksmode.org/css/clearing.html"><img src="http://cssconcept.com/wp-content/uploads/2008/03/71.gif" alt="71.gif" /></a></p>
<p>&#8221; We want the black border to go around both our floating columns. That doesn&#8217;t happen, though. The container div itself has no height, since it only contains floating elements. Therefore the border stubbornly stays at the top of the floating columns.&#8221;</p>
<p>&#8221; When using floats in <acronym title="Cascading Style Sheets">CSS</acronym>, without a doubt you have encountered the interesting effects it will have on the following content. Here I will show you different ways to clear floats without any extra mark-up.&#8221; <a href="http://www.robertnyman.com/2007/04/12/how-to-clear-css-floats-without-extra-markup-different-techniques-explained/">How to clear CSS floats </a></p>
<p><a href="http://www.positioniseverything.net/easyclearing.html"><br />
</a></p>
<p><a href="http://www.brainjar.com/css/positioning/default2.asp"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cssconcept.com/css-theory/life-concepts-about-css-folat-theory/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
