News letter

Get Retire at 21's FREE Secrets to Making Money Online Ebook Today!

Find out how I'm going to Retire VERY Early Subscribe for my Free Secrets

Privacy Guaranteed. 100% Spam free.
Sponsor Video tutorials - We provide comprehensive tutorials for Dreamweaver MX, Dreamweaver MX 2004, Excel 2002, Flash MX, Flash 8, Photoshop 7, Photoshop CS, Photoshop CS2, Poker, VB.NET and Windows XP - geared for beginner to intermediate users.
CSS roleover effect
Learn how to create a cool Css roleover effect for your buttons
Category: Dreamweaver
Views: 9520

In this tutorial we will learn how to create a cool Css roleover effect for your buttons.

We are going to start by creating a table (Insert>Table) use these details:

Rows: 1
  Columns: 1
  Width: 100 pixels
  No Border

Inside the table create your text for the button, highlight the text and center it and link it to a page in your website.

Now we are going to go to the bottom of dreamweaver to the Properties Panel and Style > Manage Styles...

Create a new style with these options, naming your tag nav.

Use these settings for type:

Use these settings for background, Now click OK.

You should now have this CSS code:

nav {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
background-color: #000000;
color: #000000;
}

Create a new class, use these options and click OK.

For Type use a color  of white for the text colour.

For background we are going to have a black colour for the roleover.

Now we are going to create the size of the roleover, click OK.

You should now have this CSS code:

hover  {
  color: #FFFFFF;
  background-color: #000000;
  height: 25px;
  width: 100px;
  }

Now show code and design views so you can do the small code editing to finish the effect.

We are not going to add this code ( <div class="nav"> ) next to the name of our button like so:

 

 

.hover {
  color: #FFFFFF;
  background-color: #000000;
  height: 25px;
  width: 100px;
  }

 

to

 

.nav : hover {
color: #FFFFFF;
background-color: #000000;
height: 25px;
width: 100px;
}

 

 

You should now have this: http://www.webdesigndev.com/tutorials/dwcssroleover

 


If you would like more help with this tutorial please register and visit the forum.



Bookmark with:              
  Add to Favorites    Google Bookmark
  Delicious   Digg
  reddit  Stumble Upon

Recommended Money Makers

The Reverse Funnel System!

“I'm About To Share With A Select Few, The Exact Details Of My Simple And Proven 'Reverse Funnel System™' That Quickly And Simply Puts $5,000 to $10,000 In Many Students' Pockets EVERY WEEK!”

  • Systems Work, People Fail...It's that simple!
  • You've heard the success stories...Now it's your turn to become one.
  • Utilize my ads, my marketing co-opps & my proven system.

Find out More...

:: About Michael

Michael DunlopAbout Michael

“But I am already older than 21”, I hear you cry. Don’t worry, despite the name, the information and advice is more geared towards retiring prior to having a fake hip installed.

Find out more about Michael...

:: Website Sponsors
:: Recommended Money Maker

Blogging all the way to the Bank!

- Six Figure Blogging Made Easy - Create Real Blogs In Just A Few Minutes. - How I make $35,000 every month!
Exposed... How to make your blogs earn money on almost autopilot.

:: Latest Blog Posts
:: Vote Poll
Who is your favourite Entrepreneur?
 
Bill Gates
Richard Branson
Alan Sugar
Donald Trump
Steve Jobs
 
    
Total Votes:  4454
:: Other Links