how to create rectangular that had gradient left to right - html

I'm noob in css3 and I want create one div that had gradient from left to right.
I want this gradient start from white to black and I don't know how to create it? please guide me about it.

Go here http://www.colorzilla.com/gradient-editor/ and play with the available gradients by selecting different filters, rgb values. It is a good start.

From here you can generate :
http://ie.microsoft.com/testdrive/graphics/cssgradientbackgroundmaker/
https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Using_CSS_gradients

Related

Is there any possibility to use Gradient Map (as one in photoshop) for image in CSS?

i just wonder is there a possibility to use gradient map as for in image in CSS?
Belove the results i would like to achieve:
https://tomb.pl/projects/cephtactics/images/dentistry.png
There is a generator for it :)
https://cssduotone.com

How to put a see through filter over an image with text above the filter

essentially I am trying to recreate the hover over from this sight when hovering over the squares. http://thehf.org/ can anyone enlighten me on how this is done?
Its done through web-filters, which are applied in your css. there are a variety available, sepia, invert, grayscale to name a few.
here's a full code example with the sepia and invert demonstrated

how to set one continuous background image for multiple elements

I've been wrecking my brain trying to figure this out. is there any way to set one background image in css for multiple elements? I have a square-ish speech bubble, made with regular css, the triangle made with the border technique, but i want an background image to fill them both so it looks like a cut out all together.
I dont know any other way to design a solid shape using html/css other than squares and rectangles. If i could create a speech bubble as one solid shape, then giving it a bg would be simple lol.
I was wondering about html5's drawing capabilites, but im not sure...
Any ideas?
Edit: No, there's no option to do what you want. But if you wanna do spech bubbles, you can check any of these links:
http://nicolasgallagher.com/pure-css-speech-bubbles/demo/
http://konigi.com/tools/css-tooltips-and-speech-bubbles
http://desandro.com/resources/css-speech-bubble-icon/

Generate rectangle with variable dimensions in CSS with inner gradient background

i have some variables on PHP who gain values from 0 to 100. I want to develop a simple graph system that draw a horizontal rectangle given the number (0, 1 , 50 and soo). Also i want to add some gradient to the background, doing this in php is complicated and i dont want more load in my server, so i know this is possible in css, but im not a css developer. So if any body can help me with this. In this page (http://www.answerbag.com/) you can se how i want the rectangle, in the results of the pool section in the middle of the above page.
that's very simple since you know the width. Since you probably want the full spectrum of the gradient to show, you probably want to resize the gradient image by using a css #score1 { width: 30px } on that <img id="score1" src="blue_gradient.png"> Then later on, you can use one of the many rounder corner methods to add the round corners to it.

How do I make a tiny 'shadow' under an image, like this one?

http://www.deviantart.com/#order=9&q=sun
As you can see, each picture...underneath it...it has a little tiny shadow around the edges.
How can this be done with a variable size image? (css)
Beside the answers above, let me explain how devianart does it ..
they have an image generator, that creates the shadow image at anysize they want ..
You can see the background shadow of an image at http://sh.deviantart.net/shadow/x/113/150/logo3.png
now playing around with the url and altering the 113 and 150 creates new images of arbitrary size which they use ...
You can use box-shadow, but it wouldn't work cross browser: http://www.css3.info/preview/box-shadow/
You can do this by shifting a background image behind the original image. There are quite a few tutorials on the internet:
Tutorial 1
Tutorial 2