![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
|
want the top corners to be a little round with a 5px radius. |
#3
| |||
| |||
|
|
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. |

|
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. |
#4
| |||
| |||
|
|
Em Thu, 02 Dec 2004 16:08:33 +0000, Mark Tranchant mark (AT) tranchant (DOT) plus.com> escreveu: 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 |
![]() |
| Thread Tools | |
| Display Modes | |
| |