Thursday, June 5, 2014

How to create a simple yet attractive CSS horizontal menu (with depth effect)



How to create a simple yet attractive CSS horizontal menu with depth effect
Using CSS to create your website navigation (or menu) is the smartest thing you can do. Why? – Because updating it is a breeze, and you will thank yourself everytime you have to add or remove a menu item while avoiding having to edit tons of individual pages on your website.

With a CSS menu, you can have ONE central file where your menu lives, and just include that file on every page of your website. Since horizontal menus are popular these days, this demonstration will show you how to create a simple yet elegant CSS horizontal menu for your website.

A sneak preview of our horizontal CSS menu:

Creating a list

Let’s begin. The first thing you have to do is make your list containing the links to all your pages:
<body>
<ul>
<li><a href=”#”>Home</a></li>
<li><a href=”#”>What We Do</a></li>
<li><a href=”#”>Locations</a></li>
<li><a href=”#”>Partnerships</a></li>
<li><a href=”#”>Contact</a></li>
</ul>
</body>

Converting the vertical list into a horizontal list

To get rid of the bullets and change the orientation from vertical to horizontal, we apply the following styles:
<style>
ul {list-style-type:none; margin:0; padding:0; overflow:hidden;}
li {float:left;}
</style>

…so our menu is now horizontal:

Add the following styles for the links within the list, so that they behave as block elements, with a bit of breathing room between them:
<style>
ul {list-style-type:none; margin:0; padding:0; overflow:hidden;}
ul li {float:left;}
ul li a {display:block; text-decoration:none; text-align:center; padding:9px 17px 9px 17px;}
</style>


…so the result looks like this:

Making it presentable

