Em Thu, 02 Dec 2004 16:08:33 +0000, Mark Tranchant
<ma**@tranchant.plus.com> escreveu:
Kerberos wrote: I haven't found in my CSS book how to create a gradient to fill a
division tag, and to create a border with round corners.
Is it possible using either CSS or JavaScript?
I'd like to create a menu bar with a gradient in the background, and I
Create a gradient image as large as you want, and set the background
colour to match the bottom colour of the gradient so that it still looks
good on scaling.
This is what I've done so far, with a 1px-wide gradient image, but that
would have been nice to find out a "hidden" CSS feature such as:
#navbar {
background-gradient: linear 90;
background-gradient-colors: #4900A4;
background-gradient-end: #3200A4;
}
:)
want the top corners to be a little round with a 5px radius.
See A List Apart for various round corner solutions. Alternatively, use
the CSS3 border-radius property in combination with -moz-border-radius
so that you get the effect in recent Gecko browsers and mythical future
CSS3-supporting browsers.
Both the gradient and the round corners can be seen on my site, although
you'll need to use one of the above browsers.
Indeed, it looks nice on Gecko browsers. I use Opera... I'll have to wait.
--
Kerberos.
http://www.opera.com http://www.freebsd.org http://www.osresources.com http://exodus.jabberstudio.org