<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="/rss2full.xsl" type="text/xsl" media="screen"?>
<rss version="2.0">
<channel>
	<title>Message Board</title>
	<link>http://forums.mrc-productivity.com/mb/mrcuser</link>
	<description>Message Board</description>
	<ttl>60</ttl>
	<pubDate>Thur, 28 Aug 2008 08:49:28 GMT</pubDate>
	<item>
		<title>CSS Tutorial #5: Cascading Order and Inheritance</title>
		<link>http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2926116</link>
		<description>&lt;b&gt;Introduction&lt;/b&gt;&lt;br&gt;If you dont understand the concepts of Order and Inheritance, you could run into some big problems with your web design that just wont make sense.  Overall, there are just 3 rules to keep in mind, which are explained below.&lt;br&gt;&lt;br&gt;&lt;b&gt;Cascading Order&lt;/b&gt;&lt;br&gt;The term cascading refers to the hierarchical order in which different style sheet types interact when conflicts arise.  Style sheets cascade in this order (4 having the highest priority):&lt;br&gt;&lt;ol&gt;&lt;li&gt;Browser Defaults&lt;/li&gt;&lt;br&gt;&lt;li&gt;External Style Sheets (Linked or Imported)&lt;/li&gt;&lt;br&gt;&lt;li&gt;Internal Style Sheets (Embedded)&lt;/li&gt;&lt;br&gt;&lt;li&gt;Inline Styles&lt;/li&gt;&lt;br&gt;&lt;/ol&gt;This list could be summed up into one basic rule: &lt;b&gt;If two styles come into conflict, the last one used will take precedence.  &lt;/b&gt;Does that sound a little contradictory to the cascading order list?  Allow me to explain the rule:&lt;ul&gt;&lt;li&gt;Inline styles must be placed in the body of the HTML document, while embedded style sheets must be placed in the head of the HTML document.  As a result, inline styles are always the last ones used and therefore take precedence.&lt;/li&gt;&lt;li&gt;The browser treats all external style sheets as occurring before internal style sheets, regardless of where the link is placed.  For example, if you place your linked style sheet after your embedded style sheet, the browser would still view the linked style sheet as occurring before the embedded sheet because it is an external style sheet. Therefore, internal style sheets are always a higher priority than external because they occur later in the document (according to the browser).  &lt;/li&gt;&lt;/ul&gt;For those reasons, we can sum up the cascading order list with that one rule.&lt;br&gt;&lt;br&gt;What does it mean for two rules to come into conflict?  It simply means that two contradicting styles are assigned to the same element.  For example, lets say that a linked style sheet declares that all paragraphs have a green font, but your embedded styles declare that all paragraphs have a blue font.  Which color will it be?  In this case, your paragraphs will have a blue font as the embedded style sheet occurs after the linked style sheet, and therefore has a higher priority.  &lt;br&gt;&lt;br&gt;This will only come into play if two rules conflict with each other in the same element.  For example, if your linked style sheet declares that all paragraphs are bold, and your embedded style sheet declares that all paragraphs are green, all your paragraphs will be both bold and green.  These two rules do not conflict with each other, and are therefore both used.&lt;br&gt;&lt;br&gt;&lt;b&gt;Inheritance&lt;/b&gt;&lt;br&gt;Inheritance refers to the way properties flow through the page.  HTML uses parent-child relationships.  A child element will usually take on the characteristics of the parent element unless otherwise defined.  For example, take a look at this code:&lt;br&gt; &lt;br&gt;&lt;html&gt;&lt;br&gt;&lt;head&gt;&lt;br&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br&gt;&lt;br&gt;body{&lt;br&gt;color: blue;&lt;br&gt;font-family: arial;&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;/style&gt;&lt;br&gt;&lt;br&gt;&lt;/head&gt;&lt;br&gt;&lt;body&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;Kyle Orton will be a Pro Bowl quarterback this year.&lt;br&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;&lt;/body&gt;&lt;br&gt;&lt;br&gt;&lt;/html&gt;&lt;br&gt; &lt;br&gt;Now, lets see what that would look like in a browser:&lt;br&gt;&lt;img src=&quot;http://www.mrc-productivity.com/forum/images/Inheritance.jpg&quot;&gt; &lt;br&gt;&lt;br&gt;As you can see, since the paragraph tag (child element) is inside of the body tag (parent element), it will take on any styles assigned to the body tag even though it wasnt given any styles of its own.  What if you want the paragraph to take on some rules of the body but not others?  You would simply override the rules you dont want.  Heres an example for you:&lt;br&gt; &lt;br&gt;&lt;html&gt;&lt;br&gt;&lt;head&gt;&lt;br&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br&gt;&lt;br&gt;body{&lt;br&gt;color: blue;&lt;br&gt;font-family: arial;&lt;br&gt;}&lt;br&gt;&lt;br&gt;p{&lt;br&gt;color: red;&lt;br&gt;font-weight: bold;&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;/style&gt;&lt;br&gt;&lt;br&gt;&lt;/head&gt;&lt;br&gt;&lt;body&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;Kyle Orton will be a Pro Bowl quarterback this year.&lt;br&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;&lt;/body&gt;&lt;br&gt;&lt;br&gt;&lt;/html&gt;&lt;br&gt; &lt;br&gt;Heres how it would look in a browser:&lt;br&gt;&lt;br&gt;&lt;img src=&quot;http://www.mrc-productivity.com/forum/images/Inheritance2.jpg&quot;&gt; &lt;br&gt;&lt;br&gt;Youll notice a few things here:&lt;br&gt;&lt;ol&gt;&lt;li&gt;The red font color of the paragraph overrides the blue font color of the body.&lt;/li&gt;&lt;br&gt;&lt;li&gt;The paragraph still inherits the Arial font from the body, as it wasnt overridden.&lt;/li&gt;&lt;br&gt;&lt;li&gt;The paragraph has been set as bold, but does not affect any other part of the body.&lt;/li&gt;&lt;/ol&gt;&lt;b&gt;Selector Type Precedence&lt;/b&gt;&lt;br&gt;Rules of precedence also apply to the different selector types.  Selector precedence occurs in this order (3 being the highest precedence):&lt;br&gt;&lt;ol&gt;&lt;li&gt;Element&lt;/li&gt;&lt;br&gt;&lt;li&gt;Class&lt;/li&gt;&lt;br&gt;&lt;li&gt;ID&lt;/li&gt;&lt;/ol&gt;In other words, if you had an element with a class and ID selector, and they contained conflicting styles, the ID style takes precedence.  For example, lets take a look at this code:&lt;br&gt; &lt;br&gt;&lt;html&gt;&lt;br&gt;&lt;head&gt;&lt;br&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;#testid{&lt;br&gt;color: red;&lt;br&gt;font-weight: bold;&lt;br&gt;}&lt;br&gt;&lt;br&gt;.testclass{&lt;br&gt;color: blue;&lt;br&gt;font-family: arial;&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;/style&gt;&lt;br&gt;&lt;br&gt;&lt;/head&gt;&lt;br&gt;&lt;body&gt;&lt;br&gt;&lt;br&gt;&lt;p id=&quot;testid&quot; class=&quot;testclass&quot;&gt;&lt;br&gt;Matt Forte is an unstoppable force.  I will be surprised if he ever gets tackled.&lt;br&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;&lt;/body&gt;&lt;br&gt;&lt;br&gt;&lt;/html&gt;&lt;br&gt; &lt;br&gt;Heres how that code would look in a browser:&lt;br&gt;&lt;br&gt;&lt;img src=&quot;http://www.mrc-productivity.com/forum/images/Inheritance3.jpg&quot;&gt;  &lt;br&gt;&lt;br&gt;Youll notice that although the Class was placed after the ID, the ID still takes precedence.  That only applies if both an ID and Class are used in the same element.  Lets say that they are used in two different elements, like this:&lt;br&gt; &lt;br&gt;&lt;html&gt;&lt;br&gt;&lt;head&gt;&lt;br&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;#testid{&lt;br&gt;color: red;&lt;br&gt;font-weight: bold;&lt;br&gt;}&lt;br&gt;&lt;br&gt;.testclass{&lt;br&gt;color: blue;&lt;br&gt;font-family: arial;&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;/style&gt;&lt;br&gt;&lt;br&gt;&lt;/head&gt;&lt;br&gt;&lt;body&gt;&lt;br&gt;&lt;br&gt;&lt;div id=&quot;testid&quot;&gt;&lt;br&gt;&lt;span class=&quot;testclass&quot;&gt;&lt;br&gt;Devin Hester is probably faster than Usain Bolt.&lt;br&gt;&lt;/span&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;/body&gt;&lt;br&gt;&lt;br&gt;&lt;/html&gt;&lt;br&gt; &lt;br&gt;The code would appear on a browser like this:&lt;br&gt;&lt;br&gt;&lt;img src=&quot;http://www.mrc-productivity.com/forum/images/Inheritance4.jpg&quot;&gt;    &lt;br&gt;&lt;br&gt;Even though we used both an ID and Class selector, the Class selector overrode the ID selector because it was the last to be used.  An ID selector will only take precedence over a Class selector if they are both used in the same element.  &lt;br&gt;&lt;br&gt;&lt;b&gt;The !important Rule:&lt;/b&gt;&lt;br&gt;The !important rule is a way make sure your most crucial CSS rules are always applied.  It is a way to override the general rule of cascading order.  &lt;b&gt;If two styles come into conflict in the same element, and one has the !important rule assigned to it, that one will be used.&lt;/b&gt;  For instance:&lt;br&gt; &lt;br&gt;p{&lt;br&gt;font-color: black !important;&lt;br&gt;}&lt;br&gt;&lt;br&gt;p{&lt;br&gt;font-color: blue;&lt;br&gt;}&lt;br&gt; &lt;br&gt;Even though the blue font color is placed further down, the black will be used in a conflict because it uses the !important rule.  This only applies if the conflicting styles are used in the same element.  If used in different elements, the general rule of cascading order still applies.  For example, look at this code.&lt;br&gt; &lt;br&gt;&lt;html&gt;&lt;br&gt;&lt;head&gt;&lt;br&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;#testid{&lt;br&gt;color: red !important;&lt;br&gt;font-weight: bold;&lt;br&gt;}&lt;br&gt;&lt;br&gt;.testclass{&lt;br&gt;color: blue;&lt;br&gt;font-family: arial;&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;/style&gt;&lt;br&gt;&lt;br&gt;&lt;/head&gt;&lt;br&gt;&lt;body&gt;&lt;br&gt;&lt;br&gt;&lt;div id=&quot;testid&quot;&gt;&lt;br&gt;&lt;span class=&quot;testclass&quot;&gt;&lt;br&gt;The Bears will go 16-0 this season.&lt;br&gt;&lt;/span&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;/body&gt;&lt;br&gt;&lt;br&gt;&lt;/html&gt;&lt;br&gt; &lt;br&gt;Heres how it would look in a browser:&lt;br&gt;&lt;br&gt;&lt;img src=&quot;http://www.mrc-productivity.com/forum/images/Inheritance5.jpg&quot;&gt;  &lt;br&gt;&lt;br&gt;Even though the font color red had the !important rule, it wasnt used because the styles did not conflict in the same element.  Since testclass was the last style used, it takes precedence.&lt;br&gt;&lt;br&gt;&lt;b&gt;Conclusion:&lt;/b&gt;&lt;br&gt;When dealing with cascading order and inheritance, here are three rules to keep in mind:&lt;br&gt;&lt;ol&gt;&lt;li&gt;If two rules come into conflict, the last one used will take precedence.&lt;/li&gt;  &lt;br&gt;&lt;li&gt;When used in the same element, selector precedence occurs in this order (3 being the highest precedence):&lt;br&gt;&lt;ol&gt;&lt;li&gt;Element&lt;/li&gt;&lt;br&gt;&lt;li&gt;Class&lt;/li&gt;&lt;br&gt;&lt;li&gt;ID&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;br&gt;&lt;li&gt;If two styles come into conflict in the same element, and one has the !important rule assigned to it, that one will be used.&lt;/li&gt;&lt;/ol&gt;  This concludes the basic CSS tutorials.  Please respond to any of the posts if you have questions or comments.&lt;br&gt; &lt;p&gt;Forum: &lt;a href=&quot;http://forums.mrc-productivity.com/mb/mrcuser?forum=121484&quot;&gt;CSS&lt;/a&gt;
</description>
		<guid isPermaLink="false">http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2926116</guid>
		<pubDate>Mon, 25 Aug 2008 19:52:03 GMT</pubDate>
		<author>steveh</author>
	</item>

	<item>
		<title>How to: Make rollover buttons with CSS</title>
		<link>http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2897006</link>
		<description>&lt;html&gt;&lt;br&gt;&lt;head&gt;&lt;br&gt;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;http://www.mrc-productivity.com/style/LandingPageStyle.css&quot;&gt;&lt;br&gt;&lt;/head&gt;&lt;br&gt;&lt;body&gt;&lt;br&gt;Over the course of the last 8 posts or so, I have written a series of CSS Tutorials.  If a beginner would read through these tutorials, I hope that they would understand CSS well enough to use it.  Ive focused on the functionality and ease of CSS, but now Id like to take a step further, and demonstrate some of the cool things that can be done with CSS.  Today, Id like to show you how to easily make rollover buttons.&lt;br&gt;&lt;br&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;br&gt;Im sure youve noticed the varying types of buttons found throughout the web.  There are boring buttons, which are little more than a colored box with a link in it.  Then there are flashy rollover buttons.  These buttons do something when you hover over or click them.  For example, roll over and click this button:&lt;br&gt;&lt;br&gt;&lt;a class=&quot;button1&quot; &quot;href=&quot;http://www.mrc-productivity.com/forum/fun.html&quot;&gt;Click Me!&lt;/a&gt;&lt;br&gt;&lt;br&gt;In the past, these were created with Javascript, or sometimes with Flash.  But, did you know you can create the same thing easily with CSS?&lt;br&gt;&lt;br&gt;There are a few different ways to create interactive web buttons like this with CSS, some being easier than others.  The method Im about to show you is, in my opinion, the easiest way to do it.  To put it simply, all we are going to do is stack three images on top of each other and then use CSS to specify which one should be visible at any given time.&lt;br&gt;&lt;br&gt;&lt;b&gt;Get the images&lt;/b&gt;&lt;br&gt;First things first, youll need 3 images with identical dimensions.  For this demonstration, I will be using these three:&lt;br&gt;&lt;img src=&quot;http://www.mrc-productivity.com/images/redbutton2.jpg&quot;&gt;&lt;img src=&quot;http://www.mrc-productivity.com/images/bluebuttonlight2.jpg&quot;&gt;&lt;img src=&quot;http://www.mrc-productivity.com/images/greenbuttonlight2.jpg&quot;&gt;&lt;br&gt;&lt;br&gt;Make sure that all 3 of your images are the exact same size and saved to the same location.  &lt;br&gt;&lt;br&gt;&lt;b&gt;Sidenote:&lt;/b&gt; These are all .jpg images.  You can use either .jpg or .gif images depending on your site.  The differences between the two types are:&lt;br&gt;&lt;ul&gt;&lt;li&gt;.gif images can have transparent backgrounds, while .jpg images cannot.  In this case, these rounded buttons are surrounded by a white background.  If I were putting them on a website that didnt have a white background, I would have to change them to .gif formats so they wouldnt stand out and look funny. &lt;/li&gt;&lt;br&gt;&lt;li&gt;.jpg images are higher quality.  This is evident when dealing with images containing multiple colors or different shades of one color.  .gif images generally look just fine when dealing with just one or two colors.&lt;/li&gt;&lt;/ul&gt;&lt;br&gt;&lt;br&gt;Since I plan on using these images on a white background anyway, Im going to keep them in the .jpg format so as not to lose quality.&lt;br&gt;&lt;br&gt;&lt;b&gt;Create the CSS&lt;/b&gt;&lt;br&gt;Now that we have our images, we can create the CSS.    We are going to create some anchor pseudo classes in order to make these buttons interactive.  Please make sure to read CSS Tutorial #3: Class &amp; Id Selectors if you forgot how to make a pseudo class.  Simply put, using anchor pseudo classes, I can define 4 different states of a link: Unvisited (default), visited, hover, and active.  All I will be doing is specifying which image should be visible in each state.  Heres what the CSS would look like for these buttons.&lt;br&gt;&lt;br&gt; &lt;br&gt;a.button1&lt;br&gt;{&lt;br&gt;text-align: center; /*Text written over the button will be centered*/&lt;br&gt;font:normal bold 12px/2.5em arial; /*12pt, bold font, 2.5em line-height*/&lt;br&gt;color: white; /*Text color is white*/&lt;br&gt;display: block; /*Treat image as a block element*/&lt;br&gt;width: 100px; /*100 px wide.  Same width as image*/&lt;br&gt;height: 35px; /*35px high.  Same height as image*/&lt;br&gt;                  background-image: url(/images/redbutton2.jpg); /*Use the red button image as default*/&lt;br&gt;margin: 0 25px; /*left and right margins are 25px*/&lt;br&gt;}&lt;br&gt;&lt;br&gt;a.button1:visited&lt;br&gt;{&lt;br&gt;text-align: center;&lt;br&gt;font:normal bold 12px/1.5 arial;&lt;br&gt;line-height: 2.5em;&lt;br&gt;color: white;&lt;br&gt;display: block;&lt;br&gt;width: 100px;&lt;br&gt;height: 35px;&lt;br&gt;                  background-image: url(/images/redbutton2.jpg); /*Use same red button image for visited links*/&lt;br&gt;margin: 0 25px;&lt;br&gt;}&lt;br&gt;&lt;br&gt;a.button1:hover &lt;br&gt;{&lt;br&gt;                  background-image: url(/images/bluebuttonlight2.jpg); /*Use blue button image when mouse hovers over*/&lt;br&gt;}&lt;br&gt;&lt;br&gt;a.button1:active&lt;br&gt;{&lt;br&gt;                  background-image: url(/images/greenbuttonlight2.jpg);/*Use green button image when button is clicked*/&lt;br&gt;}&lt;br&gt; &lt;br&gt;Youll notice all that I did here was instruct a different image to load with different actions.  I assigned the red image to unvisited and visited, the blue image to hover, and the green image to active.  &lt;br&gt;&lt;br&gt;&lt;b&gt;Important Note: &lt;/b&gt;Anchor pseudo classes must be created in this order: Unvisited, Visited, Hover, Active.  They will not work properly if placed in a different order.  &lt;br&gt;&lt;br&gt;For this demonstration, I will create 4 rollover buttons using the same CSS class that I just created.  Heres how the HTML would look:&lt;br&gt; &lt;br&gt;&lt;a class=&quot;button1&quot; href=&quot;http://www.mrc-productivity.com/mrcjava/servlet/MRCWEBSITE.M21071s&quot;&gt;&lt;br&gt;I Want Proof&lt;br&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a class=&quot;button1 href=&quot;http://www.mrconlinelab.com&quot;&gt;&lt;br&gt;Online Lab&lt;br&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a class=&quot;button1&quot; href=&quot;http://www.mrc-productivity.com/customers/nwd.html&quot;&gt;&lt;br&gt;Case Study&lt;br&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a class=&quot;button1&quot; href=&quot;http://www.crazybikes.com&quot;&gt;&lt;br&gt;Demo Site&lt;br&gt;&lt;/a&gt;&lt;br&gt; &lt;br&gt;All I did was call the class buttons1 that I defined with the CSS.  Simple as that.  &lt;b&gt;Click the image below to see these buttons in action.&lt;/b&gt;  Roll over them and notice how they change colors.  Pretty simple isnt it?&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.mrc-productivity.com/forum/buttonexample.html&quot;&gt;&lt;img src=&quot;http://www.mrc-productivity.com/forum/images/buttonscreenshot.jpg&quot;&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Conclusion&lt;/b&gt;&lt;br&gt;Using CSS, you can create nice looking rollover buttons for your website without using any javascript whatsoever.  Please respond to this post if any of my instructions were unclear or if you have any questions.&lt;br&gt;&lt;br&gt;&lt;/body&gt;&lt;br&gt;&lt;/html&gt; &lt;p&gt;Forum: &lt;a href=&quot;http://forums.mrc-productivity.com/mb/mrcuser?forum=121484&quot;&gt;CSS&lt;/a&gt;
</description>
		<guid isPermaLink="false">http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2897006</guid>
		<pubDate>Mon, 11 Aug 2008 19:23:12 GMT</pubDate>
		<author>steveh</author>
	</item>

	<item>
		<title>CSS Tutorial #4: DIV and SPAN Tags</title>
		<link>http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2882484</link>
		<description>&lt;span style=&quot;font-family: arial narrow; font-size: 1.4em;&quot;&gt;&lt;br&gt;Over the past few posts, weve reviewed the fundamentals of CSS.  In this post, we are nearing the end of fundamentals with an overview of the DIV and SPAN tags.  These elements are extremely important to web design, and are a must-know if you want to design web pages without tables.&lt;br&gt;&lt;br&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;br&gt;The DIV and SPAN elements are meaningless tags.  What do I mean by that?  Well, unlike other tags, such as &quot;p&quot; or &quot;h1&quot;, they have no inherent properties associated with them.  Any properties they have must be assigned to them by the developer, generally with the class and id attributes.  Lets start out by taking a closer look at the DIV tag.&lt;br&gt;&lt;br&gt;&lt;b&gt;The DIV Tag&lt;/b&gt;&lt;br&gt;The DIV tag is a block level element.  That means it will cause a line break, similar to a &quot;p&quot; or a &quot;h1&quot;.  Think of it as a customizable holding box for other elements.  When placed inside of this box, other elements will take on its attributes.  In case you forgot, take a look back at the &lt;a href=&quot;http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2796644&quot;&gt;Box model&lt;/a&gt; post for a better understanding of the attributes of a block level element.  DIV tags have two important functions:&lt;ul style=&quot;line-height: 1.2em&quot;&gt;&lt;li style=&quot;font-size: 1em;&quot;&gt;They are used to group sections of a page together and assign certain properties&lt;/li&gt;&lt;li style=&quot;font-size: 1em;&quot;&gt;They are used in page layout&lt;/li&gt;&lt;/ul&gt;For example, if I wanted to assign certain properties to the navigation section of a site, I would assign those properties to one DIV tag and place all navigation elements inside of it.  Lets take a look at that concept in action.  First, look at the code:&lt;br&gt; &lt;br&gt;&lt;html&gt;&lt;br&gt;&lt;head&gt;&lt;br&gt;&lt;title&gt;&lt;br&gt;DIV and Span&lt;br&gt;&lt;/title&gt;&lt;br&gt;&lt;/head&gt;&lt;br&gt;&lt;br&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br&gt;&lt;br&gt;h1{&lt;br&gt;border: 1px solid black;&lt;br&gt;background-color: 006478;&lt;br&gt;}&lt;br&gt;&lt;br&gt;.nav{&lt;br&gt;font: normal bold 12px/1.5 arial;&lt;br&gt;background-color: efefef;&lt;br&gt;text-align: center;&lt;br&gt;color: white;&lt;br&gt;padding: 10px;&lt;br&gt;margin: 5px;&lt;br&gt;border: 1px solid black;&lt;br&gt;width: 200px;&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;/style&gt;&lt;br&gt;&lt;br&gt;&lt;body&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;nav&quot;&gt;&lt;br&gt;&lt;h1&gt;&lt;br&gt;Home&lt;br&gt;&lt;/h1&gt;&lt;br&gt;&lt;h1&gt;&lt;br&gt;Products&lt;br&gt;&lt;/h1&gt;&lt;br&gt;&lt;h1&gt;&lt;br&gt;Services&lt;br&gt;&lt;/h1&gt;&lt;br&gt;&lt;h1&gt;&lt;br&gt;About&lt;br&gt;&lt;/h1&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;/body&gt;&lt;br&gt;&lt;/html&gt;&lt;br&gt; &lt;br&gt;Now, see how this code would look on a browser.&lt;br&gt;&lt;br&gt;&lt;img src=&quot;http://www.mrc-productivity.com/forum/images/nav.jpg&quot;&gt;&lt;br&gt; &lt;br&gt;Youll notice that all the attributes from the DIV tag are inherited by any tag inside of it, unless otherwise defined.  For example, if I had not defined the background color of the &quot;h1&quot; tag, it would gray, just like the background.&lt;br&gt;&lt;br&gt;The DIV tag is also commonly used in page layout.  Using CSS, you can position a DIV element and any elements inside of it anywhere you want.  (For more information on positioning, please read the forum post entitled, &lt;a href=&quot;http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2796792&quot;&gt;Positioning with CSS&lt;/a&gt;.)  Lets say that you want to make a three column layout.  Using tables, this task would take a fair amount of code.  Lets take a look at how easy it is using DIVs.  First, look at the code:&lt;br&gt; &lt;br&gt;&lt;html&gt;&lt;br&gt;&lt;head&gt;&lt;br&gt;&lt;title&gt;&lt;br&gt;Three column layout&lt;br&gt;&lt;/title&gt;&lt;br&gt;&lt;br&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br&gt;&lt;br&gt;.top{&lt;br&gt;width: 810px;&lt;br&gt;height: 75px;&lt;br&gt;border: 1px solid black;&lt;br&gt;margin: 5px;&lt;br&gt;background-color: efefef;&lt;br&gt;text-align: center;&lt;br&gt;font: normal bold 16px/4.5 arial;&lt;br&gt;color: red;&lt;br&gt;}&lt;br&gt;&lt;br&gt;.middle{&lt;br&gt;width: 265px;&lt;br&gt;height: 300px;&lt;br&gt;border: 1px solid black;&lt;br&gt;background-color: a8a8a8;&lt;br&gt;float: left;&lt;br&gt;margin-left: 5px;&lt;br&gt;font-weight: bold;&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;/style&gt;&lt;br&gt;&lt;/head&gt;&lt;br&gt;&lt;br&gt;&lt;body&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;top&quot;&gt;&lt;br&gt;Page Title&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;middle&quot;&gt;&lt;br&gt;This is cell 1&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;middle&quot;&gt;&lt;br&gt;This is cell 2&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;middle&quot;&gt;&lt;br&gt;This is cell 3&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;/body&gt;&lt;br&gt;&lt;br&gt;&lt;/html&gt;&lt;br&gt; &lt;br&gt;Now, see what the code would look like on a page:&lt;br&gt;&lt;br&gt;&lt;img src=&quot;http://www.mrc-productivity.com/forum/images/columns.jpg&quot;&gt;&lt;br&gt;&lt;br&gt;Do you see just how much easier and cleaner that is than tables?  Also, each DIV is completely adjustable.  Using DIVs for page layout is not only cleaner, it is easier and more versatile as well.&lt;br&gt;&lt;br&gt;&lt;b&gt;Span Tags&lt;/b&gt;&lt;br&gt;Like the DIV tag, the span tag is used to link style sheet rules to sections of a document.  However, the span tag is an inline element, meaning it will not cause a page break.  Like a DIV tag, a span tag will affect everything inside of it.  Span tags are generally used to format text, and will not affect the layout of a page.  &lt;br&gt;&lt;br&gt;For example, lets say that I want to place more emphasis on certain words throughout my page.  I would create a span class, and assign it to whichever words were in need of emphasis, like this:&lt;br&gt; &lt;br&gt;&lt;html&gt;&lt;br&gt;&lt;head&gt;&lt;br&gt;&lt;title&gt;&lt;br&gt;Span&lt;br&gt;&lt;/title&gt;&lt;br&gt;&lt;br&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br&gt;&lt;br&gt;span.emphasis{&lt;br&gt;font: italic bold 12px/1 arial;&lt;br&gt;color: red;&lt;br&gt;background-color: yellow;&lt;br&gt;}&lt;br&gt;&lt;/style&gt;&lt;br&gt;&lt;br&gt;&lt;/head&gt;&lt;br&gt;&lt;br&gt;&lt;body&gt;&lt;br&gt;&lt;br&gt;The White Sox are clearly the &lt;span class=&quot;emphasis&quot;&gt;superior&lt;/span&gt; Chicago baseball team, because they have&lt;br&gt;&lt;span class=&quot;emphasis&quot;&gt;Ken Griffey, Jr.&lt;/span&gt;.&lt;br&gt;&lt;br&gt;&lt;/body&gt;&lt;br&gt;&lt;br&gt;&lt;/html&gt;&lt;br&gt; &lt;br&gt;This code would appear on the screen like this:&lt;br&gt;&lt;br&gt;&lt;img src=&quot;http://www.mrc-productivity.com/forum/images/span.jpg&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Important note:&lt;/b&gt; While you can place a SPAN tag inside of a DIV tag, you can not place a DIV inside of a SPAN.  You can never nest a block level element inside of an inline element.&lt;br&gt;&lt;br&gt;&lt;b&gt;Conclusion&lt;/b&gt;&lt;br&gt;Both the DIV tag and the SPAN tag have a very important role in CSS and web design.  They are used to group and structure a document, and assign properties to specific parts of your page.  They are used in close conjunction with the CLASS and ID attributes.  The DIV tag is also used in web layout, and can take the place of tables, while the SPAN tag is mainly used with text.  Understanding how these two elements work is vital to web design with CSS.&lt;br&gt;&lt;/span&gt; &lt;p&gt;Forum: &lt;a href=&quot;http://forums.mrc-productivity.com/mb/mrcuser?forum=121484&quot;&gt;CSS&lt;/a&gt;
</description>
		<guid isPermaLink="false">http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2882484</guid>
		<pubDate>Mon, 04 Aug 2008 19:38:22 GMT</pubDate>
		<author>steveh</author>
	</item>

	<item>
		<title>Using functions in your servlets</title>
		<link>http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2857970</link>
		<description>One of the little known features of m-Power is the ability to call your own functions (or native database functions) through calculated fields.  I'm going to show you how to do it with a pretty powerful example that takes about five minutes to build.&lt;br&gt;&lt;br&gt;&lt;b&gt;First, some background&lt;/B&gt;&lt;br&gt;&lt;br&gt;Every database has its own rules regarding functions and its own native functions.  This &lt;a href=&quot;http://www.ispirer.com/doc/sqlways38/Output/SQLWays-1-100.html&quot; target=&quot;0&quot;&gt;page&lt;/a&gt; shows some DB2 functions, and if I click on one of them, it shows the analogous function in Oracle and Sequel Server.&lt;br&gt;&lt;br&gt;In addition, every database has its own rules for what languages you can use to write your own User Defined Functions (UDFs).  I am going to use SQL to write a function for DB2/400.&lt;br&gt;&lt;br&gt;What I am going to do is build a function that sums the product of Price * Ordered Quantity of all the detail records of a given order.&lt;br&gt;&lt;br&gt;At first glance, you might think that UDFs are just a finite subset of what we can do with external objects.  Here's where you are wrong.  Because functions are called from the database, they can be used to do anything you might want to do in an SQL clause.  This means you can display, sequence, and select records based on the results of functions.  That's a lot more power with less work than what we can do in an application servlet with external objects.&lt;br&gt;&lt;br&gt;This function is useful, in that it can be called in myriad numbers of reports and inquiries about our orders.  What you will see in the example is that I can sequence and select records in my servlets based on the results of this function.  Let's get started.&lt;br&gt;&lt;br&gt;&lt;b&gt;1. Build the Function:&lt;/b&gt;&lt;br&gt;&lt;br&gt;To do this I entered SQL and typed the following code;&lt;br&gt;&lt;br&gt; create function CBB2E/ORDERTOT1( ordnuminp DECIMAL(6,0) )    &lt;br&gt;returns DECIMAL(11,2)                                        &lt;br&gt;language SQL                                                 &lt;br&gt;is deterministic                                             &lt;br&gt;reads SQL DATA                                               &lt;br&gt;no external action                                           &lt;br&gt;BEGIN                                                        &lt;br&gt;DECLARE ordertot DECIMAL(11,2);                              &lt;br&gt;select sum(QTYORD * PRICE) into ordertot from CBB2E/ORDDETAIL&lt;br&gt;where ORDNO = ordnuminp;                                     &lt;br&gt;return ordertot;                                             &lt;br&gt;END&lt;br&gt; &lt;br&gt;&lt;br&gt;It's fairly simple and straightforward.  The create function statement first names it and puts it somewhere.  It tells it that we will be passing it one parameter which is numeric 6,0.  The function returns an 11,2 field.  Lastly, I encapsulate my SQL statement between a BEGIN and END statement.  If I have entered everything correctly, SQL tells me that it has created the function ordertot1 in library CBB2E.&lt;br&gt;&lt;br&gt;&lt;b&gt;2. Create a multi-record web 2.0 retrieval&lt;/b&gt;&lt;br&gt;&lt;br&gt;I create this over the Order header file linking to the customer master file to get the customer name. The fields I select are Customer Number, Name, Order Number, Customer PO #, Order Date, and Ship Date.  Notice, that I never touch the order detail file in my definition of this retrieval.  I'll leave that to my UDF.                                     &lt;br&gt;&lt;br&gt;&lt;b&gt;3. I create a calculation to call my function&lt;/b&gt;&lt;br&gt;&lt;br&gt;First, I include the characters &lt;i&gt;*SQL&lt;/i&gt; in the calculation field description.  This tells m-Power not to edit check the calculation.  That means you have to get the specification correct or you may run into compile or run time errors.&lt;br&gt;&lt;br&gt;I make certain that my calculation field attributes match what the function is going to return - an 11 byte numeric field with 2 decimal places.&lt;br&gt;&lt;br&gt;Lastly, I specify my function in the area for the calculation.  It looks like this:&lt;br&gt;&lt;br&gt;CBB2E.ordertot1(ORDNO)&lt;br&gt;&lt;br&gt;The syntax is Library followed by a period followed by function name, then left parenthesis, then the fields or parms to pass to the function in a comma separated list, followed by a close parenthesis.       &lt;br&gt;&lt;br&gt;That's it.  When I create the servlet, the result looks like &lt;a href=&quot;http://www.crazybikes.com/mrcjava/servlet/CBB2E.I00100s&quot; target=&quot;0&quot;&gt;this&lt;/a&gt;.&lt;br&gt;&lt;br&gt;The right-most field is returned by the function.  Notice that I can sequence and select by it.  Pretty powerful since I didn't even have to join to the order detail file to get the information I needed from it.  And I am doing totalling functionality through a retrieval.  You just gotta like that. :)&lt;br&gt;&lt;br&gt;&lt;b&gt;Nice things to know&lt;/b&gt;&lt;br&gt;&lt;br&gt;Your data-base comes with pre-defined functions.  To find out what they are, just Google the name of your data-base and the words database functions.&lt;br&gt;&lt;br&gt;Different data-bases let you write your own user defined functions in a variety of languages.  You are not just restricted to SQL.  This means you can write code in the language you know and user it through m-Power.&lt;br&gt;&lt;br&gt;Our performance tests indicate that this stuff is pretty darn fast.  You are taking code out at the application level, and running it at the data-base level.  Of course, like any other coding, you can build things that will be inefficient, but if you do things smartly, you are going to love the way this performs. &lt;p&gt;Forum: &lt;a href=&quot;http://forums.mrc-productivity.com/mb/mrcuser?forum=34956&quot;&gt;m-Power Tips and Tricks&lt;/a&gt;
</description>
		<guid isPermaLink="false">http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2857970</guid>
		<pubDate>Wed, 23 Jul 2008 21:44:20 GMT</pubDate>
		<author>JoeStangarone</author>
	</item>

	<item>
		<title>CSS Tutorial #3: Class &amp; ID Selectors</title>
		<link>http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2839097</link>
		<description>&lt;font face=&quot;arial narrow&quot; size=&quot;3&quot;&gt;&lt;br&gt;This post follows up on the previous post entitled, CSS Tutorial #2: Style Sheet Syntax.  This post will detail two of the more important style sheet elements: Class and ID Selectors.&lt;br&gt;&lt;br&gt;&lt;b&gt;Overview&lt;/b&gt;&lt;br&gt;In the last post, I explained style sheet syntax and how to make universal changes to HTML elements by using style sheets.  However, what if you want two different styles for one element?  For example, what if you want one paragraph text to be blue, and another paragraph text to be black?  Thats where class and ID selectors come into play.&lt;br&gt;&lt;br&gt;&lt;b&gt;Class Selectors&lt;/b&gt;&lt;br&gt;Class selectors allow you to create different styles for the same element or the same style for different elements.  They give you the liberty to assign specific names to certain features of the page.  Lets say that you want the paragraphs on your page to have a blue background with red text, but the first paragraph of every page to have white text on a black background.  Simply create a class, and assign styles to it that you would like to see on the first paragraph.  To do this, follow the rules of CSS syntax, but add a class name immediately after the selector, and separate the selector and the class name with a flag character, like this:&lt;br&gt;&lt;br&gt; &lt;br&gt;p.first { color: white; background-color: black; } &lt;br&gt;&lt;br&gt;The flag character for the class selector is a period, and it must be placed in between the selector and the class name (&quot;first&quot;) to properly identify that this is a class.  Now that you have created a class selector and defined its style, you must specify in the HTML code which paragraph should use this class.  In order to do this, you must add a class attribute to the HTML code like this:&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;p class=first&gt;Paragraph text&lt;/p&gt; &lt;br&gt;&lt;br&gt;You can assign a class to as many elements on a page as you would like.  For example, if you decide to style the last paragraph in every page just like the first, you would simply add the class element to that paragraph.&lt;br&gt;&lt;br&gt;&lt;b&gt;Lets take a look at class selectors in action:&lt;/b&gt;&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;HTML&gt;&lt;br&gt;&lt;Title&gt;&lt;br&gt;Selector Demo Page&lt;br&gt;&lt;/Title&gt;&lt;br&gt;&lt;HEAD&gt;&lt;br&gt;&lt;br&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br&gt;&lt;br&gt;p {&lt;br&gt;  position: relative;&lt;br&gt;  background-color: blue;&lt;br&gt;  color: red;&lt;br&gt;  left: 20px;&lt;br&gt;  top: 20px;&lt;br&gt;  width: 200px;&lt;br&gt;  font-family: arial;&lt;br&gt;  font-weight: bold;&lt;br&gt;  }&lt;br&gt;&lt;br&gt;p.first  {&lt;br&gt;         position: relative;&lt;br&gt;         background-color: black;&lt;br&gt;         color: white;&lt;br&gt;         top: 20px;&lt;br&gt;         left: 20px;&lt;br&gt;         width: 200px;  &lt;br&gt;         font-family: arial;&lt;br&gt;         font-weight: bold;&lt;br&gt;         }&lt;br&gt;&lt;br&gt;&lt;/style&gt;&lt;br&gt;&lt;/HEAD&gt;&lt;br&gt;&lt;BODY&gt;&lt;br&gt;&lt;br&gt;  &lt;p class=&quot;first&quot;&gt;&lt;br&gt;  This paragraph will use the style assigned to the &quot;first&quot; class.&lt;br&gt;  &lt;/p&gt;&lt;br&gt;&lt;br&gt;  &lt;p&gt;&lt;br&gt;  This is a regular paragraph.  It will have a blue background with red text.&lt;br&gt;  &lt;/p&gt;&lt;br&gt;&lt;br&gt;  &lt;p class=&quot;first&quot;&gt;&lt;br&gt;  Class selectors can be used as often as you like.  I've decided to style the last paragraph the same as the first.&lt;br&gt;  &lt;/p&gt;&lt;br&gt;&lt;br&gt;&lt;/BODY&gt;&lt;br&gt;&lt;/HTML&gt;&lt;br&gt; &lt;br&gt;&lt;b&gt;Heres how the code would look on browser.&lt;/b&gt;&lt;br&gt; &lt;br&gt;&lt;img src=&quot;http://www.mrc-productivity.com/forum/images/ClassSelector.jpg&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Independent Selectors&lt;/b&gt;&lt;br&gt;What if you want to use the same styles for a few different element types throughout the page?  You can use class selectors to declare styles for an element without even specifying an html element.  It would be written like this:&lt;br&gt;&lt;br&gt; &lt;br&gt;.footer { background-color: gray; color: black; } &lt;br&gt;&lt;br&gt;This adds a lot of flexibility because theres no HTML element defined.  This class selector could be used by any type of HTML element throughout the page.  For example, you could do this:&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;p class=footer&gt; paragraph text &lt;/p&gt;&lt;br&gt;&lt;br&gt;&lt;h1 class=footer&gt; Header text &lt;/h1&gt; &lt;br&gt;&lt;br&gt;Both of these elements are now using the same class, and will be styled exactly the same.  &lt;br&gt;&lt;br&gt;Now you may be wondering why anyone would ever need to assign an HTML element to a class selector if you dont need to.  Assigning an HTML element to a class is helpful when you need to go back and alter a page.  If you have identified in your style sheet which class corresponds with which element, you can make changes with ease.&lt;br&gt;&lt;br&gt;&lt;b&gt;Pseudo Classes&lt;/b&gt;&lt;br&gt;Pseudo classes denote a specific quality of an element, and are generally used with the anchor (A) element to distinguish the status of hyperlinks in a document.  They are used to override default link colors and are declared with an A followed by a colon and link status.  Here are the 4 types of pseudo classes for the anchor element:&lt;br&gt;&lt;br&gt; &lt;br&gt;a:link {color: red}     --This means that all links will be red--&lt;br&gt;a:visited {color: green}  --All visited links will be green--&lt;br&gt;a:hover {color: yellow}   --Mouse over a link, and it will turn yellow--&lt;br&gt;a:active {color: white}   --After a link is selected, it turns white--&lt;br&gt; &lt;br&gt;What if you want different link styles throughout your page?  Pseudo classes can work with regular classes to create different link styles, like this:&lt;br&gt;&lt;br&gt; &lt;br&gt;.footer a:link { color: blue; } All links within the footer class will be blue-- &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;ID Selectors&lt;/b&gt;&lt;br&gt;ID selectors are very similar to class selectors.  They allow you to create unique styles for certain elements on the page, but unlike class selectors, ID selectors can only be used once.  You can create many different ID selectors, but each one can only be assigned to one HTML element.&lt;br&gt;&lt;br&gt;The only other difference between the two is the syntax.  The flag character for an ID selector is the pound sign (#) instead of a period.  For example, you would write it out like this:&lt;br&gt;&lt;br&gt; &lt;br&gt;#first { background-color: black; color: white; } &lt;br&gt;&lt;br&gt;&lt;b&gt;The HTML would look like this:&lt;/b&gt;&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;p id=first&gt; &lt;br&gt;&lt;br&gt;This would operate exactly as if it were a class, the only difference being you couldnt use it any more than once.&lt;br&gt;&lt;br&gt;&lt;b&gt;Why Class &lt;i&gt;and&lt;/i&gt; ID Selectors?&lt;/b&gt;&lt;br&gt;You may be wondering why ID selectors even exist if they are basically a more restricted class selector.  Its a good question, and here are a few reasons:&lt;br&gt;&lt;ol&gt;&lt;li&gt;They allow you to uniquely identify any one object on the page.&lt;/li&gt;&lt;br&gt;&lt;li&gt;While class selectors can be used multiple times throughout the page, they should only be used once per tag.  While you shouldnt assign two classes to the same element, you can assign both a class and an ID selector to the same element.&lt;/li&gt;&lt;br&gt;&lt;li&gt;Class selectors are good for very general styles that are used in various places throughout the document.  The ID tag is used to identify a very specific style.&lt;/li&gt;&lt;/ol&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;Final Example&lt;/b&gt;&lt;br&gt;Using all of the concepts covered in this post, here is an example webpage.  Look at the code below, and then click on this &lt;a href=&quot;http://www.mrc-productivity.com/forum/selectorfinal.html&quot;&gt;link&lt;/a&gt; to view the page in a browser.&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;HTML&gt;&lt;br&gt;&lt;Title&gt;&lt;br&gt;Selector Demo Page&lt;br&gt;&lt;/Title&gt;&lt;br&gt;&lt;HEAD&gt;&lt;br&gt;&lt;br&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br&gt;&lt;br&gt;p {&lt;br&gt;  display: inline;&lt;br&gt;  float: left;&lt;br&gt;  padding: 0 5px 0 5px;&lt;br&gt;  margin: 0 5px 0 5px;&lt;br&gt;  position: relative;&lt;br&gt;  background-color: blue;&lt;br&gt;  color: red;&lt;br&gt;  left: 20px;&lt;br&gt;  top: 20px;&lt;br&gt;  width: 200px;&lt;br&gt;  height: 300px;&lt;br&gt;  font-family: arial;&lt;br&gt;  font-weight: bold;&lt;br&gt;  border: 1px solid black;&lt;br&gt;  }&lt;br&gt;&lt;br&gt;p.first  {&lt;br&gt;         display: inline;&lt;br&gt;         float: left;&lt;br&gt;         padding: 0 5px 0 5px;&lt;br&gt;         margin: 0 5px 0 5px; &lt;br&gt;         position: relative;&lt;br&gt;         color: black;&lt;br&gt;         background-color: white;&lt;br&gt;         top: 20px;&lt;br&gt;         left: 20px;&lt;br&gt;         width: 200px;  &lt;br&gt;         height: 300px;    &lt;br&gt;         font-family: arial;&lt;br&gt;         font-weight: bold;&lt;br&gt;         border: 1px solid black;&lt;br&gt;         }&lt;br&gt;&lt;br&gt;.emphasis  {&lt;br&gt;           font-weight: bold;&lt;br&gt;           font-family: arial;&lt;br&gt;           color: red;&lt;br&gt;           }&lt;br&gt;&lt;br&gt;#title  {&lt;br&gt;        position: relative;&lt;br&gt;        font-size: 18px;&lt;br&gt;        font-style: italic;&lt;br&gt;        line-height: 1.5em;&lt;br&gt;        background-color: lavender;&lt;br&gt;        width: 644px;&lt;br&gt;        padding: 0 5px 0 5px;&lt;br&gt;        left: 25px;&lt;br&gt;        border: 1px solid black;&lt;br&gt;        text-indent: 50px;&lt;br&gt;        }&lt;br&gt;&lt;br&gt;#footer  {&lt;br&gt;         background-color: black;&lt;br&gt;         color: white;&lt;br&gt;         position: relative;&lt;br&gt;         clear: both;&lt;br&gt;         width: 644px;&lt;br&gt;         padding: 0 5px 0 5px;&lt;br&gt;         left: 20px;&lt;br&gt;         top: 40px;&lt;br&gt;         height: 100px;&lt;br&gt;         border: 1px solid black;&lt;br&gt;         }&lt;br&gt;&lt;br&gt;a:link     { color:red; text-decoration:none; }&lt;br&gt;a:visited  { color:blue; text-decoration:none; }&lt;br&gt;a:hover    { color:green; text-decoration:underline; }&lt;br&gt;a:active   { color:white; text-decoration:underline; }&lt;br&gt;&lt;br&gt;&lt;br&gt;#footer a:link     { color:yellow; text-decoration:none; }&lt;br&gt;#footer a:visited  { color:orange; text-decoration:none; }&lt;br&gt;#footer a:hover    { color:red; text-decoration:underline; }&lt;br&gt;#footer a:active   { color:blue; text-decoration:underline; }&lt;br&gt;&lt;br&gt;&lt;/style&gt;&lt;br&gt;&lt;br&gt;&lt;/HEAD&gt;&lt;br&gt;&lt;BODY&gt;&lt;br&gt;&lt;br&gt;  &lt;h1 class=&quot;emphasis&quot; id=&quot;title&quot;&gt;&lt;br&gt;  This is a sample page to demonstrate Class and ID Selectors.&lt;br&gt;  &lt;/h1&gt;&lt;br&gt;&lt;br&gt;  &lt;p class=&quot;first&quot;&gt;&lt;br&gt;  This paragraph will use the style assigned to the &quot;first&quot; class.  &lt;br&gt;  &lt;br&gt;&lt;br&gt;  &lt;br&gt;&lt;br&gt;  Here is a &lt;a href=&quot;&quot;&gt;link&lt;/a&gt;.  Notice how it changes &lt;br&gt;  when you hover over or click it.&lt;br&gt;  &lt;/p&gt;&lt;br&gt;&lt;br&gt;  &lt;p&gt;&lt;br&gt;  This is a regular paragraph.  It will have a blue background with red text.&lt;br&gt;  &lt;/p&gt;&lt;br&gt;&lt;br&gt;  &lt;p class=&quot;first&quot;&gt;&lt;br&gt;  Class selectors can be used as often as you like.  I've decided to style the last paragraph the same as the first.&lt;br&gt;  &lt;/p&gt;&lt;br&gt;&lt;br&gt;  &lt;p id=&quot;footer&quot; class=&quot;emphasis&quot;&gt;&lt;br&gt;  I'm reusing the &quot;emphasis&quot; class with the &quot;footer&quot; ID.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;  Here is a &lt;a href=&quot;&quot;&gt;link&lt;/a&gt; in the &quot;footer&quot; id.  Notice how it differs from the other link.&lt;br&gt;  &lt;/p&gt;&lt;br&gt;&lt;br&gt;&lt;/BODY&gt;&lt;br&gt;&lt;/HTML&gt; &lt;br&gt;&lt;br&gt;&lt;b&gt;Conclusion&lt;/b&gt;&lt;br&gt;Class and ID selectors are two very important tools you must know when using CSS.  They allow you to assign different styles to the same element or the same styles to different elements.  Class selectors can be used multiple times, but ID selectors can only be used once in a document.  Class selectors should be used for more general styles, while ID selectors should be used for very specific styles.  &lt;br&gt;&lt;br&gt;The next tutorial will cover the DIV and Span elements.&lt;br&gt;&lt;/font&gt; &lt;p&gt;Forum: &lt;a href=&quot;http://forums.mrc-productivity.com/mb/mrcuser?forum=121484&quot;&gt;CSS&lt;/a&gt;
</description>
		<guid isPermaLink="false">http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2839097</guid>
		<pubDate>Mon, 14 Jul 2008 21:38:25 GMT</pubDate>
		<author>steveh</author>
	</item>

	<item>
		<title>CSS Tutorial #2: Style Sheet Syntax</title>
		<link>http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2824359</link>
		<description>    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;This post follows up the previous post entitled, CSS Tutorial: Style Sheet Types.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;It is meant for CSS beginners who want to learn the basics of style sheet syntax, and how it interacts with HTML.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;If you havent read the previous post, it is important that you read it before this one.&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Overview&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;You will find that style sheet syntax is relatively easy to learn, once you understand the basic principles.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Style sheets establish rules that declare how certain elements are displayed on the webpage.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Every style sheet rule has two parts: A selector and a declaration.&lt;span style=&quot;&quot;&gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;The Selector&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;The selector is connected to a particular style within the HTML.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;The selector defines which element will be affected by the declaration.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Any element used in html can be a selector, such as p, h1, or ul.&lt;span style=&quot;&quot;&gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;The Declaration&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;The declaration applies a style to the selector and is split up into two parts: property and value.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;The property is the aspect of the selector that is being defined.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;The value lays out the exact specification of the property. &lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Here is an example of the different parts that make up a rule:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;img src=&quot;http://www.mrc-productivity.com/forum/images/selectorimage.jpg&quot; height=&quot;172&quot; width=&quot;224&quot;&gt;&lt;br&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Basic Rules&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Look at the image above and youll notice a few basic rules to follow when using style sheets:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top: 0in;&quot; start=&quot;1&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;The declaration is always wrapped in      curly braces.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;The property is followed by a colon.&lt;/span&gt;&lt;/font&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;The value is followed by a      semi-colon.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/li&gt;&lt;/ol&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Grouping Properties&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;More often than not, you will want to declare a few properties for the same selector.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Grouping properties follows the same format as above, and can be displayed like this: &lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt; H1 { font-family: arial; color: red; font-weight: bold; } &lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;When defining multiple properties for the same selector, make sure that every value is followed with a semicolon.&lt;span style=&quot;&quot;&gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Visual Formatting&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;When dealing with a selector containing multiple properties as shown above, it is good practice to lay out the code in such a way that is simple to read.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Obviously, placing 5 properties on the same line can look messy and be difficult to read.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;The key to readability is proper use of white space.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;When using style sheets, white space is a matter of preference.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;You can add as little or as much space in between properties as you like.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;With that in mind, it is a good practice to place multiple properties on separate lines, like this:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt; &lt;br&gt;p   {&lt;br&gt;     color: red;&lt;br&gt;     font-family: arial;&lt;br&gt;     font-weight: bold;&lt;br&gt;     background-color: blue;&lt;br&gt;     }&lt;br&gt; &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Do you see how much easier that is to read than a linear format?&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Just like HTML, it is important that you write clean code with CSS.&lt;br&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Grouping Selectors&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Lets say that you want a few different elements to have the same style.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Rather than declaring each style separately, you can group similar selectors together and save space.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Simply separate each selector with a comma, like this:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;              &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;&lt;br&gt; &lt;br&gt;p, h1, th   {&lt;br&gt;               color: red;&lt;br&gt;               font-family: arial;&lt;br&gt;               background-color: blue;&lt;br&gt;               } &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Conclusion&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Using the fundamentals laid out above, below is an example of actual CSS code and the corresponding HTML.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;            &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;&lt;br&gt; &lt;br&gt;&lt;html&gt;&lt;br&gt;&lt;head&gt;&lt;br&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br&gt;p  {&lt;br&gt;    font-family: arial;&lt;br&gt;    color: blue;&lt;br&gt;    background-color: gray;&lt;br&gt;    border: 2px solid black;&lt;br&gt;    font-weight: bold;&lt;br&gt;    width: 200px;&lt;br&gt;    }&lt;br&gt;&lt;/style&gt;&lt;br&gt;&lt;/head&gt;&lt;br&gt;&lt;body&gt;&lt;br&gt;&lt;p&gt;&lt;br&gt;This is blue text on a gray background.&lt;br&gt;&lt;/p&gt;&lt;br&gt;&lt;/body&gt;&lt;br&gt;&lt;/html&gt; &lt;br&gt;  &lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Click this &lt;a target=&quot;_blank&quot; href=&quot;http://www.mrc-productivity.com/forum/example.html&quot;&gt;link&lt;/a&gt; to see what that code would look like in a browser window.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;This has been a basic overview of CSS syntax.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;I hope that you now have a good understanding of style sheet formatting, and how to lay out a basic style sheet.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;The next tutorial will detail two of the most commonly used aspects of CSS: Class and ID selectors.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;   &lt;p&gt;Forum: &lt;a href=&quot;http://forums.mrc-productivity.com/mb/mrcuser?forum=121484&quot;&gt;CSS&lt;/a&gt;
</description>
		<guid isPermaLink="false">http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2824359</guid>
		<pubDate>Mon, 07 Jul 2008 19:08:43 GMT</pubDate>
		<author>steveh</author>
	</item>

	<item>
		<title>CSS Tutorial: Style Sheet Types</title>
		<link>http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2811445</link>
		<description>  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;The Purpose of this post&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;This post is the first in a series aimed at CSS beginners.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;If youve only ever used HTML and want to start using CSS, then this is for you.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;This post lays the foundation for using style sheets.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;&lt;br&gt;Why CSS?&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;CSS is not HTML, but rather a way to separate structure from design.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;For example, if you have a header (h1) in HTML, you can use a style sheet to define how it should look.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;This comes in handy when you have multiple HTML elements with the same design.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Lets say that you are in charge of a large company website.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Youve been instructed to go through the entire site and change all of the headers from blue to red.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Using HTML, thats a big job.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Using CSS, you would only have to make one small change. &lt;span style=&quot;&quot;&gt;&amp;nbsp;&lt;/span&gt;I very much recommend visiting the &lt;a target=&quot;_blank&quot; href=&quot;http://www.csszengarden.com/&quot;&gt;css zengarden website&lt;/a&gt; if you would like to see more practical applications to using CSS.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;&lt;br&gt;Before you can learn about CSS structure or code, you need to know how to integrate style sheets with HTML.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;The following will explain 4 different ways to do that.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;&lt;br&gt;Style Sheet Types&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;There are 4 style sheet types, or in other words, 4 ways to utilize style sheets in your HTML.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;ol style=&quot;margin-top: 0in;&quot; start=&quot;1&quot; type=&quot;1&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Inline&lt;/span&gt;&lt;/font&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Embedded&lt;/span&gt;&lt;/font&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Linked&lt;/span&gt;&lt;/font&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Imported&lt;/span&gt;&lt;/font&gt;&lt;/li&gt;&lt;/ol&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Inline Style Sheets&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;When adding inline styles, you can apply them directly to the HTML tag using the &lt;i style=&quot;&quot;&gt;style&lt;/i&gt; attribute.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;When used repeatedly, inline styles defeat the purpose of CSS, as they dont separate structure from design.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Inline styles are useful only when you need to add a single instance of a particular style.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Inline styles are used like this:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt; &lt;p style=color: blue;&gt;&lt;br&gt;  content&lt;br&gt;  &lt;/p&gt; &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Embedded Style Sheets&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;This is one of the more common style types you will run into.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Embedded style sheets are placed within the head section of the document and affect only that document.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;They must be placed in between &quot;style&quot; tags and be clearly defined as CSS.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Here is an example of an embedded style sheet:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt; &lt;br&gt;&lt;html&gt;&lt;br&gt;&lt;head&gt;&lt;br&gt;&lt;style type=text/css&gt;&lt;br&gt;p.main  {&lt;br&gt;font-weight: bold;&lt;br&gt;color: red;&lt;br&gt;background-color: blue;&lt;br&gt;}&lt;br&gt;H1        {color: yellow;}&lt;br&gt;&lt;/style&gt;&lt;br&gt; &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Linked Style Sheets&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Linked style sheets provide the real power of CSS.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;You can link many webpages to a single CSS file.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;When you need to make design changes throughout the website, you only need to alter one CSS file!&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;For example, if your company colors changed, and they need to be reflected on the website, you would only have to change one file, rather than the entire site.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Pretty simple isnt it?&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Linked style sheets are placed in the head section of the document like this:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt; &lt;LINK rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;mainstyle.css&quot;&gt; &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Imported Style Sheets&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;You can import one style sheet into another style sheet using the &quot;@import command.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;When importing a style sheet into another, it must be the very first rule in the style sheet.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Imported style sheets are useful if you want to use different style sheets for different parts of your website.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;They are displayed like this:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;        &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;; color: black;&quot;&gt;&amp;nbsp; @import url(otherstyle.css) &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&lt;br&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Creating a Separate Style Sheet&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;You may be wondering how to set up a separate CSS file for linking or importing.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Its very easy.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Simply place all of your CSS code in a notepad document and save it with a .css extension.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Theres no need to define head or body sections like you would in HTML.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;All you need to do is place the code in the file.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Whats next&lt;/span&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Now that you understand how to integrate style sheets into your HTML code, you are ready to learn about CSS syntax.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;In the next tutorial, I will explain how to write basic CSS code and demonstrate how to use it with HTML. &lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;font size=&quot;3&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;   &lt;p&gt;Forum: &lt;a href=&quot;http://forums.mrc-productivity.com/mb/mrcuser?forum=121484&quot;&gt;CSS&lt;/a&gt;
</description>
		<guid isPermaLink="false">http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2811445</guid>
		<pubDate>Mon, 30 Jun 2008 22:20:15 GMT</pubDate>
		<author>steveh</author>
	</item>

	<item>
		<title>Linking tables</title>
		<link>http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2805258</link>
		<description>&lt;P&gt;I can't find anything in the help documentation on defining table links. I have several files from our iSeries added to the data dictionary, but none of them link together. There are common field types, but each file gets a unique prefix so there are no common field names. Where in the online help can i find how to do this?&lt;/P&gt; &lt;p&gt;Forum: &lt;a href=&quot;http://forums.mrc-productivity.com/mb/mrcuser?forum=72733&quot;&gt;Dear Marcy&lt;/a&gt;
</description>
		<guid isPermaLink="false">http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2805258</guid>
		<pubDate>Fri, 27 Jun 2008 16:22:00 GMT</pubDate>
		<author>fanmechanic</author>
	</item>

	<item>
		<title>Positioning with CSS</title>
		<link>http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2796792</link>
		<description>  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Note: It is important that you read the CSS box model post before reading this post.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Still wondering why you should use CSS instead of tables?&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Please read our forum post entitled, Benefits of using CSS for Website Layout before proceeding.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&lt;br&gt;Before CSS, web developers were pretty much stuck using tables for page layout.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;With the emergence of CSS, we now have two more important tools: Positioning and floats.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;br&gt;&lt;/span&gt;&lt;br&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Positioning&lt;/span&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;The position property can be defined in one of four ways:&lt;/span&gt;&lt;/p&gt;  &lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Static&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Fixed&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Absolute&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Relative&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Static Positioning&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;i style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Static&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt; positioning is the default position for an element.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;You really dont need to use &lt;i style=&quot;&quot;&gt;static&lt;/i&gt;, unless overriding a previously set position.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;A static positioned element uses this code:&lt;br&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt; &lt;br&gt;position: static;&lt;br&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Fixed Positioning&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Elements that are set in the &lt;i style=&quot;&quot;&gt;fixed&lt;/i&gt; position are positioned relative to the user viewport.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;These elements will always be positioned in relation to the browser window, even when scrolling, which means theyre always visible in the viewport.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;This could be extremely helpful and replace lengthy javascript which accomplishes the same task.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Dont get too excitedInternet Explorer version 5 and 6 do not support &lt;i style=&quot;&quot;&gt;fixed&lt;/i&gt; positioning.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;It looks like were stuck with javascript until &lt;i style=&quot;&quot;&gt;fixed&lt;/i&gt; positioning is universally supported.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;A &lt;i style=&quot;&quot;&gt;fixed&lt;/i&gt; position is displayed like this:&lt;/span&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt; &lt;br&gt;position: fixed;&lt;br&gt;  &lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Absolute Positioning&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Elements positioned with &lt;i style=&quot;&quot;&gt;absolute&lt;/i&gt; positioning are taken out of the normal flow and placed &lt;u&gt;exactly&lt;/u&gt; where you define them to be.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Since they are taken out of the document flow, the rest of the document acts as if an absolute positioned element wasnt even there.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;While it allows for absolute control over the positioning, when using &lt;i style=&quot;&quot;&gt;absolute&lt;/i&gt; positioning, be aware that it is easy to accidentally cover up other elements.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;i style=&quot;&quot;&gt;Absolute&lt;/i&gt; positioning is displayed like this:&lt;/span&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt; &lt;br&gt;position: absolute;&lt;br&gt;  &lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Relative Positioning&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;A &lt;i style=&quot;&quot;&gt;relative &lt;/i&gt;positioned element is positioned relative to itself.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;While that may sound confusing, its actually pretty simple.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;If you set a &lt;i style=&quot;&quot;&gt;relative&lt;/i&gt; position, the box will be moved relative to where it was supposed to be, had you not set a position.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;For example, if I were to assign an element with relative positioning the value, 'left: 20px', the element will move 20px to the right from where it would have normally been placed.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;When using relative positioning, other elements in the document flow treat the relatively positioned element as if it were in its static, or normal position.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;i&gt;Relative &lt;/i&gt;positioning is displayed like this:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt; position: relative; &lt;br&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;    &lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Quick Side Note: In      the example above, I set the value, 'left: 20px', which moved the element      to the right.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Sound confusing?&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Heres why that happens: When assigning      a value such as 'left: 20px', Im actually indicating that 20px should be      placed to the left of the element, essentially moving it right.&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt; &lt;br&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Relative + Absolute Positioning&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Relative positioning by itself doesnt add many advantages over absolute positioning.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;However, the true power of relative positioning comes when you combine it with absolute positioning&lt;br&gt;&lt;br&gt;If an element is relatively positioned, any elements inside of it are positioned relative to it.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Therefore, if we had an absolute positioned element inside of a relative positioned element, the absolute positioned element is relative to the relative positioned element.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Too confusing?&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Take a look at the image below:&lt;/span&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;The relative positioned red box contains the green box which is positioned absolutely as follows: 'top: 50px; left: 50px; &lt;span style=&quot;&quot;&gt;'&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&lt;!-- &gt;                                                  &lt;! --&gt;&lt;!-- --&gt;&lt;img src=&quot;http://www.mrc-productivity.com/images/forumimages/relativelyabsolute.jpg&quot;&gt;&lt;br&gt;&lt;!-- --&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;As you can see, Div 1 has become the containing block for Div 2, which is now positioned relative to Div 1.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;If I were to reposition Div 1, say 100px to the left, Div 2 would move as well, and remain inside of Div 1.&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;This method becomes even more useful when we want to add columns to our layout.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Heres a dual column layout using two absolutely positioned boxes inside of a relatively positioned one.&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&lt;/span&gt; &lt;img src=&quot;http://www.mrc-productivity.com/images/forumimages/relative4.jpg&quot;&gt;&lt;br&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;See how easy it is to create a two column layout with CSS?&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;However, what if you want to create a 3, or even 4 column layout?&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;The easiest way to do that is by using floats.&lt;/span&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Floats&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Floats turn block elements into inline elements.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;They allow two elements to appear side by side, or make an element move to the right or the left inside of another element.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Also, floats are used when you would like text to wrap around an element or an image.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;For example, here are two relatively positioned elements without floats.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&lt;!-- &gt;   &lt;! --&gt;&lt;!-- --&gt;&lt;img src=&quot;http://www.mrc-productivity.com/images/forumimages/relative2.jpg&quot;&gt;&lt;br&gt;&lt;!-- --&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Youll notice how they are stacked vertically.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;This is the normal document layout.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;What if I want them to line up horizontally?&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;I would add a couple floats, like this:&lt;/span&gt;&lt;/p&gt;&lt;img src=&quot;http://www.mrc-productivity.com/images/forumimages/floats.jpg&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;&lt;/span&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Here is the code used to create these floating boxes:&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt; &lt;html&gt; &lt;br&gt;&lt;head&gt; &lt;br&gt;&lt;style type=&quot;text/css&quot;&gt; &lt;br&gt;div.div1 &lt;br&gt;{ &lt;br&gt;background-color: red;&lt;br&gt;     position: relative;&lt;br&gt;     width: 150px;&lt;br&gt;     top: 10px;&lt;br&gt;     left: 50px;&lt;br&gt;     height: 150px;&lt;br&gt;     padding: 5px;&lt;br&gt;     border: 1px solid black;&lt;br&gt;     font-weight:bold;&lt;br&gt;     float: left; &lt;br&gt;} &lt;br&gt;div.div2 &lt;br&gt;{ &lt;br&gt;background-color: green;&lt;br&gt;     position: relative;&lt;br&gt;     width: 100px;&lt;br&gt;     top: 20px;&lt;br&gt;     left: 75px;&lt;br&gt;     height: 100px;&lt;br&gt;     padding: 5px;&lt;br&gt;     border: 1px solid black;&lt;br&gt;     font-weight: bold;&lt;br&gt;     float: left; &lt;br&gt;} &lt;br&gt;&lt;/style&gt; &lt;br&gt;&lt;/head&gt; &lt;br&gt;&lt;body&gt; &lt;br&gt;&lt;div class=&quot;div1&quot;&gt; &lt;br&gt;Relatively positioned&lt;br&gt; &lt;br&gt;top: 10px;&lt;br&gt; &lt;br&gt;left: 50px;&lt;br&gt; &lt;br&gt;float: left; &lt;br&gt;&lt;/div&gt; &lt;br&gt;&lt;div class=&quot;div2&quot;&gt; &lt;br&gt;Relatively positioned&lt;br&gt; &lt;br&gt;top: 20px;&lt;br&gt; &lt;br&gt;left: 75px;&lt;br&gt; &lt;br&gt;float: left; &lt;br&gt;&lt;/div&gt; &lt;br&gt;&lt;/body&gt; &lt;br&gt;&lt;/html&gt;&lt;br&gt; &lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Youll notice that simply by adding a float to each element, they now line up horizontally.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;If I wanted, I could even add another element to the right.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Keep in mind that I have turned these block level elements into inline elements with floats.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;If I wanted to start a new row of floats underneath the first, I would have to clear the floats, by adding this code to the first element in the second line:&lt;/span&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt; &lt;br&gt;Clear: both;&lt;br&gt;  &lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;There is one more tool that will come in handy when positioning with CSS: Z-index.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;The z-index adds another dimension to a normally two dimensional page.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;An element with a higher &lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;z-index&lt;/span&gt;&lt;/code&gt; appears in front of an element with a lower &lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;z-index.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;For example, if I wanted an element to be displayed in front all the time, I would set a z-index of 99.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Z-index can be set like this:&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt; &lt;br&gt;z-index: 1;&lt;br&gt;  &lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;code&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;These are the layout tools that come with CSS.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;The more you use them, the easier layout will become, and the more options you will have when designing a page.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Keep in mind that not every browser handles CSS the same way, so please read the Cross-browser CSS post in the forum.&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p&gt;Forum: &lt;a href=&quot;http://forums.mrc-productivity.com/mb/mrcuser?forum=121484&quot;&gt;CSS&lt;/a&gt;
</description>
		<guid isPermaLink="false">http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2796792</guid>
		<pubDate>Mon, 23 Jun 2008 21:56:48 GMT</pubDate>
		<author>steveh</author>
	</item>

	<item>
		<title>The CSS Box Model</title>
		<link>http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2796644</link>
		<description>    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;In order to understand positioning with CSS, you must first understand the box model, but before explaining the box model, here are a few helpful definitions that I will be referring to throughout this post:&lt;/span&gt;&lt;/p&gt;      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;--- &lt;br&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;The Viewport&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;The viewport is the area on a browser that displays the webpage.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Imagine that your browser is a window, with the outer edges being frames and the area that displays the webpage (the viewport) as the glass.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;The viewport is separate from the page itself, so even if the page is scrolled, the viewport is always the area that you can see. &lt;br&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;The Initial Containing Block&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;The entire space assigned to your document.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;The initial containing block is set by the web designer as the size of the web page.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;This includes parts of the page that users have to scroll to see. &lt;br&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Containing Blocks&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;A containing block has another element inside of it.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;In the example below, the div named container is the containing block for the div named element.&lt;span style=&quot;&quot;&gt; &lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class=&quot;MsoNormal&quot;&gt; &lt;br&gt; &lt;div class=container&gt;&lt;br&gt;                &lt;div class=element&gt;&lt;br&gt;                &lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;  &lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Normal Flow&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;The normal flow of the document is the order in which the elements are displayed.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;It is the way a document would appear with no positioning or floated elements.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;The content will start at the top of the page and flow downward. &lt;br&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Block-level elements&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Elements that are formatted visually as blocks.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Block elements automatically create a line break, unless given the rule, display:inline;, which will cause them to be treated as an inline element.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Examples of block-level elements are: &lt;br&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt; &lt;br&gt;&lt;div&gt;, &lt;h1&gt;, &lt;p&gt;&lt;br&gt;  &lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Inline-level elements&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Inline elements do not form blocks of content and are displayed visually in a line.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;They do not create line breaks.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Examples of inline level elements are:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;border: medium none ; padding: 0in;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt; &lt;br&gt;&lt;b&gt;, &lt;em&gt;, &lt;span&gt;&lt;br&gt; &lt;/span&gt;&lt;/p&gt;  &lt;div style=&quot;border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 1pt; padding: 0in 0in 1pt;&quot;&gt;    &lt;/div&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;The Box Model&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Take a look at the image below.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;I have taken it directly from the W3 site, in order to illustrate the box model, and why its important to positioning with style sheets.&lt;/span&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;&lt;img src=&quot;http://www.mrc-productivity.com/images/forumimages/boxmodel.jpg&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;br&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&lt;!-- &gt;                                                  &lt;! --&gt;&lt;!-- --&gt;&lt;!-- --&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;For display purposes, every block-level element in a document is considered to be a rectangular box.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;As you can see from the diagram above, each box is comprised of 4 parts:&lt;/span&gt;&lt;/p&gt;    &lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Content  This could      include text or an image.&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Padding  Invisible      area that defines the distance from the border of the box to the content.&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Border  The area      surrounding the content and padding.&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Margin  Invisible      area that defines the space between the outside border of the box and      other elements on the page.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;It is equally important to understand how the width of the box is calculated, and why defining only width isnt enough.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Here is the equation to determine the width of a box:&lt;/span&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;width&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt; = margin-left + border(left) + padding-left + content width + padding-right + border(right) + margin-right &lt;br&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;For example, look at the code below and try to determine how wide the box will be:&lt;/span&gt;&lt;/p&gt;                    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp; &lt;br&gt;.divtest           {&lt;br&gt;                                position: relative;&lt;br&gt;                                width: 100px;&lt;br&gt;                                height: 75px;&lt;br&gt;                                padding: 10px;&lt;br&gt;                                margin: 5px;&lt;br&gt;                                border: solid 1px black;&lt;br&gt;                         }&lt;br&gt;  &lt;/span&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;According to the box model equation, this box would be '132px' wide, as illustrated by the image below. &lt;br&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Width = margin-left(5) + border-left(1) + padding-left(10) + content width(100) + padding-right(10) + border-right(1)+maring-right(5) = 132&lt;/span&gt;&lt;/p&gt;        &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;&lt;img src=&quot;http://www.mrc-productivity.com/images/forumimages/cssboxmodel.jpg&quot;&gt;&lt;br&gt;&lt;!-- &gt;   &lt;! --&gt;&lt;!-- --&gt;&lt;!-- --&gt;&lt;/span&gt;&lt;b style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&lt;br&gt;Height&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;Height is calculated differently than width.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;In the normal flow of a document, vertical margins are collapsed.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;That means when a box is placed on top of another, the distance between the two is equal to the largest margin, as illustrated by the image below:&lt;/span&gt;&lt;/p&gt;      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;&amp;nbsp;&lt;img src=&quot;http://www.mrc-productivity.com/images/forumimages/boxmodelheight.jpg&quot;&gt; &lt;br&gt;&lt;/span&gt;&lt;/p&gt;      &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: &amp;quot;Arial Narrow&amp;quot;;&quot;&gt;If these two boxes had been placed next to each other, the margins would be added together to create a total of 15px.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;However, since they are placed on top of each other, the margins are collapsed and only the largest margin is used.&lt;br&gt;&lt;br&gt;It is very important that you understand the box model before moving into positioning.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;Whenever you place a block-level element on a page, you must be aware of the 4 attributes explained above which determine placement and size.&lt;span style=&quot;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;For information on positioning with CSS, please read the next post in the forum entitled, &quot;Positioning with CSS&quot;.&lt;/b&gt;&lt;b style=&quot;&quot;&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p&gt;Forum: &lt;a href=&quot;http://forums.mrc-productivity.com/mb/mrcuser?forum=121484&quot;&gt;CSS&lt;/a&gt;
</description>
		<guid isPermaLink="false">http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2796644</guid>
		<pubDate>Mon, 23 Jun 2008 20:50:57 GMT</pubDate>
		<author>steveh</author>
	</item>

	<item>
		<title>Benefits of Using CSS for Website Layout</title>
		<link>http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2796534</link>
		<description>  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot; arial=&quot;&quot; narrow=&quot;&quot; ;=&quot;&quot;&gt;Before you can really learn how to use CSS for positioning, you have to want to learn it.&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;I know there are some of you who may be saying, Ive been using tables for years, have become very good at it, and positioning with CSS is too complicated.&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;Youre not alone.&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;When I first started using CSS, I thought it was far more difficult than using tables.&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;As I became more familiar with CSS, I found that it was easier, faster, and more powerful than tables.&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;Here are a few more benefits of using CSS for positioning:&lt;/span&gt;&lt;/p&gt;  &lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot; arial=&quot;&quot; narrow=&quot;&quot; ;=&quot;&quot;&gt;They allow layout that      was formerly impossible with tables.&lt;span style=&quot;&quot;&gt;       &lt;/span&gt;Try doing this simple CSS layout with tables:&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.25in; text-indent: 0.25in;&quot;&gt;&lt;!-- &gt;                                                  &lt;! --&gt;&lt;!-- --&gt;&lt;img src=&quot;http://www.mrc-productivity.com/images/trythis.jpg&quot;&gt;&lt;br&gt;&lt;!-- --&gt;&lt;span style=&quot;font-size: 11pt;&quot; arial=&quot;&quot; narrow=&quot;&quot; ;=&quot;&quot;&gt;&lt;/span&gt;&lt;/p&gt;  &lt;ul style=&quot;margin-top: 0in;&quot; type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot; arial=&quot;&quot; narrow=&quot;&quot; ;=&quot;&quot;&gt;Since CSS is fully      standards compliant, your site will be more accessible to those using      alternate browser types, such as a PDA or cell phone.&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;As web surfing with cell phones becomes      more prevalent, the benefits of positioning with style sheets becomes more      noticeable.&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot; arial=&quot;&quot; narrow=&quot;&quot; ;=&quot;&quot;&gt;Pages will load faster      with CSS.&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;Browsers read through      tables twice before displaying their contents, once to work out their      structure and once to determine their content.&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;CSS also reduces the amount of tags      used, thus producing cleaner code, and minimizing the amount of      information that needs to load.&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot; arial=&quot;&quot; narrow=&quot;&quot; ;=&quot;&quot;&gt;Web sites are far      easier to maintain.&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;Besides being      able to make universal changes to specific elements, you can completely      redesign a site only by altering the CSS.&lt;span style=&quot;&quot;&gt;       &lt;/span&gt;Heres a very &lt;a target=&quot;_blank&quot; href=&quot;http://www.csszengarden.com/&quot;&gt;cool site&lt;/a&gt;      that demonstrates this.&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot; arial=&quot;&quot; narrow=&quot;&quot; ;=&quot;&quot;&gt;Your web page will be      more search-engine friendly.&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;Search      spiders look at the top of a page first, and also use the first 20-30      words as a page description.&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;Using      CSS, you can place the most important content first, improving your search      engine ranking.&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;Also, because you      can use external style sheets, a spider only has to crawl through the      content of your site, without dealing with all the code.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;   &lt;p&gt;Forum: &lt;a href=&quot;http://forums.mrc-productivity.com/mb/mrcuser?forum=121484&quot;&gt;CSS&lt;/a&gt;
</description>
		<guid isPermaLink="false">http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2796534</guid>
		<pubDate>Mon, 23 Jun 2008 20:02:52 GMT</pubDate>
		<author>steveh</author>
	</item>

	<item>
		<title>Using AJAX functionality with Web 2.0 servlets to fill in parts of your page</title>
		<link>http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2767549</link>
		<description>I am going to show you how easy it is, with a little JavaScript, to overwrite parts of your Web 2.0 servlet page with new data based on whatever event you choose.  It looks something like what you'll see in this &lt;a target=&quot;_blank&quot; href=&quot;http://www.crazybikes.com/mrcjava/servlet/CBB2E.M00020s&quot;&gt;application&lt;/a&gt;  when you select a product for update, overwrite the vendor number with a 1, and arrow down through the suggestion list.  It almost feels like you are locally connected to the data even though, every time you arrow up or down, a request is going back to our server to send you the new vendor information.  Here is how it is done.&lt;br&gt;&lt;br&gt;1. Create a single record web 2.0 retrieval application.  In our case it is CBB2E.I00080s.  In our example we have two presentation versions of this servlet.  The first, looks like &lt;a target=&quot;_blank&quot; href=&quot;http://www.crazybikes.com/mrcjava/servlet/CBB2E.I00080s&quot;&gt;this&lt;/a&gt;, and is called every time we reload the page with an &quot;import:&quot; command.&lt;br&gt;&lt;br&gt;2. Paint the output to look like an array of data in the form:&lt;br&gt;&lt;br&gt;data_array=new Array(&quot;1&quot;, &quot;Reco&quot;,&quot;1898 Yolin Road&quot;, &quot;Chicago&quot;, &quot;IL&quot;,&quot;90899&quot;); &lt;br&gt;&lt;br&gt;This example shows an array with 7 elements (java indexes are 0 - 6).  Our actual painted servlet looks like &lt;a target=&quot;_blank&quot; href=&quot;http://www.crazybikes.com/mrcjava/servlet/CBB2E.I00080s?pageName=I00080sarr.html&quot;&gt;this&lt;/a&gt;.  We have two elements, the first is not used, the second, is all the information we want to overwrite.  &lt;b&gt;Note:  Line breaks confuse the javascript array so you must paint it without any, which can make your html somewhat difficult to read in an example like this one.&lt;/b&gt;&lt;br&gt;&lt;br&gt;3. Create the single record or work with maintenance program that will have information replaced by the inquiry in step 1.  In our case this is CBB2E.M00020.&lt;br&gt;&lt;br&gt;Open the painter for your maintenance servlet to the maintenance page. Switch to source mode and add the following lines of code in the header section&lt;b&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;.&lt;/span&gt;&lt;/b&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://forums.mrc-productivity.com/mrcjava/mrcclasses/ajaxupdate.js&quot;&gt;&lt;/script&gt;&lt;br&gt; &lt;script  type=&quot;text/javascript&quot; src=&quot;/mrcjava/mrcclasses/prototype.js&quot;&gt;&lt;/script&gt; &lt;br&gt;&lt;script  type=&quot;text/javascript&quot; src=&quot;/mrcjava/mrcclasses/ajaxupdate.js&quot;&gt;&lt;/script&gt; &lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt; &lt;script type=&quot;text/&lt;span class=&quot; spelle=&quot;&quot;&gt;javascript&lt;/span&gt;&quot; &lt;span class=&quot;SpellE&quot;&gt;src&lt;/span&gt;=&quot;/mrcjava/&lt;span class=&quot;SpellE&quot;&gt;mrcclasses/prototype.js&lt;/span&gt;&quot;&gt;&lt;/script&gt; &lt;script type=&quot;text/&lt;span class=&quot; spelle=&quot;&quot;&gt;javascript&lt;/span&gt;&quot; &lt;span class=&quot;SpellE&quot;&gt;src&lt;/span&gt;=&quot;/mrcjava/&lt;span class=&quot;SpellE&quot;&gt;mrcclasses/ajaxupdate.js&lt;/span&gt;&quot;&gt;&lt;/script&gt;&lt;/span&gt;&lt;/b&gt;You may not have the last javascript file.  If not download it &lt;a target=&quot;_blank&quot; href=&quot;http://www.mrc-productivity.com/ajaxupdate.zip&quot;&gt;here&lt;/a&gt; and place it in your /mrcjava/mrcclasses directory.&lt;br&gt;&lt;br&gt;4. Add the bolded lines of code below to the window onload function.&lt;br&gt;&lt;br&gt;         window.onload = function(){&lt;br&gt;              &lt;b&gt; &lt;font face=&quot;Arial&quot;&gt;var url=&quot;MRCJAVALIB.I00080s?SGVND=&quot;;&lt;br&gt;               setAjaxSource(url); &lt;br&gt; &lt;/font&gt;&lt;/b&gt;              setAccessibility();&lt;br&gt;         }&lt;br&gt;&lt;br&gt;These tell not only what servlet to call to return information, but also the key parameter to make certain we will return the correct record.  This javascript example only allows one key field to the inquiry servlet..  For more, you will need a javascript programmer to make the necessary modifications.  mrc does not support javascript examples portrayed in this forum.&lt;br&gt;&lt;br&gt;This javascript default is to use the &quot;blur&quot; event for calling the inquiry.  If you wanted to change it to the &quot;keyup&quot; event, you would simply change the second line to.&lt;br&gt;&lt;br&gt;&lt;b&gt;&lt;font face=&quot;Arial&quot;&gt;      setAjaxSource(url, &quot;keyup&quot;);&lt;/font&gt;&lt;/b&gt;&lt;font face=&quot;Arial&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;br&gt;You may trigger your AJAX calls on any javascript event.  A list of javascript events can be found &lt;a target=&quot;_blank&quot; href=&quot;http://en.wikipedia.org/wiki/DOM_Events&quot;&gt;here&lt;/a&gt;.&lt;br&gt;&lt;br&gt;5. If all you want to do is fire off an AJAX request (like a maintenance program for example) and not use the response in your application, you are done.  If you want to use the response, like we do, you need to add the following function to the javascript section of your html page.&lt;br&gt;&lt;br&gt;       function afterAjax(ajaxText) {&lt;br&gt;                // alert(ajaxText);&lt;br&gt;       }&lt;br&gt;&lt;br&gt;6.Whatever field you wish to be passed to your inquiry (in our example we pass the vendor number) needs to be assigned an id of &lt;b&gt;id=&quot;ajax_src&quot;&lt;/b&gt; on the input tag.&lt;br&gt;&lt;br&gt;7.Whatever fields you want replaced in your form need to be assigned an id of &lt;b&gt;id=&quot;ajax_updN&quot;&lt;/b&gt; (on it's input statement) where &lt;b&gt;N&lt;/b&gt; is the number of the array element being passed back from your inquiry in step 2.  This allows you to fill multiple fields with data based on one look-up.&lt;br&gt;&lt;br&gt;In our case, we don't fill multiple fields with data, but rather an area of the screen.  We define that area with span tags and give the span tag an id of &lt;b&gt;id=&quot;ajax_dspN&quot;&lt;/b&gt; where &lt;b&gt;N&lt;/b&gt; is the number of the array element being passed back from your inquiry in step 2. &lt;br&gt;&lt;br&gt;That's really all there is to it.  Now for a quick review:&lt;br&gt;&lt;br&gt;&lt;i&gt;Steps 1 through 4&lt;/i&gt; above show you how to fire off an asynchronous request based on any javascript event and they give you a link to a list of all javascript events.&lt;br&gt;&lt;br&gt;&lt;i&gt;Steps 5 through 7&lt;/i&gt; show you how to define a field that will be passed to your javascript event and how to name either the fields or the area of the screen you want the passed back data to fill.&lt;br&gt;&lt;br&gt;Have fun with this.  It really can give your applications a nice feel. And let me know if posts like this are helpful to you by responding to this post.&lt;br&gt;&lt;br&gt; &lt;p&gt;Forum: &lt;a href=&quot;http://forums.mrc-productivity.com/mb/mrcuser?forum=34956&quot;&gt;m-Power Tips and Tricks&lt;/a&gt;
