radial-gradients

Dotted text in css?

一曲冷凌霜 提交于 2019-12-02 17:57:05
Is it possible to make dotted text with css? I know that the obvious thing would be to use a dotted font, but If I only need to use dotted text sparingly, then having the user to download a whole font might be overdoing it. The idea that I had was to overlay the text with a pseudo element with a background pattern of small transparent circles with a white background. Some thing like this: <div class="dottedText">Some dotted text</div> FIDDLE CSS .dottedText:after { content: ''; position:absolute; left:0; top:0; width: 100%; height: 100%; background: radial-gradient(circle, transparent 50%,

Applying an SVG Radial Gradient Mask to Multiple Items

痴心易碎 提交于 2019-12-02 16:06:13
问题 I have a number of differently colored and sized svg circles that I would like to apply a radial gradient mask to. Is there a way to define a single mask that is applied to each circle by stretching it to match that circle's size? Here is what I've come up with so far: <radialGradient id="radialGradient" cx=".5" cy=".5" r=".5"> <stop offset="0%" stop-color="white" stop-opacity="0"/> <stop offset="100%" stop-color="white" stop-opacity="1"/> </radialGradient> <mask id="radialMask" maskUnits=

How to apply multiple css radial gradients to a single element

陌路散爱 提交于 2019-11-30 15:50:59
I have the following style applied to my div element: background-image: -moz-radial-gradient(50% -10%, ellipse closest-corner, rgba(5, 5, 5, 0.7), rgba(0, 0, 0, 0) 100%); This has the desired effect (being an inner drop shadow only at the top of the div ). I would like to apply the same effect at the bottom of the div . The following line does it well, but it seems to override the first, so I can only get one or the other. background-image: -moz-radial-gradient(50% 110%, ellipse closest-corner, rgba(5, 5, 5, 0.7), rgba(0, 0, 0, 0) 100%); Can someone show me how I can have multiple radial

CSS3 Gradients to reproduce an 'inner glow' effect from Illustrator with border-radius applied

余生颓废 提交于 2019-11-30 06:40:54
I am in the process of trying to get my head properly around CSS3 Gradients (specifically radial ones) and in doing so I think I've set myself a relatively tough challenge. In Adobe Illustrator I have created the following 'button' style. To create this image I created a rectangle with a background colour of rgb(63,64,63) or #3F403F , then 'stylized' it to have a 15px border radius. I then applied an 'inner glow' to it with a 25% opacity, 8px blur, white from the center. Finally, I applied a 3pt white stroke on it. (I'm telling you all of this in case you wished to reproduce it, if the image

Why doesn't this radial-gradient complete the circle?

柔情痞子 提交于 2019-11-30 05:02:54
问题 I'm trying to use a radial gradient to create a border within circle elements that are radio buttons. The basic CSS is shown below. I cannot figure out why the red gradient does not circle the entire circumference of the circles. As the white color-stop approaches 100%, gaps appear in the red at the top, right, left, and bottom. Why does this happen, and how would I fix it while still using a radial gradient? .container { background: #ddd; width: 400px; height: 200px; padding: 20px; } .radio

How to render a radial gradient onto a new UIImage on an iphone

柔情痞子 提交于 2019-11-29 08:31:51
Just wondering how to render a radial gradient (point > circle) onto a new UIImage (iphone). I saw the following: http://developer.apple.com/library/ios/#documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_shadings/dq_shadings.html And it made me think i need to use CGShadingRef or CGGradientRef, and use UIImage's 'imageWithCGImage' constructor to go from the CG* to a UIImage... but i can't figure out how. Any suggestions greatly appreciated! You should read about Graphics Contexts in the same document as the section you linked. All drawing happens in a graphics context. If you

How do I add a radial gradient to a UIView?

五迷三道 提交于 2019-11-28 21:28:56
I have a UIView which I want to have a radial gradient, and I'm wondering how to go about doing this? John Gallagher To do this you need to drop down to Core Graphics and use CGContextDrawRadialGradient . Similar Stack Overflow Questions How can I draw a sector with radial gradient (iphone) How to draw a gradient line (fading in/out) with Core Graphics/iPhone? Other Resources There's a tutorial showing how to draw icons with gradients on iOS here: http://redartisan.com/2011/05/13/porting-iconapp-core-graphics He's put the code on Github, complete with a UIView subclass that shows the (rather

CSS3 Radial Gradients with RGBA()

有些话、适合烂在心里 提交于 2019-11-28 17:58:31
I am working on a website which uses multiple css3 gradients as overlay for a background tiled with texture image site url: --snipped-- currently for header i am using following css: #header { background: #DBD6D3; height: 364px; background: -moz-radial-gradient(50% 0% 0deg,circle farthest-corner,#FFFFFF,#DBD6D3); background: -webkit-gradient(radial,50% 59,500,50% 0,40,from(#DBD6D3),to(#FFFFFF)); } #header .wrp{background:url('img/headerBg.png');height:100%;padding-top:40px;} here headerBg.png is a semi-transparent texture of size 5x5 pixel, ad for body I need to create this background: I need

Gradient Radius as percentage of screen size

耗尽温柔 提交于 2019-11-28 06:15:01
I'm trying to create a shape drawable with radial gradient background, with radius that will adjust to the screen size (take a look at the relevant documentation ). This is my code: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" > <gradient android:endColor="#000" android:gradientRadius="50%p" android:startColor="#5d2456" android:type="radial" /> </shape> But it doens't seem to work. if I remove the "%p", it works, but then the radius will be static, thus not adjusting to the screen size...Any idea what's wrong

How to render a radial gradient onto a new UIImage on an iphone

允我心安 提交于 2019-11-28 02:12:32
问题 Just wondering how to render a radial gradient (point > circle) onto a new UIImage (iphone). I saw the following: http://developer.apple.com/library/ios/#documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_shadings/dq_shadings.html And it made me think i need to use CGShadingRef or CGGradientRef, and use UIImage's 'imageWithCGImage' constructor to go from the CG* to a UIImage... but i can't figure out how. Any suggestions greatly appreciated! 回答1: You should read about Graphics