A
A
Alexander Talalaev2011-02-20 22:41:32
css
Alexander Talalaev, 2011-02-20 22:41:32

css3 box-shadow?

A situation arose when it was required to make a shadow for an element not as usual, but from one and in the other case from two (opposite) sides. And as I understood in a legitimate way this can not be achieved? do you have to be smart? I hope there is something I don't know.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
H
homm, 2011-02-20
@neuotq

Yes, whatever:
box-shadow: 0 5px 3px green, 0 -5px 3px blue;

M
Mithgol, 2011-02-20
@Mithgol

The "box-shadow" property can have multiple comma-separated values, and themes can create multiple shadows on the same element. The first shadow is the upper one in the sense of their mutual imposition on each other.
See also MDC for details in English .

A
Alexander Talalaev, 2011-02-20
@neuotq

In general, thanks to both commentators, the issue is resolved.
As usual, the problem is my inattention.

W
wdtime_ru, 2014-07-02
@wdtime_ru

Very detailed, regarding your question: box-shadow css

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question