Author Archive

Design a sound system

This tutorial will show you how to create a beautiful speaker box design.

At the end the tutorial will look like this :

Design a speaker box

Read Tutorial

Source : adobetutorialz.com


Star Wars text effect in Photoshop

This tutorial will show you how to create a text effect similar to the Star Wars logo.


Display your RSS feed count in plain text

This tutorial will show you how to display your Feedburner feed count as a plain text. A good example is shown by Smashing Magazine’s feed count.


Create a CSS drop-down menu

The #menu div is our “container” and it’s 100% wide, so we could leave it as it is because it would default to this. However to properly contain the floated child lists if we also float the #menu div is will stretch to contain its floated children.

We then need to set the required dropdown width but this time it goes directly onto the <ul> elements themselves, and the need to be floated in order to appear side by side. We also still need to remove all the default padding, margins and bullets from the <ul>s the same as before.

    #menu {
    width: 100%;
    background: #eee;
    float: left;
    }
    #menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 12em;
    float: left;
    }

Then we apply the required formatting to the h2 headings and the a anchors, again I’m using the same formatting as the vertical menu

    #menu a, #menu h2 {
    font: bold 11px/16px arial, helvetica, sans-serif;
    display: block;
    border-width: 1px;
    border-style: solid;
    border-color: #ccc #888 #555 #bbb;
    margin: 0;
    padding: 2px 3px;
    }
 
    #menu h2 {
    color: #fff;
    background: #000;
    text-transform: uppercase;
    }
 
    #menu a {
    color: #000;
    background: #efefef;
    text-decoration: none;
    }
 
    #menu a:hover {
    color: #a00;
    background: #fff;
    }

Positioning the Pop-out Drops

The First level Drop Down Menus are already in the correct place, so we don’t need to position then, but we need to position the children, nested lists, of these choices absolutely again, so just like the vertical version we need to make the parent li elements into containing blocks for these absolutely positioned children, which is doing by placing position: relative; onto the parent li’s and again because we are not using offset co-ordinates to actually move these li elements we can apply it globally.

Then we need to select all ul elements that have at least TWO parent ul’s again in order to move them over into their pop out position. This time we do not need to set the width here as we already set the width on all ul elements to 12em so this will take that width too by order of the cascade.

    #menu li {position: relative;}
 
    #menu ul ul ul {
    position: absolute;
    top: 0;
    left: 100%;
    }

However now, which is not apparent yet in these simple demo pages, we have a problem if there is text underneath this navigation bar, which there would most likely be in a real page.

Because we have left the first child list “in the flow” of the document rather than position it for pop-out purposes it is actually pushing any following text down below it. Normally in these drop down scenarios we would want it to drop down over the top of on any existing text.

We can do this by pulling it out of the flow using absolute positioning again, only this time we don’t want to give it any offset co-ordinates, because we’re actually happy with where it is, and just in case we’ll give it a high z-index to ensure it and it’s children actually do appear over the top of any positioned text that may follow.

    #menu ul ul {
    position: absolute;
    z-index: 500;
    }

Hiding and Revealing using :hover

First let’s hide all those “drop and pop” menus using the display property.

A “Remember IE” Moment

This is where we have to get more specific with the CSS than we should have to be because of IE. We cannot use Child Selectors so we will do it longhand, it’s OK, this way will still work for other browsers too.

Also due to working with an older csshover.htc file while developing these menus we became aware that IE5.x required a more specific element selector or the menus just didn’t work in those browsers. The behavior file has now been updated to address this issue, so using this fix is no longer required.

Although a point to note: In our testing/development of these menus we found that leaving the CSS workaround in place improved IE’s performance on larger menus. The choice is yours, I’ll leave it in this demo CSS.

This time we actually do want to hide the second level menu (top choice) as we only want the h2 heading to remain visible offering the top level choices as a dropdown, and then any further choices as popouts, so we need to target all ul’s that have at least ONE parent ul which will leaving out the heading list because it doesn’t have a parent.

    div#menu ul ul {
    display: none;
    }

Again that was the easy bit, so let’s get to revealing them again.

Again the convoluted CSS to keep IE happy, this time when we hover over the first li which is in fact the heading too we want the child lists to appear

    div#menu ul li:hover ul
    {display: block;}

But this will bring back all child ul elements as soon as that first li is hovered on. So we need to add the counteracting CSS for each level we wish to target.

In this demo we require 3 levels of hover to activate child menus so we have three levels to counteract also.

    div#menu ul ul,
    div#menu ul li:hover ul ul,
    div#menu ul ul li:hover ul ul
    {display: none;}
 
    div#menu ul li:hover ul,
    div#menu ul ul li:hover ul,
    div#menu ul ul ul li:hover ul
    {display: block;}

