Quick Search


Tibetan singing bowl music,sound healing, remove negative energy.

528hz solfreggio music -  Attract Wealth and Abundance, Manifest Money and Increase Luck



 
Your forum announcement here!

  Free Advertising Forums | Free Advertising Board | Post Free Ads Forum | Free Advertising Forums Directory | Best Free Advertising Methods | Advertising Forums > Post Your Free Ads Here in English for Advertising .Adult and gambling websites NOT accepted. > Post Your Income Opportunities Here

Post Your Income Opportunities Here This section is for posting your free classified ads about MLM, downline, upline, matrix, affiliate programs, and other opportunities to help you earn money at home on the Internet.

Reply
 
Thread Tools Display Modes
Old 04-16-2011, 10:37 AM   #1
hunankl132
Captain
 
Join Date: Feb 2011
Posts: 529
hunankl132 is on a distinguished road
Default Microsoft Office 2010 Advanced CSS Menu

Last tutorial, I showed you how to design a watercolor result menu in Photoshop. This tutorial I will show you how you can slice up the menu design (step-by-step) and put them along with CSS. The majority of you almost certainly understand how to code a horizontal or vertical CSS record menu. Now let us consider it towards the up coming level — code an advanced (un-typical) listing menu utilizing the CSS position property.

View Demo CSS menu

Download Demo ZIP
Overview
Here are the required graphics to assembe the menu (you can download from the zip).

1. Main background
Open the Photoshop file. Turn off the menu text Layer Group and save the main background as menu-bg.jpg.

2. Button graphics
Turn off the background Layer Group and leave only the menu text layers visible. Make a rectangle selection cover the "home" item, go to menu Edit > Copy Merged (Cmd + Shift + C).


Create a new file and consider note of the file dimension (w x h), in my case the "home" graphic is 144 x 58px. Paste the "home" graphic in the new file. Go to menu Image > Canvas Size, adjust the image height x 2 (58 + 58 = 116px). Duplicate the home graphic layer and align it for the bottom. Erase the highlight strokes in the upper layer.


Here is how the hover impact will work. We will set the link button to 144 x 58px, when mouseover, we will shift the background image from top to bottom.


Repeat this action for the other buttons. You should have the follow graphics:

3. HTML source
When you are done with the graphics, let us start coding. Start with an un-ordered listing <ul>.
note there is an id="menu" assigned to the<ul> tag an unique class name assigned to each link <a> an empty <span> tag (the purpose of this is to make the mouseover influence)
<ul id="menu"> <li><a href="#" class="home">Home <span></span></a></li> <li><a href="#" class="about">About <span></span></a></li> <li><a href="#" class="rss">RSS <span></span></a></li> </ul> #menu
Reset the menu to no padding, no margin, and no list-style. Specify the width and height same dimension as the menu-bg.jpg. Then attach the menu background image. The key point to remember here is set the position property to relative.

#menu list-style: none; padding: 0; margin: 0; width: 774px; height: 210px; background: url(images/menu-bg.jpg) no-repeat; position: relative; #menu span
Specify the span element to display:none (so they will be invisible by default). Specify position:absolute, so we can place the mouseover GIF image on exact position.

#menu span display: none; position: absolute; #menu a
The key point here is the text-indent property. We specify the text-indent property with a negative value (-900%),Windows 7 Home Premium Product Key, so the text will be hidden.

#menu a display: block; text-indent: -900%; position: absolute; outline: none; #menu a:hover
When mouseover the link, we want to shift the background image from top to bottom.

#menu a:hover background-position: left bottom; #menu a:hover span
When mouseover the link, we want the span element to display:block.

#menu a:hover span display: block; #menu .home
Specify the width, height, and background image. Since we already specified all <a> element postition:absolute in previous action,Microsoft Office Standard 2007, now just say where the .home button should be by specifying the left and top property.

#menu .home width: 144px; height: 58px; background: url(images/home.gif) no-repeat; left: 96px; top: 73px; #menu .home span
Here we are specifying the width,Microsoft Office 2010, height,Microsoft Office Professional 2007, background, and position of the span element of .home (mouseover GIF image)

#menu .home span width: 86px; height: 14px; background: url(images/home-over.gif) no-repeat; left: 28px; top: -20px; #menu .about
Copy the .home rules and rename them to .about. Now just change the width,Purchase Office 2007, height, background, left, and top property.

#menu .about width: 131px; height: 51px; background: url(images/about.gif) no-repeat; left: 338px; top: 97px; #menu .about span width: 40px; height: 12px; background: url(images/about-over.gif) no-repeat; left: 44px; top: 54px; #menu .rss
Repeat this stage for .rss

#menu .rss width: 112px; height: 47px; background: url(images/rss.gif) no-repeat; left: 588px; top: 94px; #menu .rss span width: 92px; height: 20px; background: url(images/rss-over.gif) no-repeat; left: 26px; top: -20px; All in one:
#menu list-style: none; padding: 0; margin: 0; width: 774px; height: 210px; background: url(images/menu-bg.jpg) no-repeat; position: relative; #menu span display: none; position: absolute; #menu a display: block; text-indent: -900%; position: absolute; outline: none; #menu a:hover background-position: left bottom; #menu a:hover span display: block; #menu .home width: 144px; height: 58px; background: url(images/home.gif) no-repeat; left: 96px; top: 73px; #menu .home span width: 86px; height: 14px; background: url(images/home-over.gif) no-repeat; left: 28px; top: -20px; #menu .about width: 131px; height: 51px; background: url(images/about.gif) no-repeat; left: 338px; top: 97px; #menu .about span width: 40px; height: 12px; background: url(images/about-over.gif) no-repeat; left: 44px; top: 54px; #menu .rss width: 112px; height: 47px; background: url(images/rss.gif) no-repeat; left: 588px; top: 94px; #menu .rss span width: 92px; height: 20px; background: url(images/rss-over.gif) no-repeat; left: 26px; top: -20px; Done
That's it. You can preview my CSS menu.

Note: there is an IE6 bug where the <span> hover result doesn't display properly. To fix that, you can use Javascript to specify the <span> to display block on mouseover.
hunankl132 is offline   Reply With Quote

Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 03:45 PM.

 

Powered by vBulletin Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Free Advertising Forums | Free Advertising Message Boards | Post Free Ads Forum