Now that the horizontal menu is in place, we add more styles to make it look less like floating text and more like a navigation bar:
<style>
ul {list-style-type:none; margin:0; padding:0; overflow:hidden;}
ul li {float:left;}
ul li a {display:block; text-decoration:none; text-align:center; padding:9px 17px 9px 17px; font-family:Arial; font-size:8pt; font-weight:bold; color:#ffffff; text-transform:uppercase; border-right:1px solid #607987; background-color:#7195aa; text-transform:uppercase; letter-spacing:.08em}
ul li a:hover {background-color:#3b6a85; color:#a2becf}
ul li a.first {border-left:0}
ul li a.last {border-right:0}
</style>

Since we don’t want the first and the last items of the menu bar to have a side border, we tweak the HTML just a bit by adding classes to both the first and last items in the menu:
<body>
<ul>
<li><a class=”first” href=”#”>Home</a></li>
<li><a href=”#”>What We Do</a></li>
<li><a href=”#”>Locations</a></li>
<li><a href=”#”>Partnerships</a></li>
<li><a class=”last” href=”#”>Contact</a></li>
</ul>
</body>

…and the floating text has transformed into a horizontal menu bar:

Adding dimension

Although we can stop here….it would be nice to add a little bit of dimension to the menu bar – just to give it some life. All this requires is that we replace the background colors with background images.
These are the two images we’ll use – save them in the same folder as the navigation bar:
menu bg    (menu background image)
menu bg upon hover    (menu background image at mouseover)
Now in your styles, tweak the background (for both a and a:hover), add some borders, and increase the right and left padding…your code should look like this:
<style>
ul {list-style-type:none; margin:0; padding:0; overflow:hidden;}
ul li {float:left;}
ul li a {display:block; text-decoration:none; text-align:center; padding:9px 20px 9px 20px; font-family:Arial; font-size:8pt; font-weight:bold; color:#ffffff; text-transform:uppercase; border-top:1px solid #9cbed2; border-right:1px solid #607987; border-left:1px solid #94b5c8; background: #7195aa url(bg.gif) repeat-x; text-transform:uppercase; letter-spacing:.08em}
ul li a:hover {color:#a2becf; border-top:1px solid #72a0ba; border-right:1px solid #2a4a5f; border-left:1px solid #8cb3c9; background: #3b6a85 url(bg2.gif) repeat-x}
ul li a.first {border-left:0}
ul li a.last {border-right:0}
</style>

Here is the enhanced version of our horizontal menu bar:

Creating the “you are here” effect

And finally…how do we change the background of the link that corresponds with the current page being viewed?
To do this, let’s revisit our HTML code for a second. In your HTML, give each menu link a special ID, for example:
<body>
<ul>
<li><a id=”nav-home” class=”first” href=”#”>Home</a></li>
<li><a id=”nav-whatwedo” href=”#”>What We Do</a></li>
<li><a id=”nav-locations” href=”#”>Locations</a></li>
<li><a id=”nav-partnerships” href=”#”>Partnerships</a></li>
<li><a id=”nav-contact” class=”last” href=”#”>Contact</a></li>
</ul>
</body>

For consistency, each ID begins with “nav-” because it’s easier to recognize in a busy stylesheet. In addition, give the body tag of each page a special ID. For example:
Homepage:
<body id=”home” >
</body>

What We Do:
<body id=”whatwedo” >
</body>

Locations:
<body id=”locations” >
</body>

(you get the idea)….make it a habit to do this for every page on your website.
Why? Because it allows you to target a specific page and assign its elements a unique style. For example, if links on every page are blue, but you want the links on your homepage to be green, you can do this using the body IDs.
In your stylesheet, find the a:hover styles. Here, you will tell the menu which link to highlight depending on which page is being viewed, like I’ve done below (separating each selector with a comma):
<style>
ul li a:hover,
body#home .nav-home,
body#whatwedo .nav-whatwedo,
body#locations .nav-locations
{color:#a2becf; border-top:1px solid #72a0ba; border-right:1px solid #2a4a5f; border-left:1px solid #8cb3c9; background: #3b6a85 url(bg2.gif) repeat-x}
</style>

So now, assuming that we’re viewing the page called “What We Do”, our horizontal CSS menu should look like this:

The complete code

In case you got lost anywhere in this demo, your complete code should now look like this:
<!DOCTYPE html>
<html>
<head>
<title>How to create a simple CSS horizontal menu</title>
<style>
ul {list-style-type:none; margin:0; padding:0; overflow:hidden;}
ul li {float:left;}
ul li a {display:block; text-decoration:none; text-align:center; padding:9px 20px 9px 20px; font-family:Arial; font-size:8pt; font-weight:bold; color:#ffffff; text-transform:uppercase; border-top:1px solid #9cbed2; border-right:1px solid #607987; border-left:1px solid #94b5c8; background: #7195aa url(bg.gif) repeat-x; text-transform:uppercase; letter-spacing:.08em}
ul li a:hover,
body#home .nav-home,
body#whatwedo .nav-whatwedo,
body#locations .nav-locations
body#partnerships .nav-partnerships,
body#contact .nav-contact
{color:#a2becf; border-top:1px solid #72a0ba; border-right:1px solid #2a4a5f; border-left:1px solid #8cb3c9; background: #3b6a85 url(bg2.gif) repeat-x}
ul li a.first {border-left:0}
ul li a.last {border-right:0}
</style>
</head>
<body>
<ul>
<li><a id=”nav-home” class=”first” href=”#”>Home</a></li>
<li><a id=”nav-whatwedo” href=”#”>What We Do</a></li>
<li><a id=”nav-locations” href=”#”>Locations</a></li>
<li><a id=”nav-partnerships” href=”#”>Partnerships</a></li>
<li><a id=”nav-contact” class=”last” href=”#”>Contact</a></li>
</ul>
</body>
</html>

Don’t forget…

• Change <!DOCTYPE html> to an actual doctype. (see why it matters)
• Move everything between the <style></style> tags into a separate. stylesheet
• Move everything between the <body></body> tags into an include file before you place the actual code for your website here.
(Without these last 2 steps, updating the horizontal menu on every single page will turn into a headache)
Also….
Just kidding, that’s it! :D





Wednesday, June 4, 2014

WAMPSERVER




a Windows web development environment.
WampServer is a Windows web development environment. It allows you to create web applications with Apache2, PHP and a MySQL database. Alongside, PhpMyAdmin allows you to manage easily your databases.

Click to Download  - http://www.wampserver.com/en/#download-wrapper



Monday, April 28, 2014

How to Delete Windows Temporary Files on Your PC



011011_rg_CleanUpTempFiles_01.jpg



Windows tends to accumulate thousands of small files that will slow down the overall performance of your PC if you aren't careful. There are some easy ways to take care of this issue. A few of them are straightforward, by using some of the features and programs that are already installed. Others involve navigating through the C:\Windows file. We have got you covered on both ways.


011011_rg_CleanUpTempFiles_02.jpg


The first and easiest way is to run the Disk Cleanup took that you can find here:

Star menu-> All Programs-> Accessories-> System Tools-> Disk Cleanup

Disk Cleanup will take you through the steps on how to clean up your temporary files. As you can see from the above image, I had over 7.4 GB in temporary files. This is an easy way to take care of this problem. The other way to do so is to go through your browser. You have to open up the Preferences or Options menu. Once you have it open, find the Privacy tab and push the button to clear out all of your cookies or temporary Internet files. This will delete all of the temporary files that are generated by your browser.
The other way of doing this is to navigate to the following folder in Windows Explorer:

C:\Windows\Temp

Windows doesn't like you messing about in these folders, but you can just get there if you've got administrative privileges on your own machine. Once there, you can delete all of the temporary files. If some of them are currently being used, Windows won't let you delete them.

Then you can go to this folder: C:\Windows\System32\Temp

You can repeat the process, but usually, if you've run the Disk Cleanup utility, these folders will be already almost empty. Depending on how often you do this per year, you can salvage quite a bit of disk space, as you've seen in my example.



Saturday, April 26, 2014

How to Install Windows Programs in Ubuntu

To Install Windows Programs in Ubuntu you need application called Wine. If you don't have installed this application on your system, here are also explanation how to do it.Wine will let you to run Windows software on Ubuntu. It's worth to mention that not every program works yet, but however there are a lot of people that are using this application to run their software. With Wine, you'll will be able to install and run Windows applications just like you would in Windows OS.

Steps


  1. Install Windows Programs in Ubuntu Step 1.jpg Go to Applications > Ubuntu Software Center which is located in Main menu.
      

  2. Install Windows Programs in Ubuntu Step 2.jpg
    When you open Ubuntu Software Center you will need to type 'wine' in search function which are located on the right upper corner of the window and hit Enter. 

  3. Install Windows Programs in Ubuntu Step 3.jpg
    Choose 'Wine Microsoft Windows Compatibility Layer' package.

  4. Install Windows Programs in Ubuntu Step 4.jpg
    Click on the 'Install' button, after that when it asks you for password, type the password and click on 'Authenticate' button or just hit Enter.

  5. Install Windows Programs in Ubuntu Step 5.jpg
    While you installing this application, somewhere in the middle, you will be asked to confirm EULA license terms. To do that, mark that little white box and click on 'Forward' button.

  6. Install Windows Programs in Ubuntu Step 6.jpg
    Now when Wine is installed, go to Applications > Wine, where is Wine located and and try to explore a little, to see options that this application have.

  7. Install Windows Programs in Ubuntu Step 7.jpg
    Now first what you need to do is to locate your setup.exe. where is located and then right click with your mouse on that file.

  8. Install Windows Programs in Ubuntu Step 8.jpg
    Now click on 'Permissions' option and then mark that little box beside 'Allow executing file as program' option. After that click on 'Close' button.

  9. Install Windows Programs in Ubuntu Step 9.jpg
    Now when you click with left mouse button on the setup.exe, file will start run. 

Google Analytics on your Dashboard

Either you’re a web developer, blogger or anyone with a website, you probably use Google Analytics to collect and process crucial data about your site’s visitors.

Gaget Shot
If you’re using OS X you will love this dashboard widget!
Put Google Analytics on your Dashboard – Download Gadget

Features

  • See the important information of the day without any clutter
  • Check out the number of your visits for the last two weeks
  • See the rate of new visitors and bouncers
  • Refresh data with one click or wait for the automatic refresh
  • Automaticaly check for updates
  • Easily switch between profiles
  • View one, two or four weeks’ data
  • Change the chart between visitors, new visitors rate and bouncers rate

Access Google Voice over SIP (globally)

Background

Google Voice provides users with a free US phone number. That number has to forward to another US number to be of any use. Normally this would be your US mobile number, or a US home number, or any other US number. If you live or travel outside the USA it becomes impossible or very expensive to receive your Google Voice calls. The way around this issue is to use a soft-phone. That’s a phone you run (as software) on your computer (or on your smart phone, tablet, iPad, etc.). So long as the device has Internet access, you can receive your Google Voice calls with it.
A soft-phone utilises what is called SIP VOIP (session initiated protocol, voice over Internet protocol). But Google Voice does not offer SIP access to their service. So the answer is to get another free US number that does provide SIP/VOIP access. Sipgate was a great company providing exactly that. As mentioned, on October 31st 2013 they are closing up shop. We need a Sipgate alternative.

CallCentric – the Sipgate Alternative

After much research online, I found CallCentric to be the best alternative to Sipgate. Unlike Sipgate, CallCentric only provides free incoming numbers in New York. But that’s fine, because you will never give this number out, and no one will call it.

Setting it all up

These instructions are for setting up your Mac computer to receive Google Voice calls. If you want to set up on Android, iOS, or Windows, the steps will be similar except you will use a different application or app as the SIP/VOIP soft-phone.
1. Go to www.callcentric.com and sign up for a free New York number.
2. If you don’t already have a soft-phone installed, download and install a soft-phone.
There are many options. Here is a small list of the soft-phones I have used and can recommend:
There are various commercial phones. The pro version of iSoftPhone is good, as is Bria. There is also a pro version of Blink.
3. CallCentric give you a CallCentric “extension” number. This is different from the DID (phone) number they issue you. It is the extension number you will use as your SIP username. Access the CallCentric Dashboard (on their web site, after you login) to see your CallCentric Extension #.
4. In the soft-phone add a new account. Use the CallCentric Extension # as the username. Use the password your set up with your CallCentric account. Use callcentric.com as the domain name.
CallCentric also provides instructions on how to download and set-up a soft-phone on various devices.
5. Your soft-phone should indicate it is connected. It might do this with a “status” that says “online” or “available”, etc. Now you need to instruct Google Voice to forward to your new CallCentric number
6. Log into your Google Voice account. Go to your account settings.  Add a new forwarding number, using the New York number CallCentric issued you. This is NOT the 1777… number (your Extensions #), but the actual phone number they gave you.
7. Google Voice will make a call to your CallCentric number. You will answer this call on your soft-phone. Enter in the code Google Voice provides you with.
You now have Google Voice set up to forward calls to your soft-phone.

Free ASP.Net Hosting

Somee.com is a good free asp.net web hosting provider. It gives you a free hosting in following features.

Storage capacity   : 150MB
Monthly transfer  : 5GB per Month
Domains               : 1
ASP.Net               : 4.5/4.0/3.5/2.0/1.1
AJAX                   : 3.5/1.0
MS Access           : 2003, 2007
MS SQL db size   : 15MB
MS SQL log size  : 20MB
Get Free VPS Hosting
After Launching your web site a small somee.com add will be displayed at the bottom. This add don't affect your website UI.
You should visit your website at least once in a month. If not your website will be deleted. To get your free Hosting Account please sign up https://somee.com/FreeAspNetHosting.aspx