linear-gradients

Draw cross background up/down via css which is responsive

时光毁灭记忆、已成空白 提交于 2019-12-24 07:21:02
问题 How to draw such an shape via css in a single section(div)? currently i have used three div check my code :) The idea is simple, for top, from horizontally middle the orange color first need to go down at 45 degree till next 100px and then it should go at 180 degree for remaining part. For bottom, from horizontally middle the orange color first need to go down at 45 degree till next 100px and then it should go at 180 degree for remaining part. All this needs to be done for a single container

transparent linear-gradient applied to text - bug in Safari

元气小坏坏 提交于 2019-12-24 06:35:59
问题 I am trying to fade the white text of a paragraph on an image background from white to transparent. I have it working in Chrome and Firefox but can't seem to get it working in Safari. In my example you'll notice that the text does not display in Safari but if you highlight the text it will appear. JSFiddle here: https://jsfiddle.net/ngaffer/fgxbfoL4/5/ <section> <h3>Heading Three</h3> <div class="hideContent"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis nec quam

Why do Safari and Firefox seem to incorrectly render my gradient and how can I fix it?

孤街醉人 提交于 2019-12-24 03:47:10
问题 Here's the code on CodePen. It looks exactly as I expect in Chrome. Firefox and Safari both look wrong. (I'm on the latest versions of all 3.) I'm working on a way to use a constant gradient background across multiple inline-block elements. Here's how it's working right now: I have a parent ol whose :before pseudo-element has a gradient background ( transparent to opaque color) and a z-index set to display it above the child li s. The li s have the background-color set to the color that looks

How to make a diagonal css gradient without the colors blending together(a sharp color change) that's displaced 70% to the right?

泪湿孤枕 提交于 2019-12-24 01:47:17
问题 I can't find any css gradient color generators that do what i'm trying to do. A diagonal gradient with no blending, just a sharp color change from #252525 to #0099ff (for example), with the line where the two colors meet being about 70% from the left of the container, so the line would start a little more than halfway across the x axis of the container, and the line would end maybe halfway down the y axis of the right side of the container. If you would be able to emphasize what numbers are

Linear gradient not applying in Webkit with d3 generated SVG

女生的网名这么多〃 提交于 2019-12-23 23:56:45
问题 I'm creating a specific implementation for a d3.js graph, and it seems that when creating an SVG document dynamically, linearGradient s are not working on Webkit browsers (tested only on Chrome, of the Webkit family), while Gecko is showing the expected behavior. How do I conclude it has to do with dynamic generation, or d3? I tried copying the resulted document into an empty page, and the gradient came to life. The d3 code initializes the document first: // in construction: // ... svg = d3

Google visualization not working with local file

余生长醉 提交于 2019-12-23 02:52:17
问题 I'm working with a treemap, but the scale is coming out black. (related question: Google TreeMap fill value set to _ABSTRACT_RENDERER_ID_1). After reading that I was able to track down the problem to the code that google generates. It looks like the definitions are being declared correctly, but then the url to them looks like maybe doesn't work with local files. Perhaps because I'm working with a local file, see below: url(file:///D:/... ) <defs> <linearGradient gradientUnits="userSpaceOnUse"

Solid gradients not really solid? Don't have crisp edges at color stops

◇◆丶佛笑我妖孽 提交于 2019-12-23 02:49:18
问题 In CSS, this seems to be the easiest way to create solid looking gradients where colors end and start abruptly at color stops. Example - background-image:linear-gradient(to bottom, gray 100px, white 0); /*Let the browser decide*/ OR background-image:linear-gradient(to bottom, gray 100px, white 100px); /*Explicitly specify.*/ What happens is that a gradient is generated but it doesn't really have crisp edges where the colors meet. My assumption was that the code would result in gray stopping

linear-gradient border modify

给你一囗甜甜゛ 提交于 2019-12-22 18:36:22
问题 Hello Everyone here i wanted to change, We need to update the strikethrough to be the same diagonal - 45 degrees centered. Please find the code at below... .Product__widths__button { background: #FFFFFF; border: 1px solid #333333; color: #333333; display: block; font-size: 16px; line-height: 42px; height: 42px; text-align: center; padding-left: 20px; padding-right: 20px; } .Product__widths__button.disabled { color: #D1D1D1; background: linear-gradient(to top left, #fff 38px, #D1D1D1, #fff

Split CSS circle into 3 equal parts with linear gradients - pie chart style

帅比萌擦擦* 提交于 2019-12-22 14:54:52
问题 I'm trying to create a progress indicator - and to a certain extent I've done it, but it's not what I want to end up with. Here's an image: As you can see the indicator shows 1 third, 2 thirds, then full. This is what I want to achieve except that I want the first, second and third sections to be different colors, so I would end up with 3 equal slices in 3 different colors starting at 12 o'clock. Here's the code - I've removed the centre section because it's not relevant to the question: (

Generating Color Gradients

让人想犯罪 __ 提交于 2019-12-22 12:37:35
问题 I had an idea to programmatically generate matching color schemes however I need to be able to generate a linear gradient given a set of two colors (Hex or RGB values). Can anyone provide me the (pseudo-)code or point me in the right direction to accomplish this task? EDIT : I forgot to mention, but I also need to specify (or know) the number of steps the gradient takes from color A to color B. 回答1: Okay, so you know the steps, start color and end color. Assuming you have RGB values for each