</description>
		<guid isPermaLink="false">http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2767549</guid>
		<pubDate>Mon, 09 Jun 2008 20:03:05 GMT</pubDate>
		<author>JoeStangarone</author>
	</item>

	<item>
		<title>Websphere configuration suggestions</title>
		<link>http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2761414</link>
		<description>Good afternoon&lt;br&gt;&lt;br&gt;Does anyone on this forum have experience configuring websphere to support m-Power developed applications?&lt;br&gt;&lt;br&gt;Could you share that experience please.&lt;br&gt;&lt;br&gt;Roy Luce&lt;br&gt;Systems Plus&lt;br&gt; &lt;p&gt;Forum: &lt;a href=&quot;http://forums.mrc-productivity.com/mb/mrcuser?forum=72733&quot;&gt;Dear Marcy&lt;/a&gt;
</description>
		<guid isPermaLink="false">http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2761414</guid>
		<pubDate>Fri, 06 Jun 2008 19:26:28 GMT</pubDate>
		<author>lwluce</author>
	</item>

	<item>
		<title>Bringing Google Suggest functionality to your servlets</title>
		<link>http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2751784</link>
		<description>You've seen the &quot;AJAX suggest&quot; functionality built into our multi-record inquiry and work with maintenance templates.  It looks something like this:&lt;br&gt;&lt;br&gt;&lt;img src=&quot;file:///C:/DOCUME%7E1/STANGA%7E1/LOCALS%7E1/Temp/moz-screenshot.jpg&quot; alt=&quot;&quot;&gt;&lt;img src=&quot;file:///C:/DOCUME%7E1/STANGA%7E1/LOCALS%7E1/Temp/moz-screenshot-1.jpg&quot; alt=&quot;&quot;&gt;&lt;img src=&quot;http://www.mrc-productivity.com/members/manual/servletmanual/AJAX/Implement%20AJAX%20within%20a%20Single%20Record%20Maintainer_files/image002.jpg&quot;&gt;&lt;br&gt;&lt;br&gt;I'm going to show you how to bring this same kind of functionality to your m-Power servlets - &lt;i&gt;where it's not already built in&lt;/i&gt;.  There is some javascript involved.  And, it's easier than you might think.  The only thing to keep in mind is that what I am going to show you is not part of m-Power and therefore not supported by mrc.  It is, probably, one of the very reasons you chose to build your web apps with m-Power: the lightweight functionality that you can add to your browser based applications.  What I am going to show you works &quot;right out of the box.  I can't think of any times when you might need to change it. So, here goes.&lt;br&gt;&lt;br&gt;An example of what we are going to build can be found &lt;a target=&quot;_blank&quot; href=&quot;http://www.crazybikes.com/mrcjava/servlet/CBB2E.M00020s&quot;&gt;here.&lt;/a&gt;  Click to update any record, then erase the vendor number field and start typing with a '1'.  Now don't get too excited, I'm only going to show you how to make the drop down box populated from the vendor master file appear, not how to make the photo and vendor information change.  I'm saving that one for my next post.  If you keep typing beyond the &quot;1', your list will narrow as you go.  If you type something that doesn't exist in the file, your list will be empty.  In this example there is so little data that you can just type a 1 and use the arrow keys to select amongst the elements.&lt;br&gt;&lt;br&gt;&lt;i&gt;&lt;u&gt;&lt;b&gt;The Recipe&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;&lt;br&gt;&lt;br&gt;1. We need to build a multi-record web 2.0 inquiry to create the drop-down list.  In our case, it is CBB2E.I00090s.  It is written over the vendor master file.  It contains only one field, the vendor number and is sequenced by that field.&lt;br&gt;&lt;br&gt;2. We need to create a maintenance program where we will add the &quot;AJAX suggest&quot; functionality.  This can be either a web 2.0 single record maintenance or a web 2.0 work with maintenance.  In our case it's CBB2E.M00020s - a work with maintenance.&lt;br&gt;&lt;br&gt;3. Open the painter for your maintenance servlet to the maintenance page.  Switch to source mode and add the following lines of code in the  header section&lt;b&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;.&lt;link&gt;&lt;/span&gt;&lt;/b&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;/mrcjava/mrcclasses/ajaxupdate.js&quot;&gt;&lt;/script&gt; href=&quot;/mrcjava/mrcclasses/mrc_servlet_ajax.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;/&gt;&lt;br&gt;&lt;script  type=&quot;text/javascript&quot; src=&quot;/mrcjava/mrcclasses/prototype.js&quot;&gt;&lt;/script&gt; &lt;br&gt;&lt;script  type=&quot;text/javascript&quot; src=&quot;/mrcjava/mrcclasses/ajaxupdate.js&quot;&gt;&lt;/script&gt; &lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt; &lt;script type=&quot;text/&lt;span class=&quot; spelle=&quot;&quot;&gt;javascript&lt;/span&gt;&quot; &lt;span class=&quot;SpellE&quot;&gt;src&lt;/span&gt;=&quot;/mrcjava/&lt;span class=&quot;SpellE&quot;&gt;mrcclasses/prototype.js&lt;/span&gt;&quot;&gt;&lt;/script&gt; &lt;br&gt; &lt;script type=&quot;text/&lt;span class=&quot; spelle=&quot;&quot;&gt;javascript&lt;/span&gt;&quot; &lt;span class=&quot;SpellE&quot;&gt;src&lt;/span&gt;=&quot;/mrcjava/&lt;span class=&quot;SpellE&quot;&gt;mrcclasses/ajaxupdate.js&lt;/span&gt;&quot;&gt;&lt;/script&gt;&lt;/span&gt;&lt;/b&gt;You may not have the last javascript file.  If not download it &lt;a target=&quot;_blank&quot; href=&quot;http://www.mrc-productivity.com/ajaxupdate.zip&quot;&gt;here&lt;/a&gt; and place it in your /mrcjava/mrcclasses directory.&lt;br&gt;&lt;br&gt;4. Add the following java function to the javascript portion of the page.&lt;br&gt;&lt;blockquote&gt;&lt;b&gt;&lt;font face=&quot;Arial&quot;&gt;  function onsubmit1(){ &lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;b&gt;&lt;font face=&quot;Arial&quot;&gt;                      var ajaxSrc = $('ajax_src');&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;b&gt;&lt;font face=&quot;Arial&quot;&gt;                      if (ajaxSrc) {&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;b&gt;&lt;font face=&quot;Arial&quot;&gt;                          var ajaxCopy = $('ajax_copy');&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;b&gt;&lt;font face=&quot;Arial&quot;&gt;                          if (ajaxCopy) {&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;b&gt;&lt;font face=&quot;Arial&quot;&gt;                              ajaxCopy.value = ajaxSrc.value;&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;b&gt;&lt;font face=&quot;Arial&quot;&gt;                          }&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;b&gt;&lt;font face=&quot;Arial&quot;&gt;                      }&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;b&gt;&lt;font face=&quot;Arial&quot;&gt;                      return true;&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;b&gt;&lt;font face=&quot;Arial&quot;&gt;                  }&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;/blockquote&gt;5. Next we have to tell the maintenance program about the Inquiry we built in step 1.  To do that, find the non-italic code below and insert the &lt;i&gt;italic&lt;/i&gt; code within it.&lt;blockquote&gt;&lt;blockquote&gt;   window.onload = function(){&lt;br&gt;      &lt;i&gt;var server_app='CBB2E.I00090s';       &lt;br&gt;      init2(server_app, &quot;I&quot;);&lt;/i&gt;&lt;b&gt;&lt;br&gt;&lt;/b&gt; setAccessibility();&lt;br&gt;} &lt;br&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;where CBB2E is the name of your data dictionary and I00090s is the name of your servlet built in step 1.&lt;br&gt;&lt;br&gt;6. We need to tell the javascript what field should call I00090s.  Scan for the input field you need - in our case it is SGVND.  &lt;br&gt;&lt;ol&gt;&lt;li&gt;Add &lt;i&gt;id=&quot;a&lt;span class=&quot;SpellE&quot;&gt;jax_src&lt;/span&gt;&quot;&lt;/i&gt; to the input field.&lt;/li&gt;&lt;li&gt;Change the field name on the input statement from &lt;b&gt;name=&quot;XXXXX&quot;&lt;/b&gt; to &lt;b&gt;name=&quot;val_XXXXX&quot;&lt;/b&gt; where XXXXX is your field name.&lt;/li&gt;&lt;li&gt;Add a hidden field for the original field name in the hidden field section of the page.  It should look like:  &lt;input id=&quot;ajax_copy&quot; type=&quot;hidden&quot; name=&quot;XXXXX&quot; value=&quot;0&quot; /&gt;   where XXXXX is your field name. &lt;/li&gt;&lt;/ol&gt;7. Lastly, we need to add &lt;i&gt;&lt;span class=&quot;SpellE&quot;&gt;onsubmit&lt;/span&gt;=&quot;return onsubmit1()&quot;&lt;/i&gt; to the form tag on the page.&lt;br&gt;&lt;br&gt;If you've done it right, you should be able to save your html source and watch the AJAX suggest functionality come to life.  This implementation only allows for one AJAX suggest field per servlet.  For more, find someone who can understand and modify the javascript that I have given you.  I think you'll agree that for many application types, this way of doing this is slicker than an &lt;a href=&quot;http://www.mrc-productivity.com/members/manual/servletmanual/Web_20/Web20DropDownListExternal.html&quot; target=&quot;_blank&quot;&gt;External Dropdown list&lt;/a&gt; or a &lt;a href=&quot;http://www.mrc-productivity.com/members/manual/servletmanual/Smartlinks/Return-Data.html&quot; target=&quot;_blank&quot;&gt;Return Data Smartlink&lt;/a&gt; &lt;p&gt;Forum: &lt;a href=&quot;http://forums.mrc-productivity.com/mb/mrcuser?forum=34956&quot;&gt;m-Power Tips and Tricks&lt;/a&gt;
