http://vietjack.com/css/index.jsp Copyright © vietjack.com Gradient CSS Gradient ? Gradient biểu thị kết hợp hai hay nhiều màu, đây:− • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • Curiosity blue Ukraine Green to dark Fresh Turboscent Koko Caramel Virgin America Portrait Turquoise flow Vine Flickr Instagram Twitch Pastel Orange at the Sun Endless River Predawn Purple Bliss Talking To Mice Elf Hersheys Crazy Orange I Between The Clouds Metallic Toad Martini Friday ServQuick Behongo SoundCloud Facebook Messenger Shore Cheer Up Emo Kid Amethyst Man of Steel Neon Life Teal Love Red Mist Starfall Dance To Forget Parklife Cherryblossoms Shadow Night Ash Virgin http://vietjack.com/ Trang chia sẻ các bài học online miễn phí http://vietjack.com/css/index.jsp Copyright © vietjack.com • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • Earthly Dirty Fog The Strain Reef Candy Autumn Winter Forever Lost Almost Moor Aqualicious Misty Meadow Kyoto Sirius Tamed Jonquil Petrichor A Lost Memory Vasily Blurry Beach Namn Day Tripper Pinot Noir Miaka Army Shrimpy Influenza Calm Darya Bourbon Stellar Clouds Moonrise Peach Dracula Mantle Titanium Opa Sea Blizz Midnight City Mystic Shroom Haze Moss Bora Bora Venice Blue Electric Violet Kashmir Steel Gray Mirage Juicy Orange Mojito Cherry Pinky http://vietjack.com/ Trang chia sẻ các bài học online miễn phí http://vietjack.com/css/index.jsp Copyright © vietjack.com • • • • • • • • • • • • Sea Weed Purple Paradise Sunrise Aqua Marine Aubergine Bloody Mary Mango Pulp Frozen Rose Water Horizon Lemon Twist Emerald Water Copy to clipboard Các loại Gradient CSS • Linear Gradient(down/up/left/right/diagonally) • Radial Gradient Linear Gradient CSS Linear Gradient sử dụng để xếp hai hay nhiều màu định dạng tuyến, ví dụ dạng từ xuống (Top to Bottom): Top to bottom #grad1 { height: 100px; background: -webkit-linear-gradient(pink,green); background: -olinear-gradient(pink,green); background: -moz-lineargradient(pink,green); background: linear-gradient(pink,green); } Kết là: Left to right #grad1 { height: 100px; background: -webkit-linear-gradient(left, red , blue); background: -o-linear-gradient(right, red, blue); background: -moz-lineargradient(right, red, blue); background: linear-gradient(to right, red , blue); } Kết là: http://vietjack.com/ Trang chia sẻ các bài học online miễn phí http://vietjack.com/css/index.jsp Copyright © vietjack.com Diagonal CSS Diagonal góc trái góc phải #grad1 { background: -webkit-linear-gradient(left top, red , blue); background: -o-linear-gradient(bottom right, red, blue); background: -moz-linear-gradient(bottom right, red, blue); background: linear-gradient(to bottom right, red , blue); height: 100px; } Kết là: Multi color CSS #grad2 { height: 100px; background: -webkit-linear-gradient(red, orange, yellow, red, blue, green,pink); background: -o-linear-gradient(red, orange, yellow, red, blue, green,pink); background: -moz-linear-gradient(red, orange, yellow, red, blue, green,pink); background: lineargradient(red, orange, yellow, red, blue, green,pink); } Kết là: Radial Gradient CSS Radial Gradient xuất vị trí trung tâm width: 550px; 15%, pink 60%); pink 60%); pink 60%); 60%); } id="grad1"> #grad1 { height: 100px; background: -webkit-radial-gradient(red 5%, green background: -o-radial-gradient(red 5%, green 15%, background: -moz-radial-gradient(red 5%, green 15%, background: radial-gradient(red 5%, green 15%, pink