<?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>XHTML help, using XHTML and CSS</title>
	<atom:link href="http://www.xhtmltips.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xhtmltips.co.uk</link>
	<description>... coding abc ... well formed and valid XML with CSS</description>
	<lastBuildDate>Wed, 25 Feb 2009 15:32:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>CSS Tip: CSS Equivalent to CELLSPACING=0</title>
		<link>http://www.xhtmltips.co.uk/2008/02/20/css-tip-css-equivalent-to-cellspacing0/</link>
		<comments>http://www.xhtmltips.co.uk/2008/02/20/css-tip-css-equivalent-to-cellspacing0/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 14:10:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[HTML help]]></category>
		<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/2008/02/20/css-tip-css-equivalent-to-cellspacing0/</guid>
		<description><![CDATA[When using the TABLE tag, there are two attributes that are commonly added; cellspacing and cellpadding. For padding, there is an obvious match with the CSS definition padding. Indeed the attribute for padding-top, padding-bottom, padding-left and padding-right all behave as expected. However there is no directly corresponding property for cellspacing. One might assume that the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.xhtmltips.co.uk/wp-content/uploads/2008/02/table.jpg" title="table.jpg" alt="table.jpg" align="right" />When using the TABLE tag, there are two attributes that are commonly added; <em>cellspacing </em>and <em>cellpadding</em>. For padding, there is an obvious match with the CSS definition <em>padding.</em> Indeed the attribute for <em>padding-top, padding-bottom, padding-left </em>and <em>padding-right</em>  all behave as expected. However there is no directly corresponding property for <em>cellspacing</em>. One might assume that the <em>margin </em>property would provide the same functionality and layout control, but it does not apply to table cells.</p>
<p><span id="more-38"></span></p>
<p>It may be tempting to simply include the <em>cellpadding</em> attribute within the table, though there is a CSS equivalent that can be used :-<br />
<code><br />
border-spacing: 3px;<br />
</code></p>
<p>This allows the spacing between cells to be controlled the same as would be possible with <em>cellspacing</em> but with a CSS only solution.</p>
<p>One of the commonest reasons for using <em>cellspacing</em> is to remove any spacing at all from table cells, with <em>cellspacing=0</em>. Historically this has been when tables are used for layout purposes. Whilst this is no longer advisable for layout, there are times when tabular data can benefit for zero spacing. With CSS this can be accomplished as follows :</p>
<p><code> border-spacing: 3px;<br />
border-collapse: collapse;</code></p>
<p>The full affect of <em>table cellspacing</em> with a CSS only solution.</p>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2008%2F02%2F20%2Fcss-tip-css-equivalent-to-cellspacing0%2F&amp;title=CSS+Tip%3A+CSS+Equivalent+to+CELLSPACING%3D0', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2008/02/20/css-tip-css-equivalent-to-cellspacing0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS SHOUTING! &#8211; changing text case with CSS.</title>
		<link>http://www.xhtmltips.co.uk/2007/10/24/css-shouting-changing-text-case-with-css/</link>
		<comments>http://www.xhtmltips.co.uk/2007/10/24/css-shouting-changing-text-case-with-css/#comments</comments>
		<pubDate>Wed, 24 Oct 2007 11:16:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/2007/10/24/css-shouting-changing-text-case-with-css/</guid>
		<description><![CDATA[Ever had to wade through pages of text on a website to amend the appearance of titles or paragraph headings, to make sure they all look consistent? It can be no fun, especially if you have a site which has content added by multiple authors, all with slightly different preferences in typing. Should text be: [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.xhtmltips.co.uk/wp-content/uploads/2007/10/oddcase.jpg" title="UPPERCASE, lowercase or MixCase?" alt="UPPERCASE, lowercase or MixCase?" align="left" />Ever had to wade through pages of text on a website to amend the appearance of titles or paragraph headings, to make sure they all look consistent?</p>
<p>It can be no fun, especially if you have a site which has content added by multiple authors, all with slightly different preferences in typing.</p>
<p>Should text be: ALL UPPERCASE? all lowercase? Or Capitalised? With CSS you can define the appearance of text with the text-transform property.</p>
<p><span id="more-47"></span></p>
<p>The values of the text-transform property  can be any one of: none, capitalise, uppercase or lowercase. When these are applied to a CSS class or definition, it becomes possible to ensure that all text is displayed consistently. The following examples will all use paragraph headings &lt;h3&gt; with inline CSS for convenience. CSS will be used to transform the text appearance.</p>
<h3 style="text-transform: uppercase">this text is all written in lower case</h3>
<p>Title has the following CSS property and HTML/text:  <code>&lt;h3 style="text-transfrom: uppercase;"&gt;this text is all written in lower case&lt;/h3&gt;</code></p>
<h3 style="text-transform: lowercase">THIS TEXT IS ALL WRITTEN IN UPPERCASE</h3>
<p>Title has the following CSS property and HTML/text:  <code>&lt;h3 style="text-transfrom: lowercase;"&gt;THIS TEXT IS ALL WRITTEN IN UPPERCASE&lt;/h3&gt;</code></p>
<h3 style="text-transform: capitalize">this text is all written in lower case</h3>
<p>Title has the following CSS property and HTML/text:  <code>&lt;h3 style="text-transfrom: capitalize;"&gt;this text is all written in lower case&lt;/h3&gt;</code></p>
<p><strong>NB: </strong>it is important to note the spelling of <em>capitalize</em> with a <strong>z</strong> &#8211; spelling the value <em>capitalise </em>is not a valid value.</p>
<p>Whilst this property is particular useful for headings and it also value in lists &lt;ul&gt; / &lt;ol&gt; &lt;li&gt; &#8211; and navigation / menu text. By giving the user a consistent text appearance for these items it helps to make a website interface much more intuitive.</p>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2007%2F10%2F24%2Fcss-shouting-changing-text-case-with-css%2F&amp;title=CSS+SHOUTING%21+%26%238211%3B+changing+text+case+with+CSS.', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2007/10/24/css-shouting-changing-text-case-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Tip &#8211; Scrollable DIVs; using overflow, overflow-x and overflow-y</title>
		<link>http://www.xhtmltips.co.uk/2007/10/01/css-tip-scrollable-divs-using-overflow-overflow-x-and-overflow-y/</link>
		<comments>http://www.xhtmltips.co.uk/2007/10/01/css-tip-scrollable-divs-using-overflow-overflow-x-and-overflow-y/#comments</comments>
		<pubDate>Mon, 01 Oct 2007 12:53:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/2007/10/01/css-tip-scrollable-divs-using-overflow-overflow-x-and-overflow-y/</guid>
		<description><![CDATA[An alternative to FRAMES and IFRAMES within a XHTML document where page layout is fixed, but content needs to be within a scrollable area, is to use a DIV and set the CSS attribute &#8216;overflow&#8217;. This is relatively straight forward to do and works in all modern browsers. In the event that CSS is disabled [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.xhtmltips.co.uk/wp-content/uploads/2007/10/scrollable_divs.jpg" title="scrollable divs example" alt="scrollable divs example" align="right" />An alternative to <code>FRAMES</code> and <code>IFRAMES</code> within a XHTML document where page layout is fixed, but content needs to be within a scrollable area, is to use a <code>DIV </code>and set the CSS attribute &#8216;overflow&#8217;. This is relatively straight forward to do and works in all modern browsers.  In the event that CSS is disabled or the content is read by a search engine spider, the <code>DIV </code>behaves like any other block level element. This avoids the problem associated with <code>FRAMES </code>and <code>IFRAMES </code>where a search engine does not relate the frame content to the parent page.</p>
<p><span id="more-45"></span><br />
There are three variations to the <code>'overflow</code>&#8216; attribute and four possible values;</p>
<p>The variations are:</p>
<ul>
<li>overflow: Set property for both vertical and horizontal scrolling. Widely supported.</li>
<li>overflow-x: and overflow-y: Set property for each axis; vertical and horizontal. Variable browser support.</li>
</ul>
<p>Acceptable property values are:</p>
<ul>
<li>Visible: text will render outside the element beyond <code>DIV </code>dimensions;</li>
<li>Hidden:  Contents will be clipped, unable to be seen outside <code>DIV </code>dimensions</li>
<li>Scroll:  Contents will be clipped, with a scroll-bar to see the rest of the content</li>
<li>Auto:  No scroll bar, unless content is larger than <code>DIV </code>dimensions.</li>
</ul>
<p><strong>NB:</strong> Some browsers do not support the overflow-x and overflow-y properties, which can lead to unexpected layout problems when you only want the DIV to scroll on one axis. To ensure maximum compatibility use both overflow and overflow-x and/or overflow-y. The following example displays a DIV which by default has auto scrolling, but for browsers that support overflow-x, only scrolls horizontally:</p>
<p>overflow: auto;<br />
overflow-x: scroll !important;</p>
<p><strong>Code fragment:</strong></p>
<p><code>&lt;div style="overflow: auto; width: 600px; height: 50px;"&gt;</code><br />
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam pretium est ac mi. Sed eget sem vitae justo viverra nonummy. Sed adipiscing. Nullam pretium adipiscing ligula. Aliquam vitae dui. Nam enim arcu, hendrerit et, iaculis lobortis, posuere euismod, lacus. Praesent scelerisque lectus a urna. Morbi interdum. Aliquam adipiscing. Aliquam in mi. Pellentesque ac lectus id purus hendrerit<br />
euismod.<code>&lt;/div&gt;</code></p>
<p>An example can be seen in action here&#8230;<br />
<!-- code here uses P and operates the same as the DIV --></p>
<p style="border: 1px solid black; overflow: auto; width: 600px; height: 50px"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam pretium est ac mi. Sed eget sem vitae justo viverra nonummy. Sed adipiscing. Nullam pretium adipiscing ligula. Aliquam vitae dui. Nam enim arcu, hendrerit et, iaculis lobortis, posuere euismod, lacus. Praesent scelerisque lectus a urna. Morbi interdum. Aliquam adipiscing. Aliquam in mi. Pellentesque ac lectus id purus hendrerit euismod.</p>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2007%2F10%2F01%2Fcss-tip-scrollable-divs-using-overflow-overflow-x-and-overflow-y%2F&amp;title=CSS+Tip+%26%238211%3B+Scrollable+DIVs%3B+using+overflow%2C+overflow-x+and+overflow-y', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2007/10/01/css-tip-scrollable-divs-using-overflow-overflow-x-and-overflow-y/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Basics &#8211; CSS color / colour codes</title>
		<link>http://www.xhtmltips.co.uk/2007/09/12/css-basics-css-color-colour-codes/</link>
		<comments>http://www.xhtmltips.co.uk/2007/09/12/css-basics-css-color-colour-codes/#comments</comments>
		<pubDate>Wed, 12 Sep 2007 13:22:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/2007/09/12/css-basics-css-color-colour-codes/</guid>
		<description><![CDATA[Black text on a white background can get kind of boring. It looks a little old-school too. Here is how to spice up your site with a little color. There are several color values that you can use Three digit hex Six digit hex Integer Float The two most common are the three digit and [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.xhtmltips.co.uk/wp-content/uploads/2007/09/css_colors.jpg" title="css_colors.jpg" alt="css_colors.jpg" style="margin-right: 10px" align="left" />Black text on a white background can get kind of boring. It looks a little old-school too. Here is how to spice up your site with a little color. There are several color values that you can use</p>
<ul>
<li>Three digit hex</li>
<li>Six digit hex</li>
<li>Integer</li>
<li>Float</li>
</ul>
<p><span id="more-37"></span></p>
<p>The two most common are the three digit and six digit hex values. They take the format #RGB and #RRGGBB where R stands for red, G stands for green and B stands for blue. The color codes need to be prefaced with a # sign, to indicate that they represent a hex value. The shortened three digit version is used when each of the RGB value pairs are the same, thus, #ff00ff could be abbreviated to #f0f.   A discussion of RGB values are beyond the scope of this article, but a commonly used set of colors is the &#8216;web safe&#8217; palette. This consists of the 216 colors which will reliable display correctly on all monitors, including older 256 color screens.</p>
<p>Some common values are:</p>
<ul>
<li style="color: black">Black:  #000</li>
<li style="color: white">White:  #fff <span style="color: #999999">[white!]</span></li>
<li style="color: red">Red:  #f00</li>
<li style="color: blue">Blue:  #00f</li>
<li style="color: yellow">Yellow:  #ff0</li>
</ul>
<p>To color text, or foreground colors use the color property:</p>
<p><code style="color: #ff0000">p {color:#f00}</code></p>
<p>To color the background use the background-color property:</p>
<p><code style="background-color: #0000ff; color: white">p {background-color:#00f}</code></p>
<p>Borders also have color properties, set by using the border-color, or border-top-color, border-left-color, border-right-color, border-bottom-color values.</p>
<p>Final there are 16 officially named colors designated by the W3C, these are :-</p>
<ul>
<li style="color: aqua">aqua</li>
<li style="color: black">black</li>
<li style="color: blue">blue</li>
<li style="color: fuchsia">fuchsia</li>
<li style="color: gray">gray</li>
<li style="color: green">green</li>
<li style="color: lime">lime</li>
<li style="color: maroon">maroon</li>
<li style="color: navy">navy</li>
<li style="color: olive">olive</li>
<li style="color: purple">purple</li>
<li style="color: red">red</li>
<li style="color: silver">silver</li>
<li style="color: teal">teal</li>
<li style="color: white">white <span style="color: #999999">[white!]</span></li>
<li style="color: yellow">yellow</li>
</ul>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2007%2F09%2F12%2Fcss-basics-css-color-colour-codes%2F&amp;title=CSS+Basics+%26%238211%3B+CSS+color+%2F+colour+codes', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2007/09/12/css-basics-css-color-colour-codes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS basics &#8211; font-weight and font-style</title>
		<link>http://www.xhtmltips.co.uk/2007/08/22/css-basics-font-weight-and-font-style/</link>
		<comments>http://www.xhtmltips.co.uk/2007/08/22/css-basics-font-weight-and-font-style/#comments</comments>
		<pubDate>Wed, 22 Aug 2007 09:35:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/2007/08/22/css-basics-font-weight-and-font-style/</guid>
		<description><![CDATA[The appearance of text can be further controlled on webpages with the font-style and font-weight properties which provide the ability to italicize and bold text. The use of these definitions is a replacement to the deprecated tag &#60;b&#62; and &#60;i&#62; font-style The font-style is used to make text italic, oblique [Whilst this is a different [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.xhtmltips.co.uk/wp-content/uploads/2007/08/fonts.jpg" title="CSS fonts" alt="CSS fonts" align="left" hspace="7" />The appearance of text can be further controlled on webpages with the font-style and font-weight properties which provide the ability to <em>italicize</em> and <strong>bold</strong> text.</p>
<p>The use of these definitions is a replacement to the deprecated tag &lt;b&gt; and &lt;i&gt;</p>
<p><span id="more-36"></span></p>
<p><u><strong>font-style</strong></u></p>
<p>The font-style is used to make text <em>italic</em>, <span style="font-style: oblique">oblique</span> [Whilst this is a different definition, where the text is intended to be a slanted normal font, the result in most browsers is the same as italic.] or normal. Note that not all fonts have an italic version, so results using uncommon fonts may vary.</p>
<p><code>p {font-style:italic}</code> <span style="font-style: italic">sample</span><br />
<code>p {font-style:oblique}</code> <span style="font-style: oblique">sample</span><br />
<code>p {font-style:normal}</code> <span style="font-style: normal">sample</span><br />
<code>p {font-style:inherit}</code> <span style="font-style: inherit">sample</span></p>
<p><u><strong>font-weight</strong></u></p>
<p>In order to specify how bold a font is, the font-weight property can be used. Font weight can be specified in several ways, either by keyword or by numerical value. Available keywords are normal, bold, bolder, and lighter. The numerical values were created to avoid confusion with font names and are values starting at 100 and going to 900 in increments of 100. A value of 400 is the same as normal, and a value of 700 is the same as bold.</p>
<p><code>p {font-weight:400}</code> <span style="font-weight: 400">sample</span></p>
<p><code>strong {font-weight:700}</code> <strong style="font-weight: 700">sample</strong></p>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2007%2F08%2F22%2Fcss-basics-font-weight-and-font-style%2F&amp;title=CSS+basics+%26%238211%3B+font-weight+and+font-style', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2007/08/22/css-basics-font-weight-and-font-style/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSS Basics &#8211; font definitions</title>
		<link>http://www.xhtmltips.co.uk/2007/08/06/css-basics-font-definitions/</link>
		<comments>http://www.xhtmltips.co.uk/2007/08/06/css-basics-font-definitions/#comments</comments>
		<pubDate>Mon, 06 Aug 2007 12:46:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/2007/08/06/css-basics-font-definitions/</guid>
		<description><![CDATA[Since font tags are deprecated, CSS should now be used to specify document fonts. There are several properties available of which, the most commonly used are the font-family and font-size. eg. font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-family font-family defines the font that is to be used on a given element. This needs to [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.xhtmltips.co.uk/wp-content/uploads/2007/08/fonts.jpg" title="CSS fonts" alt="CSS fonts" align="right" />Since font tags are deprecated, CSS should now be used to specify document fonts. There are several properties available of which, the most commonly used are the font-family and font-size.</p>
<p>eg.</p>
<p><code>font-family: Verdana, Arial, Helvetica, sans-serif;<br />
font-size: 11px;</code></p>
<p><span id="more-35"></span></p>
<p><em><strong>font-family</strong></em></p>
<p>font-family defines the font that is to be used on a given element. This needs to be the actual name of a font and if it has spaces then it will need quotes around it. A list of fonts to use should be provided in the event that the first font is not found, so that a suitable substitute may be used. The list should end with a generic font-family such as serif, sans-serif, cursive, fantasy, or monospace. Basic fonts include arial, times, &#8220;times new roman&#8221;, courier, helvetica, and verdana.</p>
<p><code>p {font-family:arial,verdana,sans-serif}</code></p>
<p><em><strong>font-size</strong></em></p>
<p>Font-size can be set using values such as xx-small or large but more often it is better to use one of three specific units: em, pixels, or percentages. Both em and percentages are relative to the parent element; because of this, be careful when nesting styles and defining font-sizes, as each one will be relative to the parent element. So if you have a base size of 10px, 2em would equal 20px and 200% would equal 20px.</p>
<p>Pixels will give more control on most standard displays from screen to screen by bypassing the users default font size. Because the font bypasses the users default it is not generally recommended. If someone has a default font size of 40px and your page is set to 10px itâ€™s going to be much too small for the user. They may have to size up the page in order to see it clearly.</p>
<p>Where possible a relative font-size should be used. With an increase in use of mobile phones and other web-browsing devices, there is no guarantee that website visitors are using a &#8216;standard monitor&#8217; any more.</p>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2007%2F08%2F06%2Fcss-basics-font-definitions%2F&amp;title=CSS+Basics+%26%238211%3B+font+definitions', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2007/08/06/css-basics-font-definitions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS Basics &#8211; Structure of CSS style definitions.</title>
		<link>http://www.xhtmltips.co.uk/2007/07/24/css-basics-structure-of-css-style-definitions/</link>
		<comments>http://www.xhtmltips.co.uk/2007/07/24/css-basics-structure-of-css-style-definitions/#comments</comments>
		<pubDate>Tue, 24 Jul 2007 10:32:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/2007/07/24/css-basics-structure-of-css-style-definitions/</guid>
		<description><![CDATA[The basic building blocks of CSS are rule sets. Each rule set is comprised of a selector and a declaration block. Each declaration block has zero or more declarations, or styles. Here is a basic rule set: p { background-color:#ffcc00; font-size:120% } The selector is the element that is being styled, in this case it [...]]]></description>
			<content:encoded><![CDATA[<p>The basic building blocks of CSS are rule sets. Each rule set is comprised of a selector and a declaration block. Each declaration block has zero or more declarations, or styles. Here is a basic rule set:</p>
<p><code>p {<br />
background-color:#ffcc00;<br />
font-size:120%<br />
}</code></p>
<p><span id="more-34"></span></p>
<p>The selector is the element that is being styled, in this case it is the p element. If this selector was limited to a p elements of a particular class, for example <em>someClassName</em>, this would be written as :</p>
<p><code>p.<em>someClassName</em> { ...  }</code></p>
<p>A further refinement would be to limit this selector to a particluar element id, such as <em>someIDName</em>  :</p>
<p><code>p#<em>someIDName</em> { ...  }</code></p>
<p>Multiple selectors can be included for a single declaration by separating them with a comma :</p>
<p><code>p,<br />
p.<em>someClassName,<br />
</em>p#<em>someIDName</em> { ... }</code></p>
<p>Another selector which can be used is the wildcard &#8216;*&#8217;. The following example selector would be applied to ALL elements within p.<em>someClassName</em> :</p>
<p><code>p.<em>someClassName </em>* { ... }</code></p>
<p>The example rule set above will add a background color to all paragraphs and increase their font size by 120%.</p>
<p>The declaration block is everything between the curly braces â€œ{â€¦}â€. This rule set has two declarations within the declaration block, each with a property and a value. The properties come before the colon and the values come after the colon, so our first property is <em>background-color</em> and it has a value of <em>#ffcc00</em> (a hex color value). It is possible to many declarations for a given selector.</p>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2007%2F07%2F24%2Fcss-basics-structure-of-css-style-definitions%2F&amp;title=CSS+Basics+%26%238211%3B+Structure+of+CSS+style+definitions.', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2007/07/24/css-basics-structure-of-css-style-definitions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Basics &#8211; How to comment CSS style definitions.</title>
		<link>http://www.xhtmltips.co.uk/2007/07/16/css-basics-how-to-comment-css-style-definitions/</link>
		<comments>http://www.xhtmltips.co.uk/2007/07/16/css-basics-how-to-comment-css-style-definitions/#comments</comments>
		<pubDate>Mon, 16 Jul 2007 18:06:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/2007/07/16/css-basics-how-to-comment-css-style-definitions/</guid>
		<description><![CDATA[One important practice when creating Cascading Style Sheets (CSS) is to include comprehensive comments in the files. This will help to keep things organized and well documented, which is priceless when it comes to maintaining a site for several years, and avoiding future frustration! This is the basic structure: /* your comment here */ It [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.xhtmltips.co.uk/wp-content/uploads/2007/08/frustrating_css.jpg" title="Fustration" alt="Fustration" align="right" />One important practice when creating Cascading Style Sheets (CSS) is to include comprehensive comments in the files. This will help to keep things organized and well documented, which is priceless when it comes to maintaining a site for several years, and avoiding future frustration!</p>
<p>This is the basic structure:</p>
<p>/* your comment here */</p>
<p><span id="more-33"></span></p>
<p>It is especially important to comment any hacks that may have been employed when coming up with complex styles. Although hacks should be avoided to ensure that stylesheets are <em>futureproof </em>there may be occasions when it becomes necessary; for example when a client insists on a feature!</p>
<p>There is obviously a slight additional overhead when adding extra text (and therefore bytes) to CSS files, in terms of bandwidth; however the time saving on future maintenance, more than compensates for such additional resources in most circumstances. A later article will focus on CSS file compression and optimisation techniques for sites with high traffic to help improve page load time and bandwidth usage.</p>
<p>Another great use for comments is organizing your files. Douglas Bowman of Stopdesign employs a great technique; itâ€™s kind of like section headers, but for CSS. Simply add a one word title to a section in a comment with an = sign in front of it can more easily be searched for.</p>
<p>/* =lists */</p>
<p>Douglas likes to add dashed line underneath it to make it stand out a little more.</p>
<p>/* =lists<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; */</p>
<p>Plain and simple, but it sure helps.</p>
<p>Another great tip comes from Garrett Dimon who recommends the use of a color glossary. Basically just put a list of the colors used in your design at the top of your CSS file for quick reference.</p>
<p>/* =colors<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Dk blue: #871b2<br />
Lt blue: #1485cc<br />
Yellow: #fff419<br />
*/</p>
<p>NB: credit is hereby given to those named above for sharing their ideas. By sharing we all learn more. Kudos.</p>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2007%2F07%2F16%2Fcss-basics-how-to-comment-css-style-definitions%2F&amp;title=CSS+Basics+%26%238211%3B+How+to+comment+CSS+style+definitions.', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2007/07/16/css-basics-how-to-comment-css-style-definitions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Basics &#8211; Where to put the style definitions.</title>
		<link>http://www.xhtmltips.co.uk/2007/06/28/css-basics-where-to-put-the-style-definitions/</link>
		<comments>http://www.xhtmltips.co.uk/2007/06/28/css-basics-where-to-put-the-style-definitions/#comments</comments>
		<pubDate>Thu, 28 Jun 2007 10:03:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Tips]]></category>
		<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/2007/06/28/css-basics-where-to-put-the-style-definitions/</guid>
		<description><![CDATA[Fundamental to XHTML is the concept of separating presentational elements from structural elements. This is achieved by the use of Cascading Style Sheets (CSS). CSS can be included in documents in several ways; inline, embedded, and external. It is not recommended to use the inline method for styling documents because it defeats the purpose of [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.xhtmltips.co.uk/wp-content/uploads/2007/06/css_clip.jpg" title="CSS paper clip" alt="CSS paper clip" align="right" />Fundamental to XHTML is the concept of separating presentational elements from structural elements. This is achieved by the use of Cascading Style Sheets (CSS). CSS can be included in  documents in several ways; inline, embedded, and external. It is not recommended to use the inline method for styling documents because it defeats the purpose of separating presentation from structure. If there is no other alternative, it is possible to include the style attribute on almost any element.</p>
<p><span id="more-30"></span></p>
<p><code>&lt;p style="background-color:#cc9900"&gt;A background-color inline CSS style has been applied to this element.&lt;/p&gt;</code></p>
<p>To embed CSS styles in a page it is necessary to create a style block in the head section of the document. This is a better approach than inline styles because it allows for the control of all CSS styles for a whole document in one place.</p>
<p><code>&lt;head&gt;<br />
&lt;title&gt;Title of Document&lt;/title&gt;<br />
&lt;style type="text/css"&gt;<br />
p {background-color:#cc9900}<br />
&lt;/style&gt;<br />
&lt;/head&gt;</code></p>
<p>Lastly, the recommended method for adding CSS styling to documents is to include a link to an external style sheet in the head of the document. This method also has the benefit that many documents can use the same style sheet definitions.</p>
<p><code>&lt;head&gt;<br />
&lt;title&gt;Title of Document&lt;/title&gt;<br />
&lt;link rel="stylesheet" type="text/css" href="http://www.xhtmltips.co.uk/myspace/background_style.css" /&gt;<br />
&lt;/head&gt;</code></p>
<p>The rel attribute defines the relationship between the document and the external link. In this case the external link is a style sheet for the document. The type attribute specifies that weâ€™re linking to a document that should be interpreted as text/css. The most import attribute is href, however, which defines the URL to the stylesheet.</p>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2007%2F06%2F28%2Fcss-basics-where-to-put-the-style-definitions%2F&amp;title=CSS+Basics+%26%238211%3B+Where+to+put+the+style+definitions.', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2007/06/28/css-basics-where-to-put-the-style-definitions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>XHTML Basics: Accessibility for tables; captions and summaries</title>
		<link>http://www.xhtmltips.co.uk/2007/06/20/xhtml-basics-accessibility-for-tables-captions-and-summaries/</link>
		<comments>http://www.xhtmltips.co.uk/2007/06/20/xhtml-basics-accessibility-for-tables-captions-and-summaries/#comments</comments>
		<pubDate>Wed, 20 Jun 2007 17:35:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[XHTML tips]]></category>

		<guid isPermaLink="false">http://www.xhtmltips.co.uk/2007/06/20/xhtml-basics-accessibility-for-tables-captions-and-summaries/</guid>
		<description><![CDATA[If you want to create great tables that are understandable in alternative browsers, such as text-only and voice browsers, youâ€™ll want to include table headers. Our accessibility tweaks donâ€™t stop there though. Two more elements that will make your tables more usable and informative are captions and summaries. A caption is a visible quick-take of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.xhtmltips.co.uk/category/html-help/" title="HTML help category"><img src="http://www.xhtmltips.co.uk/wp-content/uploads/2007/06/html_help.jpg" title="HTML help, with braille." alt="HTML help, with braille." align="right" border="0" hspace="3" /></a>If you want to create great tables that are understandable in alternative browsers, such as text-only and voice browsers, youâ€™ll want to include table headers. Our accessibility tweaks donâ€™t stop there though. Two more elements that will make your tables more usable and informative are captions and summaries.</p>
<p><span id="more-28"></span><br />
A caption is a visible quick-take of your table and should always be the first element in your table markup.</p>
<p><code>&lt;table&gt;<br />
&lt;caption&gt;Top threats to consumer security.&lt;/caption&gt;<br />
...<br />
&lt;/table&gt;</code></p>
<p>Your table will look something like this with the added caption:</p>
<p><em><code>Risk assessment of consumer threats and Internet safety.</code></em></p>
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><strong>Article link<br />
</strong></td>
<td align="center" valign="top" width="197"><strong>Internet safety threat</strong></td>
<td align="center" valign="top" width="197"><strong>Risk factor</strong></td>
</tr>
<tr>
<td align="center" valign="top" width="197"><a href="http://www.eliteracy.co.uk/2007/email/phishing/" title="Phishing dangers" target="_blank">Phishing dangers</a></td>
<td align="center" valign="top" width="197">Phishing, identity theft</td>
<td align="center" valign="top" width="197">82%</td>
</tr>
<tr>
<td align="center" valign="top" width="197"><a href="http://www.eliteracy.co.uk/2006/internet-crime/antivirus/" title="Antivirus software" target="_blank">Antivirus software</a></td>
<td align="center" valign="top" width="197">Viruses protection</td>
<td align="center" valign="top" width="197">76%</td>
</tr>
</table>
<p>To provide a little more information to those alternative browsers we can include the summary attribute. This attribute just gives a little more information about the data in the table and will not be displayed in browsers such as Internet Explorer and Firefox.</p>
<p><code>&lt;table summary="Results of a web developer survey assessing consumers risks and Internet safety."&gt;<br />
&lt;caption&gt;Risk assessment of consumer threats and Internet safety.&lt;/caption&gt;<br />
...<br />
&lt;/table&gt;</code></p>
<div><a href="http://www.addthis.com/bookmark.php" onclick="window.open('http://www.addthis.com/bookmark.php?pub=digify&amp;url=http%3A%2F%2Fwww.xhtmltips.co.uk%2F2007%2F06%2F20%2Fxhtml-basics-accessibility-for-tables-captions-and-summaries%2F&amp;title=XHTML+Basics%3A+Accessibility+for+tables%3B+captions+and+summaries', 'addthis', 'scrollbars=yes,menubar=no,width=620,height=520,resizable=yes,toolbar=no,location=no,status=no'); return false;" title="Bookmark using any bookmark manager!" target="_blank"><img src="http://s3.addthis.com/button1-bm.gif" width="125" height="16" border="0" /></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.xhtmltips.co.uk/2007/06/20/xhtml-basics-accessibility-for-tables-captions-and-summaries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