</description>
		<guid isPermaLink="false">http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2751784</guid>
		<pubDate>Mon, 02 Jun 2008 20:59:56 GMT</pubDate>
		<author>JoeStangarone</author>
	</item>

	<item>
		<title>Easily Create Cross-Browser Compatible Cascading Style Sheets (CSS)</title>
		<link>http://forums.mrc-productivity.com/tool/post/mrcuser/vpost?id=2719908</link>
		<description>I have listed below several tips to ensure web pages look the same across different browsers.  Keep in mind that this is in no way an all-encompassing list.  These are just a few tips that I have found most useful in web design.  If you use any methods which aren't listed here, please feel free to post them as a comment in this thread.  &lt;br&gt;&lt;ol&gt;&lt;br&gt;&lt;li&gt;&lt;b&gt;Remove default styling&lt;/b&gt;&lt;br&gt;&lt;br&gt;The two elements most commonly handled differently between browsers are padding and margins.  Considering the number of browsers and browser versions available, trying to accommodate the rules for each could drive a person mad.  Instead, it is easier to simply set padding and margins to '0' at the beginning of your CSS file.  This can be done by typing:&lt;br&gt;&lt;b&gt; * {margin: 0; padding: 0;} &lt;/b&gt;&lt;br&gt;This code should be placed directly under the 'style' tag in your CSS.  It will set all margins and padding in your page to '0', creating a common starting point for margins and padding across all browsers.&lt;br&gt;&lt;br&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Display: inline&lt;/b&gt;&lt;/li&gt;&lt;br&gt;Every element that is floated and has a margin larger than '0' should be given this rule: &lt;br&gt;&lt;br&gt;&lt;b&gt; display: inline; &lt;/b&gt;&lt;br&gt;For example, here is a page displayed in Firefox:&lt;br&gt;&lt;br&gt;&lt;img src=&quot;http://www.mrc-productivity.com/forum/images/displayinlineff.jpg&quot;&gt;&lt;br&gt;&lt;br&gt;Here is the same page displayed in Internet Explorer (IE):&lt;br&gt;&lt;br&gt;&lt;img src=&quot;http://www.mrc-productivity.com/forum/images/displayinline.jpg&quot;&gt;    &lt;br&gt;&lt;br&gt; You'll notice the white headers at the top are moved slightly to the left.  IE incorrectly displays these headers as block elements.  This can easily be fixed by adding the rule, 'display: inline;' to the header div element, as demonstrated in the code below:&lt;br&gt;&lt;br&gt; .headermenu{&lt;br&gt;        font: bold 13px Verdana;&lt;br&gt;        text-align: center;&lt;br&gt;        float: left;&lt;br&gt;        position: relative;&lt;br&gt;        border: 1px solid black;&lt;br&gt;        margin: 10px 0px 0px 10px;&lt;br&gt;        width: 120px;&lt;br&gt;        height: 20px;&lt;br&gt;        background-color: white;&lt;br&gt;        display: inline;&lt;br&gt;        } &lt;br&gt;&lt;br&gt;&lt;li&gt;&lt;b&gt;Clear your floats&lt;/b&gt;&lt;/li&gt;&lt;br&gt;You should use the 'clear' property when you have elements following a floated element in the source code that must remain below the floated element visually on the page.  This can get confusing when you are working with floated elements inside of a containing box, such as a div element.  Some browsers will automatically arrange the floats correctly, while others will not.  &lt;br&gt;&lt;br&gt;For example, here's a page with floats displayed in Firefox:&lt;br&gt;&lt;br&gt;&lt;img src=&quot;http://www.mrc-productivity.com/forum/images/firefoxexample.jpg&quot;&gt;&lt;br&gt;&lt;br&gt;Here is the same page displayed in IE:&lt;br&gt;&lt;br&gt;&lt;img src=&quot;http://www.mrc-productivity.com/forum/images/ieexample.jpg&quot;&gt;&lt;br&gt;&lt;br&gt;This can be fixed by adding 'clear: both;' to the blue div element's code:&lt;br&gt;For example, note last rule in the code below:&lt;br&gt;&lt;br&gt; #bluediv{&lt;br&gt;        background-color: blue;&lt;br&gt;        font: bold 12px arial;&lt;br&gt;        position: absolute;&lt;br&gt;        width: 625px;&lt;br&gt;        top: 140px;&lt;br&gt;        height: 45px;&lt;br&gt;        padding: 2px;&lt;br&gt;        margin-left: 10px;&lt;br&gt;        border: 1px solid black;&lt;br&gt;        clear: both;&lt;br&gt;        } &lt;br&gt;This will tell IE to disregard the current floats and begin a new line.&lt;br&gt;&lt;br&gt;&lt;li&gt;&lt;b&gt;Overflow problems&lt;/b&gt;&lt;/li&gt;&lt;br&gt;If an element contains more text than it is able to hold, certain versions of IE will enlarge the parent element in order to contain all the text. This can be fixed with the 'overflow: hidden;' rule.  For example, if IE is expanding an element vertically, place this rule into the element's code:&lt;br&gt;&lt;br&gt;&lt;b&gt; Overflow-y: hidden; &lt;/b&gt;&lt;br&gt;Simply replace the 'y' with 'x' for a horizontally expanding element.  This will hide any text that will not fit inside of the parent element.  It is up to you to make 