<?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>Computer Training - Video Tutorials &#187; CSS and XHTML</title>
	<atom:link href="http://www.talentedpixel.com/category/css-and-xhtml/feed" rel="self" type="application/rss+xml" />
	<link>http://www.talentedpixel.com</link>
	<description>Create without Limits</description>
	<lastBuildDate>Mon, 23 Aug 2010 21:22:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Beginners HTML Tutorial &#8211; Web Design Basics</title>
		<link>http://www.talentedpixel.com/css-and-xhtml/beginners-html-tutorial-web-design-basics.html</link>
		<comments>http://www.talentedpixel.com/css-and-xhtml/beginners-html-tutorial-web-design-basics.html#comments</comments>
		<pubDate>Sat, 01 Nov 2008 17:25:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS and XHTML]]></category>
		<category><![CDATA[CSS Tutorial]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.talentedpixel.com/?p=331</guid>
		<description><![CDATA[Are you new to the world of Web Design?, this tutorial is just what you need to get started, it&#8217;s aimed at the beginner and assumes no prior knowledge.
What is HTML?
HTML  is the most crucial building block of a website. There are many other tools  you’ll hear from people talking about making websites [...]]]></description>
			<content:encoded><![CDATA[<p>Are you new to the world of Web Design?, this tutorial is just what you need to get started, it&#8217;s aimed at the beginner and assumes no prior knowledge.</p>
<h4>What is HTML?</h4>
<p>HTML  is the most crucial building block of a website. There are many other tools  you’ll hear from people talking about making websites – Javascript, PHP, ASP,  SQL to name a few – but without HTML you can’t even get started.</p>
<p>HTML  is a “markup language” – a structured way of controlling layout and appearance  of text, graphics and other elements on a web page. More recently it has  developed into “XHTML” which is essentially a stricter and more uniform set of  rules for writing HTML. All our code in these articles will be written to the  latest XHTML standards, and we’ll use the terms HTML and XHTML interchangeably.</p>
<p>The  other thing we’ll be covering in these articles is CSS. This is a way of controlling  the style – color, size, font, position, and so on – of various aspects of your  page. Its real advantage is that it allows you to alter these properties of  more than one area of your page at once, so that you don’t have to set  everything individually many times over. We’ll look more at this later on.</p>
<h4>What is HTML not?</h4>
<p>HTML  only allows for static content. That is, pages that do not change in response  to user’s commands, and do not draw data out of another source like a database.  We’ll look at the best way to achieve “dynamic” pages later on.</p>
<h4>HTML is not perfect!</h4>
<p>Like  anything HTML has its flaws. Over the years the HTML specification has been  expanded and altered to take into account users’ demands. However the various  internet browsers – Internet Explorer, FireFox, etc – have occasionally made  modifications of their own. Some of these were intentional and some were not  (i.e. bugs!). As a result, there may be differences between the way a page  displays in one browser and another (or even between different versions of the  same browser).</p>
<p>Fortunately,  today this is less of an issue as all the browsers move towards full and proper  compliance with the published standards. However there are still plenty of  users who have older versions of the browsers on their computers. You need to  be aware of this problem but don’t worry too much for now. We’ll address it as  and when it comes up.</p>
<h4>What do you need to get started?</h4>
<p><em>An Editor </em></p>
<p>This  is a program to write your code in. Any text editor will do the job, for  example Notepad (which you can probably find under Accessories in your Start  menu).</p>
<p>However  many developers choose to use something a bit more advanced. It can be really  useful, particularly when you’re learning, to have an editor that automatically  color codes your work to help you tell the code apart from the content. There  are lots of editors available that do this. My favourite is EditPlus, which  you’ll see in the screenshots in these articles, and is available on a free  trial at <a rel="nofollow" href="http://www.editplus.com/">www.editplus.com</a>.</p>
<p>You  may be familiar with programs like Dreamweaver which will write most of the  code for you. These are called “WYSIWYG” editors – <em>What You See Is What You Get</em>. They certainly have their place as  they can save a lot of time. However they will never be able to do everything  that you need them to – so are no substitute for understanding the code behind  the scenes. It’s best to learn to write the code properly to start with, and  then, if you want to, use a program like Dreamweaver to remove the monotonous  tasks, we do offer some excellent <a href="http://www.computer-training-software.com/dreamweaver-cs3.htm">Dreamweaver Tutorials</a> for users who decide to go this route.</p>
<p><em>A Browser</em></p>
<p>You’ll  already have one of these if you are reading this article! Popular browsers  include Internet Explorer (http://www.microsoft.com/ie) and FireFox  (http://www.mozilla.com/en-US) , but there are lots more. It doesn’t really  matter which you use but just make sure if you can that whatever browser you  are using is a recent version (current versions are Internet Explorer 7 and  FireFox 3).</p>
<p>That’s  it – we’re ready to get started!</p>
<h4>Writing your first HTML page</h4>
<p>HTML  uses “tags” to control display of your content. A tag is a word or letter  enclosed by angular brackets – e.g. &lt;p&gt; is the tag for a new paragraph, and &lt;title&gt; is the tag for the title of your page.</p>
<p>Every  tag must be opened and closed. This is especially important to remember – a lot  of the time the page will still work if you don’t add the closing part, but  results will be unpredictable, particularly in older browsers. It’s best to get  into the habit now.</p>
<p>To  close a tag, add a slash before the word in the tag. E.g. &lt;/p&gt; or &lt;/title&gt;. For example, to make a paragraph of text:</p>
<p><span style="font-family: Courier New,Courier,monospace;">&lt;p&gt; Text goes here &lt;/p&gt;</span></p>
<h4>Outline of the page</h4>
<p>Every  page needs a few tags before you can think about having any content. Look at  the example below then we’ll go through it line by line.</p>
<p style="font-family: Courier New, Courier, monospace;">&lt;html&gt;</p>
<p>&lt;head&gt;</p>
<p>&lt;title&gt;Page  Title&lt;/title&gt;</p>
<p>&lt;/head&gt;</p>
<p>&lt;body&gt;</p>
<p>&lt;/body&gt;</p>
<p>&lt;/html&gt;</p>
<p>The  &lt;html&gt; tag is fairly self explanatory! It’s important  though so don’t forget it. Below that we have the &lt;head&gt; tag which starts a section where you can include  various pieces of information about the page.</p>
<p>The  &lt;title&gt; tag tells the browser what the heading of the whole page is. This  is displayed in the title bar at the top of the browser,</p>
<p>&lt;image  1 &gt;<img src="http://www.talentedpixel.com/wp-content/themes/revolution_music-10/images344/one.jpg" alt="" /></p>
<p>not  actually on the page itself. Put something sensible in here – this is a key  thing that the search engines look at when ranking your page. Rather than just  putting something like “Home” or “Welcome” try to have a heading that includes  some key words about your site.</p>
<p>After  the title we need to close this tag with &lt;/title&gt;, then finally close the header section with &lt;/head&gt;.</p>
<p>&lt;body&gt;  is the section of the page that includes all the content visible to the user.  At the moment we don’t have any content so this is followed by the &lt;/body&gt; tag to close this section.</p>
<p>Then  the &lt;/html&gt; means it’s the end of the page.</p>
<h4>HTML is hierarchical</h4>
<p>Take  another look at the code above. Every tag is opened and closed, and is fully  enclosed within its parent (&lt;head&gt; is a child of &lt;html&gt;, and &lt;head&gt; is a parent of &lt;title&gt;).</p>
<p>It  is important to make sure the closing tag comes in the right place. E.g. &lt;head&gt;&lt;title&gt;  &lt;/title&gt;&lt;/head&gt; is  right but &lt;head&gt;&lt;title&gt; &lt;/head&gt;&lt;/title&gt; is not. You need to make sure that when you write  a closing tag, all other tags that you started within it are also closed.</p>
<p>To  make this a bit easier to keep up with, developers use tabs and spacing to make  the code simpler to read. You’ll see from the code above that each time we  write a parent tag, the next line is tabbed further in than the previous line.  So all tags that are horizontally lined up are children of the same parent.  This isn’t strictly necessary but it makes things a lot easier when you’re  trying to read what you’ve written.</p>
<p>It’s  also worth noting that spacing and lines don’t matter. You could leave a dozen  lines between each tag if you wanted to and it would make no difference.  Content within tags (for example a paragraph of text) can also span multiple  lines.</p>
<h4>Let’s add some text</h4>
<p>For  now we’ll just put in a single paragraph of text. The tag for a paragraph is  &lt;p&gt;. As you know we need to close the tag as well, so the format for a  paragraph is:</p>
<p>&lt;p&gt; <em>text here </em>&lt;/p&gt;</p>
<p>This  needs to go inside the body section of your page – between the &lt;body&gt; and &lt;/body&gt; tags. So your page will end up like the one below  (remember to use the tab key to make things easier to read):</p>
<p style="font-family: Courier New, Courier, monospace;">&lt;html&gt;</p>
<p>&lt;head&gt;</p>
<p>&lt;title&gt;Page  Title&lt;/title&gt;</p>
<p>&lt;/head&gt;</p>
<p>&lt;body&gt;</p>
<p>&lt;p&gt;</p>
<p>This  is my first web page!</p>
<p>&lt;/p&gt;</p>
<p>&lt;/body&gt;</p>
<p>&lt;/html&gt;</p>
<h4>Save the page</h4>
<p>Now  it’s time to save the page. Browsers expect the main page of a website to be  called “index.html”. This is how you can type an address like <a href="http://www.google.com/">http://www.google.com</a> into your browser and  end up at <a href="http://www.google.com/index.html">http://www.google.com/index.html</a>.</p>
<p>Make  sure that you are saving your page with the “.html” extension. In an HTML  editor like EditPlus you will need to choose “HTML” from the “file type” box,  or in something like Notepad you will need to choose “All files”. Then type “index.html”  in the file name box and click save.</p>
<p><img src="http://www.talentedpixel.com/wp-content/themes/revolution_music-10/images344/2.jpg" alt="" /></p>
<h4>Does it work?</h4>
<p>Find  your saved page and double-click it to open it up in your internet browser. You  should see something like this:</p>
<p><img src="http://www.talentedpixel.com/wp-content/themes/revolution_music-10/images344/3.jpg" alt="" /></p>
<p>It’s  not pretty, but it works. We’ll get to making it look nicer in the next  article.</p>
<p>This  page is actual being served from your own machine, therefore only up can see it  , if we wanted this page to be visible to the world it would need to be upload  to a web server using a protocol called FTP ( File Transfer Protocol ), this  sounds complicated, it’s not, it’s no harder than sending an email and we will  cover this in a later tutorial.</p>
<h4>Reference</h4>
<ul type="disc">
<li>&lt;html&gt; &#8211; must go at the start and end of every page</li>
<li>&lt;head&gt; &#8211; defines the “header” of a page which contains various pieces       of information about the page, that do not actually appear on it</li>
<li>&lt;title&gt; &#8211; the title of a page as viewable in the browser’s title bar</li>
<li>&lt;body&gt; &#8211; the main body of the page – the part visible to the user</li>
<li>&lt;p&gt;       &#8211; a paragraph of text</li>
</ul>
<p>Don’t  forget, <em>all</em> of the above tags need a  closing tag too. As I said earlier the page will quite possibly work if you  forget the closing tags but it will create problems for you later on. Get in  the habit now!</p>
<p><a href="http://learnola.com/2008/11/17/dreamweaver-tutorial-beginners-html/">Beginners HTML Tutorial part 2:</a><br />
look at some formatting options to give a bit more life to your  page, by introducing CSS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talentedpixel.com/css-and-xhtml/beginners-html-tutorial-web-design-basics.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Tutorial &#8211; Roll Over Button</title>
		<link>http://www.talentedpixel.com/featured/css-rollover-button.html</link>
		<comments>http://www.talentedpixel.com/featured/css-rollover-button.html#comments</comments>
		<pubDate>Wed, 29 Oct 2008 00:08:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS and XHTML]]></category>
		<category><![CDATA[Featured Tutorials]]></category>
		<category><![CDATA[CSS Rollover Buttons]]></category>
		<category><![CDATA[CSS Tutorial]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.talentedpixel.com/shareware-software/dental-software-revolutionizing-the-practice-management-market.html</guid>
		<description><![CDATA[Pre-loaded Hover-state Images
In this XHTML CSS tutorial you&#8217;ll learn how to create a button for a web page using Photoshop, XHTML and CSS. More specifically, you&#8217;ll learn how to create a button who&#8217;s hover state image is preloaded. The advantage to this technique is that upon hovering over your button, the user won&#8217;t have to [...]]]></description>
			<content:encoded><![CDATA[<h2>Pre-loaded Hover-state Images</h2>
<p>In this XHTML CSS tutorial you&#8217;ll learn how to create a button for a web page using Photoshop, XHTML and CSS. More specifically, you&#8217;ll learn how to <a href="http://www.computer-training-software.com/example.html" target="_blank">create a button who&#8217;s hover state image is preloaded</a>. The advantage to this technique is that upon hovering over your button, the user won&#8217;t have to wait for it&#8217;s hover state image to appear; there&#8217;ll be no &#8216;graphic-less&#8217; moment while the image loads, all without a single line of JavaScript.</p>
<p>Open up a blank XHTML document with a style statement within the &lt;head&gt; tags. This is where we&#8217;ll place out CSS code.</p>
<div style="color:#999900;">
<p>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;<br />
&lt;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=UTF-8&#8243; /&gt;<br />
&lt;title&gt;button&lt;/title&gt;<br />
&lt;style&gt;&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></div>
<p>We&#8217;ll begin by setting out the XHTML markup for our button, between the &lt;body&gt; tags:</p>
<div style="color:#999900;">&lt;a href=&#8221;" class=&#8221;button&#8221;&gt;Hover over me!&lt;/a&gt;</div>
<p>Notice the button has been given the class of &#8216;button&#8217;.</p>
<p>Now we&#8217;ll set up some basic CSS to establish some styles in our document. Place the following between the &lt;style&gt; tags:</p>
<div style="color:#999900;">body {<br />
font-family:Verdana, Arial, Helvetica, sans-serif;<br />
font-size:12px;<br />
color:#333333<br />
}</div>
<p>Now some attributes for what will be our button, identifiable by it&#8217;s class &#8216;button&#8217;. Firstly, it has a width of 100px, a height of 20px and some extra padding to increase it&#8217;s dimensions further.</p>
<div style="color:#999900;">a.button {<br />
display: block;<br />
width: 100px;<br />
height: 20px;<br />
padding: 15px 20px 10px 45px;<br />
color:#666666;<br />
text-decoration: none;<br />
}</div>
<p>The above statement dictates that the button has padding of 15px at the top, 20px on the right, 10px at the bottom and 45px on the left. This extra padding on the left will make room for an icon on our button. The total dimensions of our button are now 160px wide and 45px high. You&#8217;ll also see that I&#8217;ve given any text within the button a color of #666666, that it&#8217;s displayed as &#8216;block&#8217; (making it adhere to the dimensions we&#8217;ve set) and that I&#8217;ve removed the default underline by stating that there will be no text decoration. Now lets make a graphic for it with Photoshop.</p>
<p>Open up a new document in Photoshop with the dimensions of our button.</p>
<div><img src="http://www.computer-training-software.com/images/b1.jpg" alt="" width="409" height="273" /></div>
<p>Copy a design something along the lines of what you see below. I&#8217;ve chosen to use one of the many icons freely available from <a rel="nofollow" href="http://www.famfamfam.com/lab/icons/silk/" target="_blank">famfamfam.com</a> and placed it on the left.</p>
<div><img src="http://www.computer-training-software.com/images/b2.jpg" alt="" width="215" height="99" /></div>
<p>Now alter your canvas size (Image &gt; Canvas Size&#8230;). Double it&#8217;s height to 90px from the top edge. This will give you the following result:</p>
<div><img src="http://www.computer-training-software.com/images/b3.jpg" alt="" width="230" height="136" /></div>
<p>Now duplicate all the elements you&#8217;ve drawn and position them at the bottom of your canvas. This copy will be your button&#8217;s hover-state.</p>
<p>Your two button images need to be different in some way &#8211; perhaps a completely different color, different icon or perhaps something more subtle. I&#8217;ve chosen to alter the transparency of my top image making it fainter than the hover-state. The button will appear darker when hovered over.</p>
<p>When you&#8217;re satisfied with your image, save (File &gt; Save for Web &amp; Devices&#8230;) in whatever format you choose.</p>
<div><img src="http://www.computer-training-software.com/images/b4.jpg" alt="" width="271" height="139" /></div>
<p>Now let&#8217;s use this image as a background for our button by further defining our &#8216;button&#8217; class in the CSS.</p>
<div style="color:#999900;">background:url(button.jpg) no-repeat 0px 0px;</div>
<p>This states that the image we&#8217;ve chosen will be used as the background for our button, that the image won&#8217;t be repeated (it won&#8217;t be tiled), that it will be positioned 0px from the left and 0px from the top. Of course, when the page is loaded and the button background is also loaded, the whole thing is placed in your browser&#8217;s cache, even the part of your button image which isn&#8217;t yet visible. Check your button in a web browser, it should look like this:</p>
<div><img src="http://www.computer-training-software.com/images/b5.jpg" alt="" width="312" height="108" /></div>
<p>Now we need to add the final CSS statement, defining what happens when our button is hovered over.</p>
<div style="color:#999900;">a.button:hover {<br />
color:#333333;<br />
background:url(button.jpg) no-repeat 0px -45px;<br />
}</div>
<p>This simple statement dictates that the hover-state of our &#8216;button&#8217; link will have a slightly darker color of #333333 and that the background image will be our button.jpg. The difference this time is that the background position has been set at 0px from the left and -45px from the top &#8211; or, said in another way, that the background image is raised 45px. Our hover-state graphic will therefore <em>instantly</em> fill the button when hovered over. Try it yourself! <a href="http://www.computer-training-software.com/example.html" target="_blank">Finished CSS Example</a></p>
<div><img src="http://www.computer-training-software.com/images/b6.jpg" alt="" width="303" height="114" /></div>
<div><a href="http://www.computer-training-software.com/images/button.zip">Download all the files used in this CSS Tutorial</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.talentedpixel.com/featured/css-rollover-button.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XHTML Tutorial CSS Tabbed Menu</title>
		<link>http://www.talentedpixel.com/featured/xhtml-css-tabbed-menu.html</link>
		<comments>http://www.talentedpixel.com/featured/xhtml-css-tabbed-menu.html#comments</comments>
		<pubDate>Wed, 29 Oct 2008 00:04:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS and XHTML]]></category>
		<category><![CDATA[Featured Tutorials]]></category>
		<category><![CDATA[CSS Tutorial]]></category>
		<category><![CDATA[Tabbed Menu]]></category>
		<category><![CDATA[XHTML Tutorial]]></category>

		<guid isPermaLink="false">http://www.talentedpixel.com/shareware-software/the-many-benefits-of-remote-computing.html</guid>
		<description><![CDATA[Tabbed menu
One hugely useful way of displaying your menu items is in the form of tabs. The following tutorial will take you through some simple steps to build your own tabbed menu, without so much as a .gif or line of JavaScript in sight&#8230;
Open up a blank XHTML document with a style statement within the [...]]]></description>
			<content:encoded><![CDATA[<h2>Tabbed menu</h2>
<p>One hugely useful way of displaying your menu items is in the form of tabs. The following tutorial will take you through some simple steps to build your own<a href="example.html" target="_blank"> tabbed menu</a>, without so much as a .gif or line of JavaScript in sight&#8230;</p>
<p>Open up a blank XHTML document with a style statement within the &lt;head&gt; tags. This is where we&#8217;ll place out CSS code.</p>
<div style="color:#999900;">
<p>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;</p>
<p>&lt;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=UTF-8&#8243; /&gt;<br />
&lt;title&gt;button&lt;/title&gt;<br />
&lt;style&gt;<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></div>
<p>Now let&#8217;s set out the XHTML markup for our menu, between the &lt;body&gt; tags:</p>
<div style="color:#999900;">&lt;ul class=&#8221;menu_tabbed&#8221;&gt;<br />
&lt;li&gt;&lt;a href=&#8221;"&gt;tab one&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;"&gt;tab two&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;"&gt;tab three&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;"&gt;tab four&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</div>
<p>This is a straight-forward unordered list which we&#8217;ve given the class of &#8216;menu_tabbed&#8217;. Within it are four list items, each one of which contains a link.</p>
<p>That&#8217;s it for the markup, now let&#8217;s set up some CSS to give our document some basic styles. Place the following between the &lt;style&gt; tags:</p>
<div style="color:#999900;">body {<br />
font-family:Verdana, Arial, Helvetica, sans-serif;<br />
font-size:12px;<br />
color:#333333;<br />
padding: 30px;<br />
}</div>
<p>This just gives our document a default text color (#333333), font and font size. I&#8217;ve also just given the documents &#8216;body&#8217; a padding of 30px in order for our menu to be held away from the page edges. This will make it all slightly easier to view on our part.</p>
<p>Now some attributes for our unordered list, identifiable by it&#8217;s class &#8216;menu_tabbed&#8217;. Firstly, it has no list-style. This removes the bullet points from the list items &#8211; in all circumstances, in all browsers. Secondly it has a solid border along it&#8217;s bottom edge of 1px and the color #999999. Lastly some padding at the bottom in order to hold the border away from our tabs as we&#8217;ll soon see.</p>
<div style="color:#999900;">ul.menu_tabbed {<br />
list-style: none;<br />
border-bottom: 1px #999999 solid;<br />
padding-bottom: 10px<br />
}</div>
<p>Test it in a browser, your menu should now look something like this:</p>
<div><img src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/tab1.jpg" alt=" " /></div>
<p>Now let&#8217;s style our list items, identifiable as &#8216;li&#8217; within the &#8216;ul&#8217; which has a class of &#8216;menu_tabbed&#8217;.</p>
<div style="color:#999900;">ul.menu_tabbed li {<br />
display: inline;<br />
margin-right: 5px;<br />
}</div>
<p>We&#8217;ll display the list items &#8216;inline&#8217; which will distribute them horizontally across the page. Each one has a margin on the right of 5px in order to hold it away from the previous list item. Now your menu should now look something like this:</p>
<div><img src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/tab2.jpg" alt="" /></div>
<p>Having dealt with our list and the list items within it, we can now turn our attention to the links, identifiable as the &#8216;a&#8217; within the &#8216;li&#8217; within the &#8216;ul&#8217; which has a class of &#8216;menu_tabbed&#8217;. Place the following within your CSS code:</p>
<div style="color:#999900;">ul.menu_tabbed li a {<br />
color:#999999;<br />
text-decoration: none;<br />
background: #f7f7f7;<br />
border: 1px #CCCCCC solid;<br />
border-bottom: none;<br />
padding: 10px 14px;</div>
<p>}</p>
<p>There&#8217;s a little more styling involved here as most of the visual effects are tied to the links. First give the text a faint color of #999999 and remove the underline by stating no text-decoration. Then give a background of #f7f7f7 and a solid 1px border of #CCCCCC. There&#8217;ll be no border on the bottom, as this is catered for by the border on the bottom of our unordered list.</p>
<p>Lastly, give the links some padding; 10px at the top and bottom and 14px left and right. The 10px padding at the bottom will allow the links&#8217; bottom edge to meet with the bottom edge of the unordered list which we also gave a padding of 10px.</p>
<p>Check your menu again in a browser:</p>
<div><img src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/tab3.jpg" alt="" /></div>
<p>Now let&#8217;s give our tabs some styling for their hover state, one simple line of CSS:</p>
<div style="color:#999900;">ul.menu_tabbed li a:hover {<br />
padding: 14px 14px 10px 14px;<br />
}</div>
<p>This padding overrides the padding for the links which we&#8217;ve previously set. It differs only by giving an extra 4px padding at the top which gives the tabs the impression of being lifted like so:</p>
<div><img src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/tab4.jpg" alt="" /></div>
<p>Finally we&#8217;re going add some style for when one of the menu items is selected. Add the class &#8217;selected&#8217; to your second list item:</p>
<div style="color:#999900;">&lt;li&gt;&lt;a href=&#8221;" class=&#8221;selected&#8221;&gt;tab two&lt;/a&gt;&lt;/li&gt;</div>
<p>Now let&#8217;s add some CSS to determine what the selected tab looks like:</p>
<div style="color:#999900;">ul.menu_tabbed li a.selected {<br />
color:#666666;<br />
background:#FFFFFF;<br />
border: 1px #999999 solid;<br />
border-bottom: 1px #FFFFFF solid;<br />
padding: 14px 14px 10px 14px;<br />
}</div>
<p>We&#8217;ve darkened the text to make it stand out, the background is white, as is it&#8217;s bottom border. This will cover the bottom border of the unordered list giving the impression that the tab is &#8216;connected&#8217; to the page underneath. The padding will match the padding we&#8217;ve given to the link hover state; slightly raising the tab.</p>
<p>That&#8217;s it! Check your final menu in a browser!</p>
<div><img src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/tab5.jpg" alt="" /></div>
<div style="margin:15px;">It should look like this: <a href="http://talentedpixel.com/wp-content/themes/revolution_music-10/tab-example.html" target="_blank">CSS Tabbed Example »</a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.talentedpixel.com/featured/xhtml-css-tabbed-menu.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beginners Flash Tutorial &#8211; Creating Dynamic Text</title>
		<link>http://www.talentedpixel.com/flash/beginners-flash-tutorial-creating-dynamic-text.html</link>
		<comments>http://www.talentedpixel.com/flash/beginners-flash-tutorial-creating-dynamic-text.html#comments</comments>
		<pubDate>Tue, 21 Oct 2008 00:17:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS and XHTML]]></category>
		<category><![CDATA[Flash Tutorials]]></category>
		<category><![CDATA[beginners tutorials]]></category>
		<category><![CDATA[Flash tutorials]]></category>

		<guid isPermaLink="false">http://www.talentedpixel.com/?p=227</guid>
		<description><![CDATA[

 High Quality Flash Tutorial Videos &#8211; Taught by Experts
We also have extensive Adobe Flash Tutorials in high quality video format. These are ideal for beginners who need to master Flash quickly
Title / Free Demo : Adobe Flash  CS3 Tutorial Videos
Author: James Gonzalez
Duration: 11 Hours &#8211; Lessons: 125
Creating Dynamic Text with Flash
This tutorial has [...]]]></description>
			<content:encoded><![CDATA[<div style="clear:both;"></div>
<div style="margin:10px;border:1px #666666 dashed;padding:10px;">
<p><img style="float:left;margin:0px 10px 0px 10px;" src="http://www.computer-training-software.com/images/2titles-pic-dual.jpg" alt="" width="118" height="122" /> <strong>High Quality Flash Tutorial Videos &#8211; Taught by Experts<br />
</strong>We also have extensive Adobe Flash Tutorials in high quality video format. These are ideal for beginners who need to master Flash quickly</p>
<p><strong>Title / Free Demo :</strong> <a href="http://www.computer-training-software.com/adobe-flash-cs3.htm">Adobe Flash  CS3 Tutorial Videos</a><strong><br />
Author:</strong> James Gonzalez<strong><br />
Duration:</strong> 11 Hours<strong> &#8211; Lessons:</strong> 125</div>
<h3>Creating Dynamic Text with Flash</h3>
<p><img style="float:left;margin:0px 10px 0px 5px;" src="http://talentedpixel.com/wp-content/themes/revolution_music-10/images/flash.jpg" alt="" /><em>This tutorial has been prepared with relation to Flash 8, although the principles covered apply to all versions; the code included is based on ActionScript 2.0</em></p>
<p>This Flash tutorial introduces the creation, editing and formatting of dynamic text and embedding fonts.</p>
<p>There are two main ways to create a dynamic text field in Flash, one using the flash interface and the other using ActionScript, this flash tutorial will give you a fundemental understanding of this works.</p>
<h4>Create a textfield using the interface</h4>
<div>Open a new flash document, and select the text tool:</div>
<p><img title="text tool" src="http://www.computer-training-software.com/manuels/images-flash-02/texttool.jpg" alt="text tool" /></p>
<div class="conin">Click and drag on the stage to create your text field, then type something in to start with. On the Properties panel (select Window &gt; Properties &gt; Properties if it isn&#8217;t already visible), select Dynamic Text from the first drop-down list and give the textfield the instance name &#8216;my_txt&#8217;:</div>
<p><img title="textfield" src="http://www.computer-training-software.com/manuels/images-flash-02/textfield.jpg" alt="textfield" width="488" height="315" /></p>
<div class="conin">Now, create a new layer in your flash movie by clicking the Insert Layer icon on the timeline:</div>
<p><img title="new layer" src="http://www.computer-training-software.com/manuels/images-flash-02/newlayer.jpg" alt="new layer" /></p>
<div class="conin">This is the layer where we will put our ActionScript code, you can rename the layer &#8216;actions&#8217; by double clicking on it (where it currently reads Layer 2) to keep your flash file well organised.</p>
<p>With the new layer selected, open the Actions panel either by pressing F9, clicking on the Actions tab if it is visible, or choosing Window &gt; Actions. Type the following code into the actions panel:</p>
<p><a class="highlighttext" onclick="fnSelect('select155544')" href="javascript:void(0);"><br />
Select All</a></p>
<pre class="php" cols="50" rows="2" id="select155544"> my_txt.text="new text" </pre>
</div>
<p><img title="textfield code" src="http://www.computer-training-software.com/manuels/images-flash-02/textcode.jpg" alt="textfield code" width="461" height="502" /></p>
<div class="conin">Now test your movie by pressing CTRL+Enter or choosing Control &gt; Test Movie</div>
<p><img title="test text" src="http://www.computer-training-software.com/manuels/images-flash-02/testtext.jpg" alt="test text" width="466" height="384" /></p>
<div class="conin">You&#8217;ll see that your original text has been replaced with the text you specified in the code. However, you might also notice that the text appears less clear than it does when the textfield is static. To demonstrate this, go back to the layer with your textfield on it and create a new one, only this time choose static from the drop-down list. Enter &#8216;new text&#8217; as the text and test the movie again, you should see a difference between the two fields:</div>
<p><img title="static vs dynamic text" src="http://www.computer-training-software.com/manuels/images-flash-02/twofields.jpg" alt="static vs dynamic text" /></p>
<div class="conin">In order to make your dynamic text have a clear appearance, you have to embed the font in it. This means that information about the font will be included in your final exported SWF movie, so that the text will be displayed consistently wherever the file is viewed. <em>Another advantage to doing this is that, if you use a font that the user viewing your SWF doesn&#8217;t have installed on their machine, the appearance of your movie will still be preserved, as the SWF contains the font information, telling the user&#8217;s machine how the text should be displayed.</em> To embed the font, you have one of the following two options:</div>
<ol style="margin:5px 0px 0px 0px; padding:0px;">
<li> Select your dynamic textfield on the stage and click the Embed button on the Properties panel, then choose Basic Latin (select OK):<br />
<img title="embed control" src="http://www.computer-training-software.com/manuels/images-flash-02/embed.jpg" alt="embed control" width="466" height="353" /></li>
<li> On the library panel (Window &gt; Library if it isn&#8217;t open) select the options button:<br />
<img title="options" src="/manuels/images-flash-02/options.jpg" alt="options" /></p>
<div class="conin">Select New Font and enter the following details:</div>
<p><img title="new font" src="http://www.computer-training-software.com/manuels/images-flash-02/newfont.jpg" alt="new font" /></p>
<div class="conin">Press OK and you&#8217;ll see your font appear in the library. Right-click (CTRL+Click for Macs) on the font in the library and choose Linkage. Click the checkbox next to &#8216;Export for ActionScript&#8217;:</div>
<p><img title="linkage" src="http://www.computer-training-software.com/manuels/images-flash-02/linkage.jpg" alt="linkage" /></p>
<div class="conin">This allows you to refer to the font in your ActionScript code (the procedure is the same for any library item that you want to control using ActionScript). Select your code (&#8216;actions&#8217;) layer and enter the following code (after your existing line)</p>
<p>:</p>
<p><a class="highlighttext" onclick="fnSelect('select55435')" href="javascript:void(0);"><br />
Select All</a></p>
<pre class="php" cols="50" rows="5" id="select55435"> my_txt.embedFonts=true var tf:TextFormat=new TextFormat() tf.font="myfont" my_txt.setTextFormat(tf) </pre>
</div>
<p><img title="embed code" src="http://www.computer-training-software.com/manuels/images-flash-02/embedcode.jpg" alt="embed code" width="466" height="342" /></li>
</ol>
<div>After following one of these two options, test the movie and you should see that the appearance of your text has improved. <em>You should note that embedding fonts in your flash will increase the file size of your SWF, so only do it if necessary, particularly if your file is going to be viewed over the Web.</em></div>
<h4>Tutorial on Creating a dynamic textfield using ActionScript</h4>
<div class="conin">You can also create your dynamic textfield using ActionScript. To do this, enter the following code at the end of your script:</p>
<p><a class="highlighttext" onclick="fnSelect('select56587')" href="javascript:void(0);"><br />
Select All</a></p>
<pre class="php" cols="60" rows="6" id="select56587"> var other_txt:TextField = _root.createTextField("other_txt", _root.getNextHighestDepth(), 20, 20, 200, 50) other_txt.text="other text" </pre>
</div>
<div class="conin">The parameters for the createTextField command are as follows:<br />
<br /><a class="highlighttext" onclick="fnSelect('select56555547')" href="javascript:void(0);"><br />
Select All</a></p>
<pre class="php" cols="60" rows="6" id="select56555547"> createTextField(instanceName, depth, xPosition, yPosition, width, height) </pre>
</div>
<p>Try not to be put off by the code if you&#8217;re not familiar with ActionScript. A good way to familiarise yourself with it is to experiment by changing some of the parameters (e.g. change the y position to 100 and you&#8217;ll see the text appear further down). To format this text, you need to use the ActionScript approach outlined above.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talentedpixel.com/flash/beginners-flash-tutorial-creating-dynamic-text.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

