<?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>HTML.co.uk &#187; css tutorial</title>
	<atom:link href="http://www.html.co.uk/tag/css-tutorial/feed" rel="self" type="application/rss+xml" />
	<link>http://www.html.co.uk</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 06 Jan 2010 12:45:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>CSS Positioning Properties for getting the desired Content Layout</title>
		<link>http://www.html.co.uk/189/css-positioning-properties-for-getting-the-desired-content-layout.html</link>
		<comments>http://www.html.co.uk/189/css-positioning-properties-for-getting-the-desired-content-layout.html#comments</comments>
		<pubDate>Sat, 19 Sep 2009 06:58:59 +0000</pubDate>
		<dc:creator>Editor</dc:creator>
				<category><![CDATA[HTML Tutorials]]></category>
		<category><![CDATA[cascading style sheets]]></category>
		<category><![CDATA[css float]]></category>
		<category><![CDATA[css layout]]></category>
		<category><![CDATA[css position]]></category>
		<category><![CDATA[CSS Position Properties]]></category>
		<category><![CDATA[css positioning]]></category>
		<category><![CDATA[css tutorial]]></category>

		<guid isPermaLink="false">http://www.html.co.uk/?p=189</guid>
		<description><![CDATA[On the WebPages, there are 2 models for positioning the content. Both the models are valid and it is always best to use two models to layout the WebPages with CSS. ]]></description>
			<content:encoded><![CDATA[<p class="blogtext"><strong>Two models float and position</strong></p>
<p class="blogtext">On the WebPages, there are 2 models for positioning the content. Both the models are valid and it is always best to use two models to layout the WebPages with CSS. <span id="more-189"></span></p>
<p class="blogtext"><strong>Float</strong></p>
<p class="blogtext">Float takes out the element from the normal flow of the WebPages and has many other elements around it. It is seems confusing to use CSS for layout at first but is can satisfy you once it is completely understood.</p>
<p class="blogtext"><strong>Position</strong></p>
<p class="blogtext">When people think of CSS positioning, position is the one that is thought by everyone. This defines whether the element is in fixed, absolute, relative or static position.</p>
<p class="blogtext"><strong>CSS Position Properties </strong></p>
<p class="blogtext">As it is mentioned above, if you have decided to position the pages within the position property, you need to use at least one of the style properties in order to define where the elements should be placed.</p>
<p class="blogtext"><strong>Bottom</strong></p>
<p class="blogtext">The element should be placed at the location up from bottom of the browser. One thing that is to be noted is, if the negative values are used in these positions, you have to move the elements in opposite location.</p>
<p class="blogtext"><strong>Left</strong></p>
<p class="blogtext">The element can be placed over from the right side of the window.</p>
<p class="blogtext"><strong>Right</strong></p>
<p class="blogtext">The element can be placed from right side of the window.</p>
<p class="blogtext"><strong>Top</strong></p>
<p class="blogtext">The element can be placed down from top of the window.</p>
<p class="blogtext"><strong>CSS Positioning – it is not Really Alignment</strong></p>
<p class="blogtext">There were no many ways to position the items on the screen when HTML came first. Few of them were the align attribute that allowed to position the element related to its current position. In favor of the style sheets, the attribute has been deprecated. There are two attributes and among that, only one works for the text.</p>
<p class="blogtext"><strong>Text-align</strong></p>
<p class="blogtext">This does all the things that you would expect from an align-attribute. It helps you to align the text to center, right and even justify. However, this works only with the text.</p>
<p class="blogtext"><strong>Vertical-align</strong></p>
<p class="blogtext">This allows you to align the inline element to baseline top, bottom, middle and many other positions.</p>
<p class="blogtext"><strong>Position the Things on Top one after another</strong></p>
<p class="blogtext">When positioning the elements, there are some chances that one element will overlap another. On the normal course of events, browser will put up the thing that comes first at the bottom.  However, with Z-index property, you will be able to push the elements to other location</p>
<p class="blogtext"><strong>Z-index</strong></p>
<p class="blogtext">This defines the stack order of the elements.</p>
<p class="blogtext">After positioning, give shape to elements</p>
<p class="blogtext">In order to define the shape of the elements, there are two properties. The content in the element is clipped so that it fits the shape.</p>
<p class="blogtext"><strong>Clip</strong></p>
<p class="blogtext">Shape of the element is defined by clip. Usually, this amounts to height and width of the rectangle. If the content is longer, then it will be clipped.</p>
<p class="blogtext"><strong>Overflow</strong></p>
<p class="blogtext">This tells the browser that, what should be done if the content is not fitted in the area that is clipped. The content can be hidden and it can be continued as usual.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.html.co.uk/189/css-positioning-properties-for-getting-the-desired-content-layout.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Outline Styles are often Confusing</title>
		<link>http://www.html.co.uk/185/css-outline-styles-are-often-confusing.html</link>
		<comments>http://www.html.co.uk/185/css-outline-styles-are-often-confusing.html#comments</comments>
		<pubDate>Fri, 04 Sep 2009 11:09:16 +0000</pubDate>
		<dc:creator>Editor</dc:creator>
				<category><![CDATA[HTML Tutorials]]></category>
		<category><![CDATA[cascading style sheets]]></category>
		<category><![CDATA[css layout]]></category>
		<category><![CDATA[CSS Outline Styles]]></category>
		<category><![CDATA[css tutorial]]></category>
		<category><![CDATA[outline property]]></category>

		<guid isPermaLink="false">http://www.html.co.uk/?p=185</guid>
		<description><![CDATA[Outline property of the CSS is a confusing property. When this property is learned first, it is hard to understand how the CSS Outline property is even remotely different from border property.]]></description>
			<content:encoded><![CDATA[<p class="blogtext">Outline property of the CSS is a confusing property. When this property is learned first, it is hard to understand how the CSS Outline property is even remotely different from border property. WWW explains that it has the following differences. <span id="more-185"></span></p>
<ul>
<li>Space is not utilized by Outlines</li>
<li> Outlines can be non-rectangular as well.</li>
</ul>
<p class="blogtext"><strong>Outlines don’t take up space</strong></p>
<p class="blogtext">The above statement is confusing. Just think that how objects in the webpage cannot take the space on WebPages. The outline property does not take the space because it will always be placed on top of the element’s box.<br />
Around an element, if an outline is placed, it does not have any kind of effect on how the elements are placed on the page. It will not change the position or size of the element. If the outline is put on the element, it will surely take the exact amount of the space, as it did not have any outline on the element. In the border’s case, this is not true. On an element, a border is added on the height and outside width of the element. Therefore, if there were 50-pixel wide along with a 2-pixel border, then it would take 54-pixels. The same image along with 2-pixel outline will take only 50-pixels width on the same page and the outline will display the images outside edge.</p>
<p class="blogtext"><strong>Outlines May or may not be Non-Rectangular </strong></p>
<p class="blogtext">Whenever you put up the border on the element, the browser will interpret the elements as if they were one of the giant rectangular boxes. If the box is split over many lines, the browser will just leave the edges open, as the box is not closed. It is as if a browser is seeing the border along with a wide screen, which is too wide to be measured. The wide screen is wide enough for the border to be continuous rectangle.<br />
In contrast, the edges are taken into consideration by the outline property. If the outlined element is spanned over several lines then the outline will close at the line’s end and again re-opens on the next line. If it were possible, then the outline would definitely stay fully connected and thus it creates a non-rectangular shape.<br />
The outline property must be seen and it must be compared with the border property.</p>
<p class="blogtext"><strong>Uses of the Outline Property</strong></p>
<p class="blogtext">Searching the items is the best use of the outline property. Most of the websites will do this using a background colour. However, the outline property can also be used and you need not worry about adding the extra spacing on the pages.<br />
Outline colour property will accept the term ‘invert’ that will make the outline colour the inverse colour of current background. This will allow you to highlight the elements on the dynamic WebPages even without the need to know what are the colours used.<br />
Around the active links, there would be some dotted lines and to remove them the outline property can be used.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.html.co.uk/185/css-outline-styles-are-often-confusing.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using CSS (Cascading Style Sheets): Where to Start</title>
		<link>http://www.html.co.uk/179/using-css-cascading-style-sheets-where-to-start.html</link>
		<comments>http://www.html.co.uk/179/using-css-cascading-style-sheets-where-to-start.html#comments</comments>
		<pubDate>Fri, 14 Aug 2009 14:26:12 +0000</pubDate>
		<dc:creator>Editor</dc:creator>
				<category><![CDATA[HTML Tutorials]]></category>
		<category><![CDATA[borders]]></category>
		<category><![CDATA[cascading style sheets]]></category>
		<category><![CDATA[css rules]]></category>
		<category><![CDATA[css tutorial]]></category>
		<category><![CDATA[declaration]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[page layout]]></category>
		<category><![CDATA[selector]]></category>
		<category><![CDATA[using css]]></category>

		<guid isPermaLink="false">http://www.html.co.uk/?p=179</guid>
		<description><![CDATA[For you to store style information there are three places. For all the three places, the syntax will be the same but for the sake of clarity, here we are going to discuss the styles that are placed in of the document.]]></description>
			<content:encoded><![CDATA[<p class="blogtext">For you to store style information there are three places. For all the three places, the syntax will be the same but for the sake of clarity, here we are going to discuss the styles that are placed in  of the document. <span id="more-179"></span></p>
<p class="blogtext">Rules</p>
<p class="blogtext">1.The entire style information must be stored within the &lt;/style&gt; and &lt;style&gt; element. By doing so, browser will come to know that the information stored is for styles.<br />
2.you have to include type attributes always<br />
This attributes will indicate what type of style rules you are going to use. The style that is commonly used is CSS but other than CSS, there are other types as wee such as (JSS, XSL and many others).<br />
3.In the comment tags, enclose all the style rules</p>
<p class="blogtext">By doing so, it ensures you that the older browsers even by mistake will not display style rules.</p>
<p class="blogtext">Mainly, the style rule is comprised of 2 things, the declaration and selector.</p>
<p class="blogtext">Declaration &#8211; this is a specific style call that will be helpful to affect the selector</p>
<p class="blogtext">Selector – this HTML element is the one that will be very much affected by the rule.</p>
<p class="blogtext">The syntax for the style rule will be ‘selector {property: value ;}’</p>
<p class="blogtext">So, in order to set all the bold text into red, you can write ‘b {colour: red ;}’</p>
<p class="blogtext">The thing that makes the usage of CSS very easy is that you will be able to group the components together that you like to have the similar style. Take for example: if you want all the H1, H2 and the entire bold text in red, you can write</p>
<p class="blogtext">‘b {colour: red ;}’<br />
‘h1 {colour: red;}’<br />
‘h2 {colour: red;}’</p>
<p class="blogtext">however, with the help of grouping, you will be able to put all of them on the same line.<br />
‘b, h1, h2 {colour: red;}’<br />
you can even group the rule together. Take for example, in order to make all the h3 text blue and font in Arial, you can write<br />
You can also group together rules (separated by a semi-colon (;) ). For example, to make all h3 text blue and Arial fonts, you would write:</p>
<p class="blogtext">‘h3 {<br />
font-family: Arial;<br />
colour: blue;<br />
}’<br />
Just for convention, we can put all the rules in separate line but it is not very much required.</p>
<p class="blogtext">Some Common Styles<br />
There are different font attributes that are used commonly.<br />
Font family – this specifies the font face that to be used.<br />
Font-size –  it will specify the text size.<br />
Font-style – it will specify whether the text will be displayed in normal, oblique or italic.<br />
Font variant – it will specify whether the text to be displayed in normal or small caps.<br />
Font-weight – it will specify how dark or light the text will be<br />
The other style that is commonly used is the ‘text-decoration’. Along with this tag, you will be able to remove underlines from various links, put the lines through the marked out text or else can make the text blink.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.html.co.uk/179/using-css-cascading-style-sheets-where-to-start.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