the display block rules show the three levels being activated with the display: none; rules being entered afterwards to more specifically hide the unwanted (deeper nested) lists (counteract them).

Now It’s IE’s Time again!

This time if that last sample is viewed in IE it doesn’t look so bad except for the unnecessary whitespace between the nav bar and the text, however we know the hovers are not activating so let’s call the Magic Ingredient again, the csshover.htc file

    body {
    behavior: url(csshover.htc);
    }

Now when you look at in IE, the hovers are working, but there are still a few other things still wrong with it :

A lot of that list is exactly the same as the problems in the vertical list, namely the font-sizing issue, the whitespace problem and the anchor block problem. So let’s deal with them first in exactly the same way we did there ~ Same problems = Same Solutions.

The complete conditional CSS is the same as the vertical menu’s code and looks like this:

    <!--[if IE]>
    <style type="text/css" media="screen">
    body {
    behavior: url(csshover.htc);
    font-size: 100%;
    }
 
    #menu ul li {float: left; width: 100%;}
    #menu ul li a {height: 1%;}
 
    #menu a, #menu h2 {
    font: bold 0.7em/1.4em arial, helvetica, sans-serif;
    }
    </style>
    <![endif]-->

One problem that we didn’t apparently deal with is the first list is now respecting the position absolute, you’ll have to take my word for it until you view the link below, but we dealt with it! The dimension (1%) on the li element took care of that too, IE is a strange creature at times, but once you realise that a lot of its problems are inter-related it’s easier to understand that one fix often suits all.

The page, viewed in any browser is now complete!

Enjoy !

Source : tanfa.co.uk


Redirect without using PHP

This tutorial will show you to redirect users to another webpage without using header and other PHP methods. It’s actually very simple, just one line of HTML code.


Windows Media player button

To begin this tutorial, I simply created a few rectangles with different shades of blue.

Windows Media Player Button - How did they do it

Now select the “Elipse Tool” and draw a circle as I have done below with 121212 as your foreground color. Hold in the shift key to draw a perfect circle.

Windows Media Player Button - How did they do it

Now that you have your circle, you can now right click on the layer in the Layers Palette and select, “Blending Options…“. Now click on “Stroke“. Use the settings below :

Windows Media Player Button - How did they do it

You should now have the following :

Windows Media Player Button - How did they do it

Select the “Elipse Tool” again and draw another circle this time using 0023a4 as your foreground color. Hold in the shift key to draw a perfect circle.

Windows Media Player Button - How did they do it

Select the “Elipse Tool” again and draw yet another circle this time using White as your foreground color. This circle need not be perfect.

Windows Media Player Button - How did they do it

Next we will need to move the bottom anchor point. To do this, select the “Direct Selection Tool” and select the anchor point on the bottom. Now, using the up arrow key on your keyboard, move that anchor point as I have done below. Then turn the “Fill” down to 28%.

Windows Media Player Button - How did they do it

Note : The direct selection tool is : Windows Media Player Button - How did they do it

Now “Ctrl” click the blue circle layer to create a selection around it and grab the “Brush Tool” with the diameter at 50% and the hardness at 17%. Create a new layer, change the blending mode to “Color Dodge” and change the color to 70e2ff. Now click only once toward the bottom of the selection as I have illustrated below. Deselect and go to next step.

Windows Media Player Button - How did they do it

Select the “Rounded Rectangle Tool” set at 100 pixels, with the color d4d9e0, and draw the shape illustrated below.

Windows Media Player Button - How did they do it

Now that you have your shape, you can now right click on the layer in the Layers Palette and select, “Blending Options…“. Now click on “Outer Glow“. Use the settings below :

Windows Media Player Button - How did they do it

The results. I then duplicated the gray shape and moved to the appropriate space. I hope you enjoyed this tutorial.

Windows Media Player Button - How did they do it

Originally posted @ CrazyLeaf Design Blog.

Tutorial by Empire Design.


Create a vectorial camera with photo icon

This tutorial will show the intermediate Adobe Illustrator artist how to create a cool, web 2.0 vectorial camera with a photo icon in Adobe Illustrator.


You suck at Photoshop #3 - Using the Clone Stamp and Manual Cloning

Tutorial by Donnie Hoyle on how to use the clone stamp and manual cloning.


You suck at Photoshop #2 - Remove a foreground object

This is another great Photoshop tutorial by Donnie. This tutorial will explain how to remove a foreground object of its background and make it look like the object disappeared.


You suck at Photoshop #1 - Distort and Warp tutorial

Some of you may already know these video tutorial series by Donnie Hoyle. They became well known via Youtube. The great combination of acid comments and superb Photoshop skills made these video series hugely popular.


Page 6 of 8« First...«45678»