Find » Technology » Creating Image Rollover Buttons in ...

Creating Image Rollover Buttons in Dreamweaver Using CSS

By Jasmine Starr, published Jan 05, 2006
Published Content: 1,190  Total Views: 1,552,310  Favorited By: 76 CPs
Embed:  
Rating: 3.0 of 5
In my last guide I showed you how to make Solid Rollover Buttons in Dreamweaver Using CSS. In this guide I will show you how to make rollover buttons using images with CSS. Before we begin, you need to find a button that you want to use. You can find free buttons or you can use Fireworks and create your own buttons. If you choose to get free buttons off the internet, make sure you get two buttons. One for your main button and one for your rollover button. Well the same goes for Fireworks, you need to make two buttons. Go ahead and get your buttons and save them on your hard drive before you begin.

Image Rollover Buttons

Step 1 - Open your Dreamweaver program, create a new file, and save it. (Save it as newrollover.html)

Step 2 - Type some text on the document. In my example I typed Rollover Button.

Step 3 - Right Click on the document and click CSS Styles > New. In the dialog box do the following:
Selector Type - Class
Name - .rolloverbutton (don't forget the period in front of the "r")
Define in - This Document Only
(See Image 1)

Then click OK

Step 4 - A new dialog box will appear. This is where you will make your buttons. I will list each category and what to put in each category. In parentheses I will put what I chose in my example.

Category - Type

Font - Choose the font for your button. (Verdana)
Size - Choose the size of your font. (14)
Weight - Choose if you want the font bold, normal, etc. (normal)
Style - Choose if you want the font italic, normal, etc. (normal)
Decoration - Choose if you want underline, overline, etc. (none)
Color - Choose the color of your font. (Black)
(See Image 2)

Category - Background

Background Image - Click Browse to locate the button on your hard drive that you want to use. This will be the button that is displayed on your page, not the rollover button.
Repeat - Choose No Repeat
(See Image 3)

Category - Block

Display - Select "Block"
(See Image 4)

Category - Box

Width - In the width field you need to type in how long your button is. (152)
Height - In the height field you need to type in how tall your button is.  (27)
(See Image 5)

You don't need to mess with any of the other categories. Once you are finished with the steps above, click OK.

Takeaways
  • You may need to make changes to the font color depending on the color of your button.
  • Press F12 to preview your button in a browser.
  • Before we begin, you need to find a button that you want to use.
Did You Know?
You can find free buttons or you can use Fireworks and create your own buttons.
Comments
Comments 1 - 7 of 7
 
 
nice

Posted on 09/04/2007 at 9:09:00 PM

 
thanks thats great. just wandering if its possible to create a Video Rollover Button in dreamweaver???

Posted on 05/15/2007 at 7:05:00 PM

 
I haven't been able to get help do do this seemingly simple operation in three days of trying. Thanks for thinking to decode this into simple steps for plebs like me. THANKYOU THANKYOU THANKYOU. Great help

Posted on 01/30/2007 at 7:01:00 AM

 
hi, it's very usefull tutorial but i can't see the images. where can i see them?

Posted on 12/20/2006 at 2:12:00 AM

 
agreed with sean, everywhere else i checked seems to be talking a different language to me, but this tutorial was spot on and it done the trick. thanks!!!!!!!!!!!!!!!

Posted on 11/21/2006 at 8:11:00 AM

 
awesome tutorial you are doing, keep it up the nice work, thanks!

Posted on 06/02/2006 at 3:06:00 PM

 
I am really impressed and most grateful for this submission. You don't know, but you just saved a "life"! Thanks

Posted on 04/07/2006 at 3:04:00 AM

Type in Your Comments Below - (1000 characters left)
Your name:

Submit your own content on this or any topic. Get started »
Comments 1 - 7 of 7
 
Advertisment