/ home / css / css gradient an easy one liner /

CSS Gradient an Easy One Liner

11:14 pm, February 25, 2016 710 108 0.5 @ 200 wpmrate up KruXoR

Original Post Date: 3:19 am, November 25, 2014

Want to just add a gradient background to a div? Try this one:

background: linear-gradient(red, blue);

or you can use hex colours

background: linear-gradient(#FFFFFF, #000000);

Thats it! works in the latest version of chrome and firefox (and even IE!, but you will probably need the latest version.). I have not tested it in other browsers


11:14 pm, February 25, 2016 710 108



Add Report



This is a site where i basically just post whatever i feel like at the time, it has no one particular topic but usually. Just my ideas and links and random bits of code that i find.

Follow Me..



Looking for the kruxor minecraft server mc.kruxor.com? we have migrated it to... icekraft.com if you want to play on there just connect to play.icekraft.com:25535 or mc.kruxor.com should also still work.

Favorite Links