CSS form | About CSS multi-element rollovers | About the generator | Visit CollyLogic >

Colly's CSS rollover generator

Define your CSS
Name of the div - anything you like (no spaces)
The XHTML text that appears on your advanced button
The default is 10px verdana normal.
Image consisting of your normal and hover state images, side-by-side. Upload, then specify absolute URL to see preview.
Typically half total length of "sliding door" image. Do not add "px".
Do not add "px".
How much room above the image for your XHTML text? If making a standard, non-text button, leave at 0. Do not add "px".

What are we doing here?

With this CSS rollover generator, you can create two distinct styles of rollover button, using CSS and just one image.

The difference here is that you can optionally allow some background space above your image in which to place CSS- controlled rollover text.

Standard rollover button

So, if you wish to make a standard rollover button with no text or background space, simply specify the following:

Name of class, Image, button width, Image height, border.

Multi-element rollover button

spacer

Here you can add background space above your image, and add XHTML text. You can specify rollover states for these too. You can omit any element you wish, excluding required fields. The CSS will compensate for omissions.

What you'll need

You need to prepare a "sliding door" image. I have added an example below. Basically, place the individual images side-by-side to create one collaged image. The height of this collage gives you the required Image height, and the width of one section gives you the Button width.

spacer

Make sure you upload the image to your server, and specify an absolute link in the Image field.

If you want to use a sample image, try the default setting.

What next?

The following page will give you the CSS, the XHTML, and an example of your image. Hope it's been useful.

Thanks to Malarkey for the excellent trimming form fields method used on this form.

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.