<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>computeraxe &#187; CSS</title>
	<atom:link href="http://computeraxe.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://computeraxe.com</link>
	<description>wordpress tips and tricks</description>
	<lastBuildDate>Tue, 31 Jan 2012 07:05:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Centering Slideshows with jQuery Cycle Plugin</title>
		<link>http://computeraxe.com/centering-slideshows-with-jquery-cycle-plugin/</link>
		<comments>http://computeraxe.com/centering-slideshows-with-jquery-cycle-plugin/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 07:05:30 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=851</guid>
		<description><![CDATA[The jQuery Cycle plugin is a JavaScript plugin that will help you make beautiful slideshows. There are a ton of options for the Cycle plugin to help you make really nice-looking and functional slideshows. This example will show the steps &#8230; <a href="http://computeraxe.com/centering-slideshows-with-jquery-cycle-plugin/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The jQuery Cycle plugin is a JavaScript plugin that will help you make beautiful slideshows. There are a ton of <a href="http://www.malsup.com/jquery/cycle/options.html" title="Options for Cycle plugin">options for the Cycle plugin</a> to help you make really nice-looking and functional slideshows. </p>
<p>This example will show the steps to take for centering slides in a slideshow using the Cycle plugin. HTML markup in this case is a group of images inside a &lt;div> container. CSS is used to give some style to our slideshow and for centering everything. JavaScript is used to control the transitions of the slides and the animation of the slideshow.</p>
<p>HTML Markup:</p>
<pre class="crayon-plain-tag"><code>&lt;div id=&quot;showy&quot;&gt;
&lt;img src=&quot;/images/runaway-artist.jpg&quot; alt=&quot;runaway artist&quot; class=&quot;first&quot; /&gt;
&lt;img src=&quot;/images/darling-kittens.jpg&quot; alt=&quot;darling kittens&quot; /&gt;
&lt;img src=&quot;/images/dog-in-sun.jpg&quot; alt=&quot;dog in sun&quot; /&gt;
&lt;img src=&quot;/images/cat-in-tree.jpg&quot; alt=&quot;cat in tree&quot; /&gt;
&lt;/div&gt;</code></pre>
<p>A basic slideshow might have a few images that are cycled through in sequential fashion with random special effects that bring each photo into view. The JavaScript code that could be used with the jQuery Cycle plugin for such a slideshow could be as follows:</p>
<p>JavaScript:</p>
<pre class="crayon-plain-tag"><code>jQuery(document).ready(function($) {
 $('#showy').cycle({
  fx: 'all',
  speed: 800,
  pause: 2000,
  slideExpr: 'img'
 });
});</code></pre>
<p>So far, we&#8217;d get a mess if no CSS rules targeted the slideshow. </p>
<div id="showy">
<img src="/images/runaway-artist.jpg" alt="runaway artist" class="first" /><br />
<img src="/images/darling-kittens.jpg" alt="darling kittens" /><br />
<img src="/images/dog-in-sun.jpg" alt="dog in sun" /><br />
<img src="/images/cat-in-tree.jpg" alt="cat in tree" />
</div>
<div class="clear"> </div>
<p>Without <em>at least</em> giving dimensions to the slideshow, via width and height properties, the Cycle plugin will be helpless to show the images correctly. Make sure to add width and height values to the slideshow container in the CSS rules.</p>
<p>Also, you&#8217;ll need to specify the position property. In this case we&#8217;re giving a value of &#8216;relative&#8217;  instead of &#8216;absolute&#8217; for the position property as we want to center the slideshow instead of placing it at some exact location. Without specifying the position of the slideshow container, some of the transition effects won&#8217;t be seen as intended.</p>
<p>The trick to centering the slideshow is to set the margins. Give the right and left margins a string value of &#8216;auto&#8217; to center things horizontally. The top and bottom margins are given a numerical value, 10 px in this case.</p>
<p>CSS:</p>
<pre class="crayon-plain-tag"><code>#showy {
position:relative;
height:300px;
width: 300px;
margin: 10px auto;
}</code></pre>
<p>Using these simple CSS styling rules, we get a more pleasing slideshow experience.</p>
<div id="showy2">
<img src="/images/1.jpg" alt="one" class="first" /><br />
<img src="/images/2.jpg" alt="two" /><br />
<img src="/images/3.jpg" alt="three" /><br />
<img src="/images/4.jpg" alt="four" />
</div>
<div class="clear"> </div>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/centering-slideshows-with-jquery-cycle-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Plugin: jQuery Cycle for Slideshows</title>
		<link>http://computeraxe.com/javascript-plugin-jquery-cycle-for-slideshows/</link>
		<comments>http://computeraxe.com/javascript-plugin-jquery-cycle-for-slideshows/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 07:05:27 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=848</guid>
		<description><![CDATA[JavaScript plugins can definitely speed up development of a website, but unless you take the time to explore the plugins you&#8217;re using, you may not be using them to full advantage. Read on to learn more about using the jQuery &#8230; <a href="http://computeraxe.com/javascript-plugin-jquery-cycle-for-slideshows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>JavaScript plugins can definitely speed up development of a website, but unless you take the time to explore the plugins you&#8217;re using, you may not be using them to full advantage. Read on to learn more about using the <a href="http://www.malsup.com/jquery/cycle/" title="jQuery Cycle plugin for slideshows">jQuery Cycle plugin</a> for slideshows. It works with jQuery v1.3.2 and later.</p>
<div id="show3">
<img src="/images/cat-in-snow.jpg" alt="cat in snow" class="first" /><br />
<img src="/images/cat-in-tree.jpg" alt="cat in tree" /><br />
<img src="/images/darling-kittens.jpg" alt="darling kittens" /><br />
<img src="/images/baby-sixtoes.jpg" alt="baby sixtoes" />
</div>
<div class="clear">&nbsp;</div>
<p>The jQuery Cycle Plugin offers an amazing number of transitions for your next slideshow. If any of the two dozen transitions don&#8217;t give the effect you&#8217;re looking for, the plugin can always be modified to suit. If you&#8217;re looking to make some unique transitions, check out the advanced demos on the plugin site.</p>
<p>Over 50 options can be implemented to show your slides in the best light. Options are available for controlling the speed of the transitions, the length of time between slides, as well as running the slideshow backwards or stopping after a certain number of slides have been shown. </p>
<p>Slides can be forced to fit a container and made to be manually paused and resumed. Easing transitions can be specified as can random showing of slides. <a href="http://www.malsup.com/jquery/cycle/options.html" title="Options for Cycle plugin">Options in Cycle</a> are plentiful and definitely worth investigating.</p>
<p>Command strings can be used to pause or resume the slideshow or advance to the next or previous slides. Tie these commands to a click event to let your visitors see the show as they wish.</p>
<p>The Cycle plugin works with two assumptions in creating slideshows. First, it assumes that a container object has been identified, usually via a class or id identifier, that will contain the slides for the slideshow. All children of the containing parent will become a slide.</p>
<p>Second, the slides must all be children of the container. Any object can be a child here, so textual content, images, anchors and divs can all be manipulated and viewed as slides in your slideshow. Don&#8217;t put anything else in the slideshow container unless you want it to become part of the slideshow.</p>
<p>Here&#8217;s the HTML markup that could be used for a simple slideshow of images:</p>
<pre class="crayon-plain-tag"><code>&lt;div id=&quot;show&quot;&gt;
&lt;img src=&quot;../images/pic1.jpg&quot; alt=&quot;one&quot; /&gt;
&lt;img src=&quot;../images/pic2.jpg&quot; alt=&quot;two&quot; /&gt;
&lt;img src=&quot;../images/pic3.jpg&quot; alt=&quot;three&quot; /&gt;
&lt;img src=&quot;../images/pic4.jpg&quot; alt=&quot;four&quot; /&gt;
&lt;img src=&quot;../images/pic5.jpg&quot; alt=&quot;five&quot; /&gt;
&lt;/div&gt;</code></pre>
<p>The images are contained in a specific container, div#show, which can be styled with CSS. Giving the container and the slides fixed dimensions works best, so make sure to specify the widths and heights.</p>
<p>The default behavior is to fade slides in and out of the container in a continuous and sequential manner, in a cyclical way. So, we&#8217;re going to &#8216;cycle&#8217; through the slides in this slideshow. The javascript for a slideshow using default behavior is simple:</p>
<pre class="crayon-plain-tag"><code>$('#show').cycle();</code></pre>
<p>With Cycle plugin default settings the slideshow starts with the first image or slide and each slide takes one second, or 1000 milliseconds, to be faded in. Each slide is then paused for 4 seconds and then faded out in one second. The slideshow wraps around so that the first slide will be shown after the last one. The fading in and out action occurs continuously and indefinitely with the default settings, as below:</p>
<div id="show">
<img src="/images/cat-in-snow.jpg" alt="cat in snow" class="first" /><br />
<img src="/images/cat-in-tree.jpg" alt="cat in tree" /><br />
<img src="/images/darling-kittens.jpg" alt="darling kittens" /><br />
<img src="/images/baby-sixtoes.jpg" alt="baby sixtoes" />
</div>
<div class="clear">&nbsp;</div>
<p>To alter the slideshow behavior pass an effect, other than fade, as a string to the cycle method, like so:</p>
<pre class="crayon-plain-tag"><code>$('#show2').cycle('shuffle');</code></pre>
<p>Check out all the effects that can be used to transition slides: blindX, blindY, blindZ, cover, curtainX, curtainY, fade, fadeZoom, growX, growY, scrollUp, scrollDown, scrollLeft, scrollRight, scrollHorz, scrollVert, shuffle, slideX, slideY, toss, turnUp, turnDown, turnLeft, turnRight, uncover, wipe, and zoom.</p>
<p>Several transitions can be combined in a comma-separated list if you can&#8217;t choose just one. Or, use the string &#8216;all&#8217; to see all the slide transition effects in a random manner.</p>
<p>Alternatively, you can use an options object to set the <em>fx</em> option among others. The code below specifies fade, zoom and curtainY effects to bring the slides in and out of the container. Each slide will be brought in slowly (800 ms) and taken out quickly (400 ms) taking a total of 3 seconds for each complete transition. This is the code for the slideshow (#show3) at the top of this post.</p>
<pre class="crayon-plain-tag"><code>$('#show3').cycle({
  fx: 'fade,zoom,curtainY',
    speedIn: 800,
    speedOut: 400,
    slideExpr: 'img'
    timeout: 3000,
    nowrap: true
});</code></pre>
<p>The parameter <em>slideExpr</em> is given a string value of &#8216;img&#8217; in order to produce a slideshow without <a href="http://jquery.malsup.com/cycle/slideExpr.html" title="Blank pauses between slides in WordPress">long blank pauses in between slides</a> when using WordPress. WordPress and other content management systems may introduce extraneous markup when preparing webpages. The markup may be incorrectly interpreted by different browsers used to view slideshows created with Cycle, so it&#8217;s become important to specify the elements that are supposed to be cycled in the slideshow. Thus, the addition of <em>slideExpr: &#8216;img&#8217;</em> as an optional parameter is necessary for image slideshows in WordPress.</p>
<p>The slideshow just above will be shown only one time and end with the last slide because the nowrap option is set to true. This might be a good thing to remember for leaving a textual message on the screen with your last slide instead of having the slideshow run indefinitely.</p>
<p>If you get stuck or need a little help with figuring out how to work the Cycle plugin, visit the <a href="http://forum.jquery.com/" title="jQuery forum">jQuery Forum</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/javascript-plugin-jquery-cycle-for-slideshows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Javascript Plugin: InnerFade with jQuery</title>
		<link>http://computeraxe.com/javascript-plugin-innerfade-with-jquery/</link>
		<comments>http://computeraxe.com/javascript-plugin-innerfade-with-jquery/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 07:05:03 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[newsticker]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=828</guid>
		<description><![CDATA[Fade elements in and out with the InnerFade javascript plugin. Its purpose is to fade &#8220;any element inside a container in and out&#8221; and it relies on jQuery to do its magic. InnerFade is a lightweight plugin of only 8 &#8230; <a href="http://computeraxe.com/javascript-plugin-innerfade-with-jquery/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Fade elements in and out with the <a href="http://medienfreunde.com/lab/innerfade" title="InnerFade jQuery Plugin">InnerFade javascript plugin</a>. Its purpose is to fade &#8220;any element inside a container in and out&#8221; and it relies on jQuery to do its magic. InnerFade is a lightweight plugin of only 8 kb, so it won&#8217;t bog down your pages.</p>
<p>Any group of elements can be faded in and out with the InnerFade plugin as long as they are inside a container that is targeted by the first line of the script. Example elements that can be faded in and out are links in an unordered or ordered list, textual list items, or paragraphs in a div.</p>
<ul id="good_ideas">
<li>A. Eat Right &#8211; It&#8217;s the easiest medicine to take.</li>
<li>B. Buy Less Stuff &#8211; You don&#8217;t really need it, do you?</li>
<li>C. Recycle Everything &#8211; Save the Earth from humans.</li>
<li>D. Laugh Every Day &#8211; It helps to keep things in perspective.</li>
<li>E. Help One Another &#8211; Some day you&#8217;ll need a little help, so spread good karma.</li>
<li>F. Keep Smiling &#8211; It releases happy endorphins and makes you look great, too!</li>
</ul>
<div class="clear">&nbsp;</div>
<p>Target specific classes or ids for the right effect. Using the InnerFade plugin with jQuery is a simple way to show a countdown clock where one number fades out and the next one in the sequence fades in.</p>
<p>A news ticker, like the one above, can be created by fading in and out headlines for each news item. Each headline could be a link to the complete story. The headlines could be marked up as list items, like this list of good ideas:</p>
<pre class="crayon-plain-tag"><code>&lt;ul id=&quot;good_ideas&quot;&gt;
&lt;li&gt;A. Eat Right - It's the easiest medicine to take.&lt;/li&gt;
&lt;li&gt;B. Buy Less Stuff - You don't really need it, do you?&lt;/li&gt;
&lt;li&gt;C. Recycle Everything - Save the Earth from humans.&lt;/li&gt;
&lt;li&gt;D. Laugh Every Day - It helps to keep things in perspective.&lt;/li&gt;
&lt;li&gt;E. Help One Another - Some day you'll need a little help, so spread good karma.&lt;/li&gt;
&lt;li&gt;F. Keep Smiling - It releases happy endorphins and makes you look great, too!&lt;/li&gt;
&lt;/ul&gt;</code></pre>
<p>The easiest way to use the InnerFade plug is to accept the default settings, as we did above, and call it with a minimum of effort like so:</p>
<pre class="crayon-plain-tag"><code>jQuery(document).ready(function($) {
    $('#good_ideas').innerfade();
  });</code></pre>
<p>There are only a handful of options and changing them is fairly simple. The type of animation can be set to &#8216;fade&#8217; or &#8216;slide&#8217;. The speed of the fading or sliding effects is set in milliseconds or with the strings &#8216;slow&#8217;, &#8216;normal&#8217;, or &#8216;fast&#8217;. Timeout is the time between animations in milliseconds. The type of slideshow is set using the strings &#8216;sequence&#8217;, &#8216;random&#8217;, or &#8216;random_start&#8217;. The height of the container element can be set in px, em, %.</p>
<p>Default Settings:</p>
<pre class="crayon-plain-tag"><code>animationtype: fade
speed: normal
timeout: 2000
type: sequence
containerheight: auto
runningclass: innerfade</code></pre>
<p>Now that you know you can call the javascript plugin and use it with the default settings, try changing the settings for different effects. For example, try sliding the elements slowly in and out of the 45px tall container in random order with a 3 second pause.</p>
<pre class="crayon-plain-tag"><code>$(document).ready(
  function() {
    $('.group2fade').innerfade({
      animationtype: slide,
      speed: 'slow',
      timeout: 3000,
      type: 'random',
      containerheight: '45px'
    });
  }
);</code></pre>
<p>The InnerFade plugin handles all the hiding of elements until viewed, so without javascript enabled, the visitor will see everything on the page. Use a &lt;noscript&gt; method to offer alternative content to browsers with javascript turned off and put it in the html document just before the closing body tag.</p>
<p>InnerFade plugin can be used for simple slideshows too. The only caveat is to make sure images are of the same size or the bottom edges of larger pics will be seen behind the stack of images.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/javascript-plugin-innerfade-with-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Twenty Ten Child Theme Mods</title>
		<link>http://computeraxe.com/twenty-ten-child-theme-mods/</link>
		<comments>http://computeraxe.com/twenty-ten-child-theme-mods/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 13:55:37 +0000</pubDate>
		<dc:creator>axe</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Style Sheets]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[Twenty Ten]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=615</guid>
		<description><![CDATA[Creating WordPress child themes is a slick way to make your own theme. All it takes are a few easy steps. Here&#8217;s an example using the standard Twenty Ten theme as the parent theme: modify the child-stylesheet to make things &#8230; <a href="http://computeraxe.com/twenty-ten-child-theme-mods/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Creating WordPress child themes is a slick way to make your own theme. All it takes are a few easy steps. Here&#8217;s an example using the standard Twenty Ten theme as the parent theme:</p>
<ul>
<li>modify the child-stylesheet to make things look how you want</li>
<li>create child-directory for new child theme</li>
<li>add template files to child-directory, if you wish</li>
<li>upload child-directory to /wp-content/themes/</li>
<li>activate new child theme</li>
</ul>
<p>The child-stylesheet must be saved with the name &#8220;style.css&#8221; in the child-directory. The child-stylesheet header (which has to be at the top of the sheet) must contain a few lines that identify its parent theme, like so:</p><pre class="crayon-plain-tag"><code>/*
Theme Name:     Twenty Ten Child
Description:    Child theme for the Twenty Ten theme
Author:         Your name here
Template:       twentyten
Version:        0.1.0
*/

@import url(&quot;../twentyten/style.css&quot;);

{put new style rules here}</code></pre><p>
You can add a line for the Theme URI: and Author URI:, if you like. Only the Theme Name: and Template: lines are required, the others are optional.</p>
<p>The @import rule indicates the directory of the parent theme and the location of the stylesheet. All you have to do is put in the new css rules below the import line.</p>
<p>That&#8217;s it!</p>
<p>If modifying the stylesheet doesn&#8217;t quite get all the changes you want, realize that you can add any template file to the child-directory and that will <strong>over-ride the parent file with the same name</strong>. For example, say you want to stick in a block for an advertisement right under the header image. Copy header.php and add a new &lt;div&gt; at the bottom of the page just below &lt;div id=&#8221;main&#8221;&gt; and stick the ad code in this division. Upload this new header.php into the child-directory and it will replace the one from the parent template.</p>
<p>Activate your new <a title="wordpress child themes" href="http://codex.wordpress.org/Child_Themes">child theme</a> and see how it looks!</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/pixy.gif?x-id=508a17ac-d8a3-4edf-a5a8-6527e1596f1d" alt="" /><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/twenty-ten-child-theme-mods/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>CSS Rounds Corners in Firefox, But Not in IE8</title>
		<link>http://computeraxe.com/css-rounds-corners-firefox-not-ie8/</link>
		<comments>http://computeraxe.com/css-rounds-corners-firefox-not-ie8/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 20:26:00 +0000</pubDate>
		<dc:creator>LizzyFin</dc:creator>
				<category><![CDATA[browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[corners]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=267</guid>
		<description><![CDATA[Firefox/Mozilla browsers are gaining shares of the browser market and for good reason. Upbeat features let the user take complete control of their browsing experience, which is one main reason behind their gaining popularity. Add-On tools can help most any &#8230; <a href="http://computeraxe.com/css-rounds-corners-firefox-not-ie8/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Firefox/Mozilla browsers are gaining shares of the browser market and for good reason. Upbeat features let the user take complete control of their browsing experience, which is one main reason behind their gaining popularity. Add-On tools can help most any website developer to see that their site is put together in a valid way and that has pushed Firefox use among developers to probably a very high level. I still have yet to hear another web developer state that they prefer IE over Firefox, and I&#8217;m pretty sure that all of us have cursed IE6!</p>
<p>Firefox also champions the use of future CSS, which are CSS features that will only be seen by IE users at some time in the future. Ok, I made that up, but since Internet Explorer is playing the catchup game, I think it&#8217;s only fitting to point out an example.</p>
<p>Looking at some CSS basics&#8230;we have a way to draw a box around some content. It&#8217;s called the border property. The top, left, right and bottom sides of the box can be assigned diferent values for the width, style and color. Each of these values can be assigned separately or all at once.</p>
<p>Separately:</p>
<div class="box">
.box {<br />
border-width: 1px;<br />
border-style: solid;<br />
border-color: #000;<br />
}
</div>
<p>All together, in the order <em>width, style, color</em>:</p>
<div class="box">
.box {<br />
border: 1px solid #d1d1d1;<br />
}
</div>
<p>If you want to have different widths, styles or colors for your box, then you&#8217;ll have to use the properties that target each side, like so:</p>
<div class="sbox">
.box {<br />
border-left: 1px dashed #000;<br />
border-right: 2px solid #5ca3b7;<br />
border-top: 1px dashed #000;<br />
border-bottom: 2px solid #5ca3b7;<br />
}
</div>
<p>That&#8217;s nice, but sometimes we really don&#8217;t want the square boxy look. Rounded corners are nice, aren&#8217;t they? Well, our Firefox users can see rounded corners for the same box that we&#8217;ve built for our menu. All we have to do is add one property to the menu, called the -moz-border-radius, and specify its size. IE simply ignores this property, so those boxes will show pointed corners.</p>
<p>.roundedbox {<br />
-moz-border-radius:10px;<br />
}</p>
<p>The 10 pixel radius is the size of the rounded corner. We probably want to add a little padding to the menu box so the content isn&#8217;t smashed against the border, so we&#8217;ll set that at 10 px, too.</p>
<p>Here&#8217;s a menu box that will show rounded corners in Firefox/Mozilla browsers:</p>
<div class="rbox">
.roundedbox {<br />
border:1px solid #5ca3b7;<br />
padding:10px;<br />
-moz-border-radius:10px;<br />
}
</div>
<p>There are ways to get the rounded corner look in IE browsers, but it&#8217;s a bit more work. For now, we&#8217;ll continue to use the -moz-border-radius property in appreciation of our Firefox users.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/css-rounds-corners-firefox-not-ie8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calendar Pick-A-Date Scripts Reviewed</title>
		<link>http://computeraxe.com/calendar-pick-a-date-scripts-reviewed/</link>
		<comments>http://computeraxe.com/calendar-pick-a-date-scripts-reviewed/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 15:51:41 +0000</pubDate>
		<dc:creator>LizzyFin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=220</guid>
		<description><![CDATA[This week I needed to make a form where the user needed to enter two dates in order to produce a report with the selected start and end dates. What were my options? I considered writing my own php script &#8230; <a href="http://computeraxe.com/calendar-pick-a-date-scripts-reviewed/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This week I needed to make a form where the user needed to enter two dates in order to produce a report with the selected start and end dates. What were my options?</p>
<p>I considered writing my own php script where I would have separate pull-down boxes for the day, month and year to assure that there was no mistake as to the actual dates. That would take a little extra format massaging to create the date in MySQL format, so I looked for scripts that others had already written. Who wouldn&#8217;t?</p>
<p>Formatting dates can drive a person crazy. Does &#8217;06-08-2000&#8242; mean June 8th or the 6th of August? Writing for the Web should be universal. The month-day format that we tend to use in the U.S. is confusing to everybody else who uses the day-month format, and vice-versa.</p>
<p>Writing by hand I like to use this format &#8217;12-Mar-2000&#8242; so there is no ambiguity, but that format needs to be converted to &#8216;YYYY-MM-DD&#8217; format when sending dates to MySQL.</p>
<p>So, what are my requirements for such a Date-Picker Script?</p>
<ul>
<li>easy, intuitive for the user</li>
<li>easy for me with output in MySQL format (YYYY-MM-DD)</li>
<li>unrestricted license would be nice</li>
</ul>
<p>I tried a few different date picker scripts and decided upon SpiffyCalendar because it&#8217;s the most advanced, yet easily modified to suit my purposes. Also, there is an established support system via a Yahoo! user group. That&#8217;s really nice, and unexpected.</p>
<p>Here&#8217;s the scripts I tried and the pros and cons for each&#8230;most weren&#8217;t as user-friendly as SpiffyCalendar.</p>
<p>&nbsp;</p>
<h3><a href="http://www.phpclasses.org/browse/package/3611/download/zip.html">PHP Calendar</a></h3>
<ul>PROS</p>
<li>I like the look of this calendar, but it&#8217;s difficult to determine how to modify the calendar other than for css of calendar appearance.</li>
<li>Date output is already in MySQL format: YYYY-MM-DD</li>
</ul>
<ul>CONS</p>
<li>Can&#8217;t select year from calendar unless you click back or forward to the actual month.</li>
<li>Ugly and excessively long query strings in links.</li>
</ul>
<h3><a href="http://www.javascriptkit.com/script/script2/timestamp.shtml">DatePick</a></h3>
<ul>PROS</p>
<li>I like the little calendar icon.</li>
</ul>
<ul>CONS</p>
<li>Can&#8217;t select year from calendar unless you click back or forward to the actual month.</li>
<li>Timestamp is included. Don&#8217;t need it.</li>
<li>Relies on javascript and pop-up window to select date.</li>
<li>Calendar doesn&#8217;t update well when moving from month to month. Part of the calendar doesn&#8217;t get loaded in so all days are not selectable. Have to manually widen window to see all days.</li>
<li>Can&#8217;t select year directly, have to click through months to get to next year.</li>
<li>No directions on how to modify output.</li>
</ul>
<h3><a href="http://www.javascriptkit.com/script/script2/tengcalendar.shtml">DateTimePick</a></h3>
<ul>PROS</p>
<li>I like the little calendar icon.</li>
<li>Can modify output via provided directions.</li>
</ul>
<ul>CONS</p>
<li>Can&#8217;t select year from calendar unless you click back or forward to the actual month.</li>
<li>Relies on javascript and pop-up window to select date.</li>
<li>Calendar doesn&#8217;t update well when moving from month to month. Part of the calendar doesn&#8217;t get loaded in so all days are not selectable. Have to manually widen window to see all days.</li>
<li>Can select year directly, but calendar doesn&#8217;t update well.</li>
</ul>
<h3><a href="http://simplythebest.net/scripts/DHTML_scripts/javascripts/javascript_48.html">SpiffyCalendar</a></h3>
<p><del datetime="2010-08-26T15:28:02+00:00">Sign up to the Yahoo! Group to download the script.</del> <em>Script used to be offered at the now defunct GeoCities. The above link is the first place I found it posted afterwards.</em></p>
<ul>PROS</p>
<li>Calendar pops into page, not a separate window.</li>
<li>Can modify output via provided directions.</li>
<li>Can get help at Yahoo! Groups.</li>
<li>Unrestricted license.</li>
<li>Can refresh page containing calendars as link is not modified after picking a date or two.</li>
<li>Highlights holidays, although will have to remove Dec 1st developer&#8217;s birthday. (OK, modified holiday array in script on lines 86-87.)</li>
</ul>
<ul>CONS</p>
<li>Format of date will have to be modified for MySQL. (OK, Added <code>"cal1.dateFormat="yyyy-MM-dd";</code> after instantiation in header for calendar named &#8216;cal1&#8242;.)</li>
<li>Relies on javascript.</li>
<li>Had to modify the images folder location in the .js file to an absolute address, although things worked fine on my local server with a relative address.</li>
</ul>
<p>I&#8217;m sure there are plenty of these date-picker scripts floating around the Web. Do you have a different one to share with us? Leave a comment!</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/calendar-pick-a-date-scripts-reviewed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ColorZilla Browser Extension for Firefox</title>
		<link>http://computeraxe.com/colorzilla-browser-extension-firefox/</link>
		<comments>http://computeraxe.com/colorzilla-browser-extension-firefox/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 12:24:53 +0000</pubDate>
		<dc:creator>LizzyFin</dc:creator>
				<category><![CDATA[browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[The GIMP]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=132</guid>
		<description><![CDATA[Yet another way to explore colors is to use the ColorZilla browser extension for Firefox. This is one of my favorite ways to pick up colors as Firefox is always handy. Once installed, Colorzilla resides down in the left, bottom &#8230; <a href="http://computeraxe.com/colorzilla-browser-extension-firefox/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yet another way to explore colors is to use the <a href="http://www.iosart.com/firefox/colorzilla/">ColorZilla browser extension for Firefox</a>. This is one of my favorite ways to pick up colors as Firefox is always handy.</p>
<p>Once installed, Colorzilla resides down in the left, bottom corner of Firefox. You&#8217;ll see a little eye dropper icon. Click the eyedropper and the mouse pointer changes to a cross hair. Hover over any spot on the page and the RGB and #hex values are noted at the bottom of your browser. Click again and the color values are stored temporarily until you click on the eyedropper again.</p>
<p>If you leave the current tab and come back you&#8217;ll note that the color values have disappeared from the bottom bar, but they&#8217;re not really gone. Right-click the eyedropper and you&#8217;ll be presented with a menu of choices.</p>
<div id="attachment_133" class="wp-caption aligncenter" style="width: 227px"><a href="http://computeraxe.com/wp-content/uploads/2008/09/colorzilla-menu1.jpg"><img class="size-full wp-image-133" title="colorzilla-menu" src="http://computeraxe.com/wp-content/uploads/2008/09/colorzilla-menu1.jpg" alt="Right-click menu for ColorZilla Firefox browser extension." width="217" height="405" /></a><p class="wp-caption-text">Right-click menu for ColorZilla Firefox browser extension.</p></div>
<p>Have fun exploring all the features of ColorZilla, but take note that the details of the last color picked are ready for you to copy in your favorite format.</p>
<p>The Options menu has a hidden feature that you might want to check out:</p>
<div id="attachment_135" class="wp-caption aligncenter" style="width: 269px"><a href="http://computeraxe.com/wp-content/uploads/2008/09/colorzilla-menu-options1.jpg"><img src="http://computeraxe.com/wp-content/uploads/2008/09/colorzilla-menu-options1.jpg" alt="ColorZilla Firefox browser extension options menu." title="colorzilla-menu-options" width="259" height="261" class="size-full wp-image-135" /></a><p class="wp-caption-text">ColorZilla Firefox browser extension options menu.</p></div>
<p>Right-click on the eyedropper, click on Options, then click on <strong>Statusbar Format&#8230;</strong>. Here, you can modify the information that you see in the bottom bar of the Firefox browser when you activate ColorZilla.</p>
<div id="attachment_136" class="wp-caption aligncenter" style="width: 458px"><a href="http://computeraxe.com/wp-content/uploads/2008/09/colorzilla-menu-status1.jpg"><img src="http://computeraxe.com/wp-content/uploads/2008/09/colorzilla-menu-status1.jpg" alt="ColorZilla menu for statusbar formatting." title="colorzilla-menu-status" width="448" height="393" class="size-full wp-image-136" /></a><p class="wp-caption-text">ColorZilla menu for statusbar formatting.</p></div>
<p>Now, along with color values, you can &#8220;see&#8221; elements of a webpage, their paths, URLs and distances to other page elements.</p>
<p>A great feature that I must point out is the Webpage DOM Color Analyzer that you can reach from the Options menu. Visit a page where you like the color scheme, right-click the eyedropper and choose the <strong>Webpage DOM Color Analyzer&#8230;</strong>. A window at the bottom of the screen will show the main colors of the page, but not from the images on the page. Clicking on any of the colors in the palette will show you the css rules that are using that color.</p>
<p>ColorZillla &#8211; what a neat way to explore a page and all its colors!</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/colorzilla-browser-extension-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Your Colors in a Widget for Your Homepage or Blog</title>
		<link>http://computeraxe.com/get-your-colors-in-a-widget-for-your-homepage-or-blog/</link>
		<comments>http://computeraxe.com/get-your-colors-in-a-widget-for-your-homepage-or-blog/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 11:51:19 +0000</pubDate>
		<dc:creator>LizzyFin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[The GIMP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=122</guid>
		<description><![CDATA[Into widgets? Get all the colors you want by posting the Farbtastic Widget to your favorite site, or put it right on your desktop. Don&#8217;t have a site yet? Post your widgets to iGoogle, a Google &#8220;homepage&#8221; that you can &#8230; <a href="http://computeraxe.com/get-your-colors-in-a-widget-for-your-homepage-or-blog/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Into widgets? Get all the colors you want by posting the <a title="Widget for picking colors." href="http://www.widgetbox.com/widget/farbtastic-widget">Farbtastic Widget</a> to your favorite site, or put it right on your desktop.</p>
<p>Don&#8217;t have a site yet? Post your widgets to iGoogle, a Google &#8220;homepage&#8221; that you can modify as you see fit. Click on the iGoogle link at the the top right of www.google.com and you&#8217;ll see a version of google that you can modify to your liking by arranging tabs and blocks of content.</p>
<p>Here&#8217;s the widget I&#8217;m talking about:</p>
<p><script type="text/javascript" src="http://widgetserver.com/syndication/subscriber/InsertWidget.js?appId=18929961-7f25-4d19-bcbb-232d3d528713"></script><noscript>Get the <a href="http://www.widgetbox.com/widget/farbtastic-widget">Farbtastic Widget</a> widget and many other <a href="http://www.widgetbox.com/">great free widgets</a> at <a href="http://www.widgetbox.com">Widgetbox</a>!</noscript></p>
<p>Try moving either color pointer and see the resulting color and #hex value in the top box.</p>
<p>On the widget&#8217;s page at widgetbox, look under <strong>Get Widget</strong> on the right side of the page. If you&#8217;re not familiar with some of the icons, just hover your mouse pointer to get a tool tip that tells you the name of the site that the icon represents. Click on &#8220;more&#8230;&#8221; to see other icons. Here, you can also choose your language and modify your widget, if possible. Code is available for WordPress blogs &#8211; just look for the big W in the icon list.</p>
<p>To post the widget at iGoogle, click on the big G icon. A small window pops up that directs you to click on the &#8220;Add Widget&#8221; button to open the iGoogle installer. When the installer page opens click on the &#8220;Add to Google&#8221; button. Your new iGoogle page opens with the new widget displayed. Drag and drop the widget into the place you prefer and make sure to sign in to Google to save your page.</p>
<p>Same thing with WordPress. Add your favorite widget to a post or put it in your sidebar.</p>
<p>The only catch here is to grab the right code. If you take the code from one of the icons presented, the widget will be in its default state. Should you modify or customize your widget &#8211; like I did with Farbtastic by changing the language to English and enlarging the widget to 300 x 300 px &#8211; make sure to click on the small &#8220;Get Widget&#8221; button that has a little checkmark &#8211; it&#8217;s right below the customize part of the <strong>Get Widget</strong> section. Post your customized widget and make sure it&#8217;s what you want before you finish up with widgetbox.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/get-your-colors-in-a-widget-for-your-homepage-or-blog/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Toying Around with Colors? Check Out ColorToy!</title>
		<link>http://computeraxe.com/toying-around-with-colors-check-out-colortoy/</link>
		<comments>http://computeraxe.com/toying-around-with-colors-check-out-colortoy/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 13:43:56 +0000</pubDate>
		<dc:creator>LizzyFin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[The GIMP]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=116</guid>
		<description><![CDATA[On the topic of colors&#8230;here&#8217;s a fun toy, called ColorToy. Click the Random button to see randomly chosen color schemes or input your own RGB or Hex value to start the color selection. Copy the screen to save an image &#8230; <a href="http://computeraxe.com/toying-around-with-colors-check-out-colortoy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>On the topic of colors&#8230;here&#8217;s a fun toy, called <a title="Color Toy" href="http://www.defencemechanism.com/color/">ColorToy</a>.</p>
<p>Click the Random button to see randomly chosen color schemes or input your own RGB or Hex value to start the color selection.</p>
<p>Copy the screen to save an image of the color scheme containing nine colors and their hex values.</p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/toying-around-with-colors-check-out-colortoy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Color Schemes Aplenty and Saved Favorites to Boot!</title>
		<link>http://computeraxe.com/color-schemes-favorites/</link>
		<comments>http://computeraxe.com/color-schemes-favorites/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 15:42:45 +0000</pubDate>
		<dc:creator>LizzyFin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[The GIMP]]></category>

		<guid isPermaLink="false">http://computeraxe.com/?p=111</guid>
		<description><![CDATA[Browse over 3600 color schemes at ColorSchemer. Professional color editing software is available from ColorSchemer. The color schemes that you can download are .cs files that can be opened by ColorSchemer Studio. Their PhotoSchemer, which helps you pick out a &#8230; <a href="http://computeraxe.com/color-schemes-favorites/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Browse over 3600 color schemes at <a title="ColorSchemer" href="http://www.colorschemer.com/schemes/">ColorSchemer</a>. Professional color editing software is available from ColorSchemer. The color schemes that you can download are .cs files that can be opened by ColorSchemer Studio. Their PhotoSchemer, which helps you pick out a color scheme based on a photo, might well be worth the price of the software!</p>
<p>But you don&#8217;t really need to download the software to pick up the color schemes that you like. Just hover your mouse pointer over the color blocks in your favorite color scheme and write down the #hex code from the tool tip. Now you&#8217;re all set to use your favorite new colors!</p>
<p>Better yet, sign up for a free account on ColorSchemer. For parting with an email address you&#8217;ll be able to build a personalized <strong>Favorite Schemes</strong> list. Once you sign up, go to the Scheme Gallery and browse to a scheme you like. You&#8217;ll see who made the scheme, the number of times its been downloaded, the scheme&#8217;s rating out of 5 stars (and how many people rated it), and a link called &#8220;Add Fav&#8221;. Click on Add Fav to put the scheme you like into your Favorite Schemes.</p>
<p>My Favorite Schemes will show what you have saved so far. What a nice service to allow us to collect these color schemes and save them for later.</p>
<p>Bookmark ColorSchemer!</p>
<p>Don&#8217;t miss the fantastic post on <a title="Named Colors" href="http://www.colorschemer.com/blog/2007/07/24/140-named-colors/">140 Named Colors!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://computeraxe.com/color-schemes-favorites/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

