PDA

View Full Version : CSS 3D Button size



Axel
07-11-2006, 05:01 PM
Hi,

I used the CSS 3D Button found at 3D Button (http://www.dynamicdrive.com/style/csslibrary/item/3d-css-buttons/)

I would like to have them the same width. I tried it by amending the CSS file for the cssbutton the "width=120px;". However, this works only in IE but not in Firefox.

I am just beginning with CSS and any help would be appreciated.
Thanks, Axel

Twey
07-11-2006, 07:27 PM
I'm not surprised: it should be a colon (:) not an equals sign (=).

Axel
07-11-2006, 07:38 PM
Nor me. The writing error was only in this post, not in the CSS file. The problem is still there.

Axel

Twey
07-11-2006, 08:14 PM
You'll also need to set display: block. Only block-level elements (and images) can have width; inline elements just expand to hold their contents.

Axel
07-11-2006, 08:26 PM
Thanks. This does works just perfect!

Axel