linear-gradients

Gradient color in html table

ぐ巨炮叔叔 提交于 2020-06-05 12:02:07
问题 I need to insert my gradient from column "First" to "Three".The first two columns should not be painted over, the number of columns may vary now: should be <table> <thead> <tr> <th>---</th> <th>---</th> <th>First</th> <th>Second</th> <th>Three</th> </tr> </thead> <tbody> <tr> <td>not gradient</td> <td>not gradient</td> <td>1</td> <td>2</td> <td>3</td> </tr> </tbody> </table> * {margin:0;padding:0;border:0;border-collapse:collapse;} table { width:100%; } th, td { border: 2px solid black; text

Multiple font-awesome icons sharing a background gradient

大兔子大兔子 提交于 2020-05-17 03:12:25
问题 I've been crawling the web for about 2 hours now, trying to find a solution. So I apologise, my starting code isn't overly helpful. I've tried using background-clip, multiple.js, fill, and just can't get the effect I'm looking for. In fact, I currently can't even replicate: https://stackoverflow.com/a/56916981 with Font Awesome 5 and the pesky SVGs. Here's where I'm currently at: body{ font-size:150px; } svg { background: -webkit-linear-gradient(225deg, rgb(251, 175, 21), rgb(251, 21, 242),

Multiple font-awesome icons sharing a background gradient

给你一囗甜甜゛ 提交于 2020-05-17 03:11:08
问题 I've been crawling the web for about 2 hours now, trying to find a solution. So I apologise, my starting code isn't overly helpful. I've tried using background-clip, multiple.js, fill, and just can't get the effect I'm looking for. In fact, I currently can't even replicate: https://stackoverflow.com/a/56916981 with Font Awesome 5 and the pesky SVGs. Here's where I'm currently at: body{ font-size:150px; } svg { background: -webkit-linear-gradient(225deg, rgb(251, 175, 21), rgb(251, 21, 242),

How to make a rectangular transparency gradient CSS3?

烂漫一生 提交于 2020-05-16 13:54:11
问题 I am trying to make in CSS3 rectangular gradient like done with older: filter: alpha(opacity=65, style=3) Unfortunately mask-image property (which i used in order to achieve elliptic ones) does not have rectangular-gradient option. ( pre CSS3 snippet ) .foto_1 { filter: alpha(opacity=65, style=0); } .foto_2 { filter: alpha(opacity=65, style=1); } .foto_3 { filter: alpha(opacity=65, style=2); } .foto_4 { filter: alpha(opacity=65, style=3); } <div class="div_2"><img src="https://i.stack.imgur

CSS 80's TRON Grid

北城以北 提交于 2020-05-09 05:55:49
问题 I'm wanting to build an "80's TRON Grid" effect with CSS but I'm running into a few issues with getting it where I want it. Stuff like this. My Requirements: Fade 1 side to transparent Package it up into a nice .class to put on any <element> and it just work I've made 2 attempts at this w/ 2 different techniques. 80's Grid #1 (pseudo selectors) https://codepen.io/oneezy/pen/MPQWBE Although this works perfectly, it's not ideal to put 10 <div> 's in my html every time I want the effect. body {

CSS 80's TRON Grid

橙三吉。 提交于 2020-05-09 05:55:09
问题 I'm wanting to build an "80's TRON Grid" effect with CSS but I'm running into a few issues with getting it where I want it. Stuff like this. My Requirements: Fade 1 side to transparent Package it up into a nice .class to put on any <element> and it just work I've made 2 attempts at this w/ 2 different techniques. 80's Grid #1 (pseudo selectors) https://codepen.io/oneezy/pen/MPQWBE Although this works perfectly, it's not ideal to put 10 <div> 's in my html every time I want the effect. body {

SVG linear gradient dont work in ie11

橙三吉。 提交于 2020-04-30 07:48:19
问题 I have this gradient code in an SVG-File: <linearGradient id="SVGRD" gradientUnits="userSpaceOnUse" x1="-243.3" y1="1257.3" x2="-242.3" y2="1257.3" gradientTransform="matrix(-64.7347 -199.2328 -199.2328 64.7347 234813.9219 -129743.9844)"> <stop offset="0" style="stop-color:#B3B3B3"/> <stop offset="0.45" style="stop-color:#B3B3B3;stop-opacity:0.22"/> <stop offset="1" style="stop-color:#B3B3B3;stop-opacity:0"/> </linearGradient> <path style="fill:url(#SVGRD);" d="M142.7,133L105,18.5H0V133H142

CSS gradient checkerboard pattern

丶灬走出姿态 提交于 2020-03-17 05:06:13
问题 I want to create a checkerboard pattern using gradients. I've found an example and modified it to my needs, however it only works with -moz prefix. When I remove the -moz prefix, the pattern is completely different. How can I make this -moz checkerboard pattern work with unprefixed linear-gradient ? body { background-image: linear-gradient(45deg, #808080 25%, transparent 25%), linear-gradient(-45deg, #808080 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #808080 75%), linear

CSS gradient checkerboard pattern

ε祈祈猫儿з 提交于 2020-03-17 05:05:17
问题 I want to create a checkerboard pattern using gradients. I've found an example and modified it to my needs, however it only works with -moz prefix. When I remove the -moz prefix, the pattern is completely different. How can I make this -moz checkerboard pattern work with unprefixed linear-gradient ? body { background-image: linear-gradient(45deg, #808080 25%, transparent 25%), linear-gradient(-45deg, #808080 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #808080 75%), linear

Is this possible to create 2-axis 4 color gradient in css (bilinear gradient)?

百般思念 提交于 2020-03-13 21:45:06
问题 My exmaple in JavaScript and <canvas> . https://codepen.io/KonradLinkowski/pen/QWbjaPr const canvas = document.querySelector('#box') const ctx = canvas.getContext('2d') const interpolate = (value, start, end) => (end - start) * value + start const interpolateRGB = (value, start, end) => { return { r: interpolate(value, start.r, end.r), g: interpolate(value, start.g, end.g), b: interpolate(value, start.b, end.b) } } const calcColor = (point, topLeft, topRight, bottomLeft, bottomRight) => {