Creating Solid Rollover Buttons in Dreamweaver Using CSS

Jasmine Starr
Thanks to CSS you can now make rollover buttons in dreamweaver instead of inserting them one by one. It also keeps the size down on your page since you don't have all them images. So how do you use CSS for rollover buttons? Well let me show you. In this guide I will show you how to use solid colors for roll over buttons.

Solid Color Rollover Buttons In Dreamweaver

Step 1 - Open Dreamweaver, create you a new file, and save it. (Save it as rollover.html)

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

Step 3 - Right Click anywhere on the document and click CSS Styles > New. In the dialog box do the following:
Selector Type - Class
Name - .rolloverbutton
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 to give you an idea.

Category - Type

Font - Choose your font. (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. (#FFFFFF)
(See Image 2)

Category - Background

Background Color - Choose the color that you want your button to be. (#006699)
(See Image 3)

Category - Block

You don't need to do anything in the Block Category.

Category - Box

Width - Choose how wide you want your button to be. (100)
Height - Choose how tall you want your button to be. (20)
(See Image 4)

Category - Border

Style - Choose the style of your border. (Solid)
Width - Choose how wide you want your border. (1 pixels)
Color - Choose the color of your border. (Black #000000)
(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.

Step 5 - Highlight over your text you typed on the document, type a link in the link field in your properties window.

Step 6 - With the text still highlighted, click the drop down box beside Styles in your properties window and choose Rollover Button. Now you should see your button.

Now we need to do the rollover part for the button.

Step 7 - Right click anywhere on the document and click CSS Styles > New. In the dialog box do the following:
Selector Type - Advance
Selector - a.rolloverbutton:hover
Define in - This Document Only
(See Image 6)

Then Click OK.

Step 8 - A new dialog box will appear with all the categories in the left panel. Click on Background and change the color of the background. I chose #009900 - green. Click OK once you have finished that.
(See Image 7)

Step 9 - In the top of your Dreamweaver window Click File > Save. To save your document.

Step 10 - Now press F12 to preview your button in a browser.
(See Image 8 for the final results)

And that is all you have to do to make a solid color rollover button in Dreamweaver using CSS. To make more buttons simply press enter type in text, highlight it, link it, and choose the rollover style for the text.

Published by Jasmine Starr

I can do all things through Christ who strengthens me.  View profile

  • Solid Color Rollover Buttons In Dreamweaver
  • Press F12 to preview your button in a browser.
  • In parentheses I will put what I chose in my example to give you an idea.
To make more buttons simply press enter type in text, highlight it, link it, and choose the rollover style for the text.

9 Comments

Post a Comment
  • sezer6/27/2008

    css Font examples , Properties , Attribute - - //
    http://www.css-lessons.ucoz.com/font-css-examples.htm

  • Devaraj11/26/2007

    Site us looking very soothing i liked your site

  • Chris Kitan8/26/2007

    Highly informative, but i needs illastrations to get the point across and to others the comments box is for comments....

  • Chuck Norris7/30/2007

    Jesus can walk on water, but Chuck Norris can walk on Jesus.

  • ngipecqr pxujmds12/23/2006

    ojaz bspr yjerulh egbkiznhq mubypvsg jbprf uqkbinr eqrm rlvh

  • aircslt bswxpn12/23/2006

    reqams jutxmzkpi rigl fhxyjagn kylgqc jurn nroc http://www.lpvhi.xnzgt.com

  • hump-a-lot9/9/2006

    humps u

  • James7/6/2006

    great tutorial, everything was easy and helped very much.

  • vyshali6/12/2006

    This site is very very nice, without book i able to create a roll overs

Displaying Comments

To comment, please sign in to your Yahoo! account, or sign up for a new account.