Add drop shadow with css?
is there a way to add a dropshadow with css? (specifically to
a label component)
Thanks!
"Phrankie" <[email protected]> wrote in
message
news:gop31l$24j$[email protected]..
>
quote:
Originally posted by:
ashtangakasha
>
quote:
Originally posted by:
danger42
> No, drop shadows are implemented as filters, not styles.
They cannot be
> set
> via CSS in Flex 3.
>
> matt horn
> flex docs
>
> Although Matt's reply is true with respect to label
components, which is
> what
> the original question addressed, it's worth pointing out
that MXML Styles
>
can
set dropshadows on components which happen to expose the
> dropShadowEnabled property. Perhaps this is new to Flex
3.2.
>
> For example, CSS can apply dropshadows to TextArea,
Canvas, DataGrid,
> AdvancedDataGrid, and other list-based containers, but
not to Buttons,
> Labels,
> ComboBoxes, Images, etc. The rationale for exposing or
not exposing the
> dropShadowEnabled (and dropShadowColor) property is not
clear, so you have
> to
> refer to the docs.
I think it depends on whether the component has a HaloBorder
or not.
Similar Messages
-
I am fairly new to CSS and am designing a website where I
would like to use a drop shadow using CSS.
Currently I have a container div that is centred horizontally
in the browser window and want to add a drop shadow to this div, so
all content stays central in the browser window when it is resized.
(similar to
http://www.thegraphicmac.com/).
Any help/advice would be appreciated...
ThanksCSS doesn't make drop shadows exactly. You could configure
one division on
top of another division with an offset but that's complicated
when used on
an entire page. This basic tutorial shows how to bring 3
image slices into
a CSS layout. (Use your own images and play around with it.)
http://alt-web.com/Image-slices-in-a-CSS-based-layout.html
--Nancy O.
Alt-Web Design & Publishing
www.alt-web.com
"richardellis" <[email protected]> wrote in
message
news:g62m8c$qj8$[email protected]..
> I am fairly new to CSS and am designing a website where
I would like to
use a
> drop shadow using CSS.
>
> Currently I have a container div that is centred
horizontally in the
browser
> window and want to add a drop shadow to this div, so all
content stays
central
> in the browser window when it is resized. (similar to
>
http://www.thegraphicmac.com/).
>
> Any help/advice would be appreciated...
>
> Thanks
>
>
> -
How can I add drop shadow to a vehicle that changes direction ?
Hi,
Flash CS5
Is it possible to add drop shadow to plan views of vehicles (vehicles are png images as MovieClips) such that as the vehicles change direction along roads (also png images) the shadow is always cast to north west ot the vehicle ? Buildings in the base png image have shadows but vehicles also need them so as to belong to the scene and not appear false.
How is it done ?
Is there control over opacity and softness ?
If I were to have plan views of humans walking would the shadows follow the leg movements ?
Envirographicsyou can control the dropshadow's angle property dynamically. and, yes the dropshadowfilter has an alpha and strength properties you can use.
use the help files to see all the properties you can use. -
How can I create drop shadows with PSE10
How can I create drop shadows with PSE10 & PE10?
Layer styles let you quickly apply effects to an entire layer. In the Effects panel, you can view a variety of predefined layer styles and apply a style with just a click of the mouse.
Three different layer styles applied to text
The boundaries of the effect are automatically updated when you edit that layer. For example, if you apply a drop shadow style to a text layer, the shadow changes automatically when you edit the text.
Layer styles are cumulative, which means that you can create a complex effect by applying multiple styles to a layer. You can apply one style from each style library per layer. You can also change a layer’s style settings to adjust the final result.
When you apply a style to a layer, a style icon appears to the right of the layer’s name in the Layers panel. Layer styles are linked to the layer contents. When you move or edit the contents of the layer, the effects are modified correspondingly.
Once you choose Layer > Layer Style > Style Settings, you can edit the settings of a layer’s style or apply other style settings or attributes available in the dialog box.
Lighting Angle Specifies the lighting angle at which the effect is applied to the layer.
Drop Shadow
Specifies the distance of a drop shadow from the layer’s content. You can also set the size and opacity with the sliders.
Outer Glow Size Specifies the size of a glow that emanates from the outside edges of the layer’s content. You can also set the opacity with the slider.
Inner Glow Size Specifies the size of a glow that emanates from the inside edges of the layer’s content. You can also set the opacity with the slider.
Bevel Size Specifies the size of beveling along the inside edges of the layer’s content.
Bevel Direction Specifies the direction of the bevel, either up or down.
Stroke Size Specifies the size of the stroke.
Stroke Opacity Specifies the opacity of the stroke. -
I posted earlier but figured I'd give it another shot due to the flood of other posts. Has anyone figured out how to add a drop shadow (preferably to video clip with an alpha channel, but other applications such as psd files, etc. would good to know for as well). I mean, if iWeb can have drop shadows, SURELY Final Cut Pro X does...right?
The solution is do do it in Motion. Only took me a minute to figure it out.
Basically, you create a "Final Cut Effect" in the project browser of Motion, and take a clip (any clip will work, it seems), scale it down to 50% or whatever, add the drop shadow (easy to find), and hit Save.
Motion will tell you it's "publishing" it, and ask you for a category. I created one with my name.
Go back to FCPX, my new category appears instantly in the Effects browser, and there's my shadow effect in that category. Drag your newly created effect to the clip you want to effect, and there you go.
The nice thing is, having your own saved effects makes it easy to be consistent when you want to apply that effect to several things. -
Can't add drop shadow to text in PSE 6
Everyone says to do Layer > Layer Style > Style Settings.
But when I go to Layer Style and try to get to Style Settings, Style Settings is greyed out. (The text in quesiton is already selected.)
In fact, I've tried everything possible to get Style Settings to become engaged and have not been able to do that.
Also, when I go into Effects and try to add cool effect (torn paper, glowing edges, etc.) to the text, it automatically changes the color of my text. For example, my text is orange and when I tried "glowing edges" it changed the text to olive drab... and it certainly didn't glow.
Any guidance you can give with these issues... thanks!Style Settings is for adjusting styles you've already added. The effects you listed are all filters, not effects or layer styles and they use the foreground/background colors, so yes, they will change the color of your text. To apply a drop shadow click the Layer styles button on the effects panel, choose drop shadows from the pulldown menu and double click the one you want. If you don't like it, undo it and try a different one. Then you should be able to adjust things like the angle and distance of the shadow by adjusting the style settings.
-
Text drop shadows (via CSS)?
Hi guys,
Hope everyone has had a great summer!
Quick question: I have white type with a dark blue image behind it. I'd really like the white type to pop more off the background with a text drop shadow (CSS generated drop shadow, not rasterized), can't get it to work. I found this simple video...
https://plus.google.com/117443384307509478210/posts/1h3EVw4jvmf
...however doesn't seem to be working for me. I'm selecting the text box the white type is in -- the box has no fill and no stroke -- trying to get the drop shadow to only effect the text. Or, is this not possible for some reason(?)
Thanks in advance for your help!
DThe simplest way to create a text shadow is like this:
.section p {
text-shadow: 2px 2px 2px #000;
font-size: 150%;
Now your HTML may be something like this:
<div class="section">
<p>Your sample text goes here</p>
</div>
This works in FF 14.0.1 but don't know if it is going to work in IE9 or in other major browsers.
Good luck. -
Flicker when using drop shadow with edge feather
I have encountered a new problem with FCP 5.1.2. When using edge feather and drop shadow together, I encounter a flicker around the edge of the feathered video image. This flicker goes away if I remove the drop shadow. I read in an earlier post that the 5.02 update solved this problem. However, I am using version 5.1.2 and the sugestion to reajust the percentage of the effect and then back to the original percentage, doesn't work. I have used the edge feather, drop shadow combo many times in earlier versions of FCP with no problem. Fixes anyone?
I posted this months ago with no reply so I'm trying again. Anyone with any thoughts? I really don't like having to resort to creating the drop shadow in Photoshop.What I am trying to do is very simple. I want to soften the edges of an image and give it a drop shadow. This "image" could be a scaled and cropped DV source, or it could be a photoshop file. This is something I have done routinely in previous versions of FCP without any problem. This is very basic. I have opened earlier projects that were edited in those earlier versions of FCP, and what looked fine then, looks horrible now. If others are not having this problem, can I assume my software upgrade is defective in some way?
Please, if someone would perform the following and report back, I would greatly appreciate it.
1- import two DV video files into a new FCP project.
2- place DV file "A" on the V1 track
3- create a V2 track and place DV file "B" over DV file "A"
4- scale DV file "B" to 50% and apply a 100% Edge Feather to it.
5- now check the Drop Shadow box
This will look fine on your computer screen, but when viewing on an external monitor the edges of DV file "B" flicker in a terribly annoying way.
Something this simple and basic shouldn't be causing this much pain. Thanks in advance for your help. -
I am making a sign for sign writing. The overall size is 2400mmx1800mm. so its quiet big.
But When I go to put a drop shadow behind it it comes up with this -
" The combination of artwork size & resolution exceeds the maximum that can be rasterized"
Why is it saying this? How do I put a drop shadow on it?Try scaling the sign down to 600 x 450mm and building your drop shadow at a more manageable size. When you deliver your file for output, tell the vendor to enlarge the file 400% in the RIP. If it still will not work, check your HD for scratch space. If there is not enough memory available to run the operation, you will continue getting the message until you clear some space and/or increase your RAM ( if necessary ).
-
Hi,
I have troubles in adding a drop shadow to a vectorized map (in *.ai format).
All countries are separated by a white thin line, so that it is possible to highlight a certain country of interest in another colour.
When these countries have been selected, I would like to add a drop shadow under the map outlines, ie under each continent.
But everytime I try to do so, the drop shadow also gets under each country.
My guess is that I have to group the countries within a continent or something else, but I fail each time I try.
Does anybody have a clue?!
Many thanks in advance
AnnikaAnnika,
What happens if you:
1) Select all countries in the continent and copy to the back (Ctrl/Cmd+C+B);
2) Pathfinder>Merge the copy;
3) Effects>Stylize>Drop Shadow applied to the merged copy? -
Drop shadows with mask problem
I've got a vector image that I've applied a drop shadow to,
I've then used a mask on it to square it off but unfortunately the
drop shadow follows the mask after applying.
Is there any way the mask can cut off the the drop shadow
effect as well?Garry Bradley wrote:
> I've got a vector image that I've applied a drop shadow
to, I've then used a
> mask on it to square it off but unfortunately the drop
shadow follows the mask
> after applying.
>
> Is there any way the mask can cut off the the drop
shadow effect as well?
It's pretty hard to guess what it looks like from your
description. Can
you upload a copy of your document to a website where we can
see it?
Linda Rathgeber - Adobe Community Expert
http://www.adobe.com/communities/experts/members/8.html -
Trying to add drop shadow to home slider app
Does anyone know how to do such a thing?
Thanks for that but I wasnt clear enough in my question.
I have the code but I havent been able to find where to place it in the home slider app.
From my attempts I have determined that a class like the one in this post .shadow needs to be placed
somewhere in the javascript code unless there is a way to combine a drop shadow and a glow effect in one box-shadow statement. -
Is there a way for converting this Photoshop drop shadow to CSS box shadow?
Here's my PSD: http://d.pr/f/ML9l
Here are the specs:
Color: #3b5c7f
Angle: 90 degrees
Distance: 2px
Size: 4px
Contour: Linear
Here's what I've come up with so far, and though quite similar, it is not exactly the same thing:
http://jsbin.com/akuleg/1/Are you a Creative Cloud member? With the recent Photoshop update, you can use the tool "Copy CSS"
It copies the style to the clipboard and you can paste it into your code. Here is what your file generated:
.Shape_5 {
border-radius: 3px;
background-color: rgb( 228, 224, 223 );
box-shadow: 0px 2px 4px 0px rgb( 59, 92, 127 );
position: absolute;
left: 56px;
top: 123px;
width: 287px;
height: 54px;
z-index: 2;
Hope this helps!
Julia -
Add Drop Shadow to JMenu Problem
Hi,
I got this code from "Swing Hacks", for some reason it does not run for me, but throws exceptions. I can not figure out why this is happening. This code straight out of the book, should be runnable. Below is the custom class, then the driver-test class, then the Exception:
import javax.swing.plaf.basic.*;
import javax.swing.plaf.*;
import javax.swing.border.*;
import javax.swing.*;
import java.awt.*;
public class CustomPopupMenuUI extends BasicPopupMenuUI{
public static ComponentUI createUI(JComponent c){
return new CustomPopupMenuUI();
public Popup getPopup(JPopupMenu popup, int x,
int y){
Popup pp = super.getPopup(popup, x,y);
JPanel panel = (JPanel)popup.getParent();
panel.setBorder(new ShadowBorder(3,3));
panel.setOpaque(false);
return pp;
class ShadowBorder extends AbstractBorder{
int xoff,yoff;
Insets insets;
public ShadowBorder(int x, int y){
this.xoff = x;
this.yoff = y;
insets = new Insets(0,0,xoff,yoff);
public Insets getBorderInsets(Component c){
return insets;
public void paintBorder(Component comp, Graphics g,
int x, int y, int width, int height){
g.setColor(Color.BLACK);
g.translate(x,y);
// draw right side
g.fillRect(width-xoff,yoff,xoff,height-yoff);
// draw bottom side
g.fillRect(xoff,height-yoff,width-xoff,yoff);
g.translate(-x,-y);
// Driver Below
import javax.swing.*;
import javax.swing.plaf.ComponentUI;
import java.awt.*;
public class MenuTest {
public static void main(String[] args)throws Exception{
UIManager.put("PopupMenuUI","CustomPopupMenuUI");
//UIManager.put("MenuItemUI","LucentMenuItemUI");
JFrame frame = new JFrame();
JMenuBar mb = new JMenuBar();
//mb.setUI(new CustomMenuUI());
frame.setJMenuBar(mb);
JMenu menu = new JMenu("File");
mb.add(menu);
menu.add(new JMenuItem("Open"));
menu.add(new JMenuItem("Save"));
menu.add(new JMenuItem("Close"));
menu.add(new JMenuItem("Exit"));
menu = new JMenu("Edit");
mb.add(menu);
menu.add(new JMenuItem("Cut"));
menu.add(new JMenuItem("Copy"));
menu.add(new JMenuItem("Paste"));
menu.add(new JMenuItem("Paste Special.."));
frame.getContentPane().setLayout(new BorderLayout());
frame.getContentPane().add("North",new JButton("Button"));
frame.getContentPane().add("Center",new JLabel("Label"));
frame.getContentPane().add("South",new JCheckBox("checkbox"));
frame.pack();
frame.setSize(200,150);
frame.show();
}Exception:
UIDefaults.getUI() failed: no ComponentUI class for: javax.swing.JPopupMenu[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=0,maximumSize=,minimumSize=,preferredSize=,desiredLocationX=0,desiredLocationY=0,label=,lightWeightPopupEnabled=true,margin=,paintBorder=true]
java.lang.Error
at javax.swing.UIDefaults.getUIError(Unknown Source)
at javax.swing.MultiUIDefaults.getUIError(Unknown Source)
at javax.swing.UIDefaults.getUI(Unknown Source)
at javax.swing.UIManager.getUI(Unknown Source)
at javax.swing.JPopupMenu.updateUI(Unknown Source)
at javax.swing.JPopupMenu.<init>(Unknown Source)
at javax.swing.JPopupMenu.<init>(Unknown Source)
at javax.swing.JMenu.ensurePopupMenuCreated(Unknown Source)
at javax.swing.JMenu.add(Unknown Source)
at hacks.MenuTest.main(MenuTest.java:23)
advTHANKSanceI am also using xp and java version 1.4.2_08, but to no avail.. see below:
C:\workspace\Swing Hacks\src>java -version
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
C:\workspace\Swing Hacks\src>java hacks.MenuTest
UIDefaults.getUI() failed: no ComponentUI class for: javax.swing.JPopupMenu[,0,0
,0x0,invalid,alignmentX=null,alignmentY=null,border=,flags=0,maximumSize=,minimu
mSize=,preferredSize=,desiredLocationX=0,desiredLocationY=0,label=,lightWeightPo
pupEnabled=true,margin=,paintBorder=true]
java.lang.Error
at javax.swing.UIDefaults.getUIError(UIDefaults.java:689)
at javax.swing.UIDefaults.getUI(UIDefaults.java:719)
at javax.swing.UIManager.getUI(UIManager.java:784)
at javax.swing.JPopupMenu.updateUI(JPopupMenu.java:204)
at javax.swing.JPopupMenu.<init>(JPopupMenu.java:169)
at javax.swing.JPopupMenu.<init>(JPopupMenu.java:154)
at javax.swing.JMenu.ensurePopupMenuCreated(JMenu.java:521)
at javax.swing.JMenu.add(JMenu.java:556)
at hacks.MenuTest.main(MenuTest.java:23)
UIDefaults.getUI() failed: no ComponentUI class for: javax.swing.JPopupMenu[,0,0
,0x0,invalid,alignmentX=null,alignmentY=null,border=,flags=0,maximumSize=,minimu
mSize=,preferredSize=,desiredLocationX=0,desiredLocationY=0,label=,lightWeightPo
pupEnabled=true,margin=,paintBorder=true]
java.lang.Error
at javax.swing.UIDefaults.getUIError(UIDefaults.java:689)
at javax.swing.UIDefaults.getUI(UIDefaults.java:719)
at javax.swing.UIManager.getUI(UIManager.java:784)
at javax.swing.JPopupMenu.updateUI(JPopupMenu.java:204)
at javax.swing.JPopupMenu.<init>(JPopupMenu.java:169)
at javax.swing.JPopupMenu.<init>(JPopupMenu.java:154)
at javax.swing.JMenu.ensurePopupMenuCreated(JMenu.java:521)
at javax.swing.JMenu.add(JMenu.java:556)
at hacks.MenuTest.main(MenuTest.java:30)
I don't understand what the issue could be..
Can anyone reproduce this error?? -
Add drop shadow curled page like default photo boxes in books.
When I pick a theme in Books in Aperture, I see the photo boxes have rotation and a shawdowed, buttom edge curled effect to the photo plaeholder boxes. I figured out how to add photo boxes and even size and rotate them, but cannot see how to add the shawdow/curled effects to the placeholder. Nor can I 'edit' existing placeholders to change there size or rotation. Seems it should be easy... but not. Also, how to add a custom page background color other than the very limited selection allowed/offered?
Thanks!LewisO,
if one could adjust the size and rotation of these theme supplied containers. That too, I have not been able to figure out how to do.
which theme are you using? Each theme is behaving differently and some are very restrictive. For example, the "Formal" theme does not allow to rotate the photo boxes or to change the aspect ration.
The "angle" slider in the layout options and part of the size options will be dimmed for hese themes.
Regards
Léonie
Maybe you are looking for
-
Multiple copies of ASDM on the Mac?
Is it possible to run multiple copies of ASDM on the Mac so that I can be connected to multiple ASAs via ASDM at the same time? I can do this on a PC with no problem, but I can't seem to figure out how to do this on the Mac. Thanks, Jim
-
Add keyword dropdown to Find when Criteria is Keywords
I would like to simplify using Find to do photo searches based on Keywords. Currently the Keywords must be typed into the Enter Text field. A slow process requiring correct spelling and a separate list of the previously used Keywords. A list of all p
-
There's no thumbnails to drag around except one on the left side of the page (the one that's open). The right side of the page lists every tab I have created.
-
All elements flow (remotely) when you update a page. What shall I do?
I will try to document exactly what I am trying to complete in Muse. I have a single master upon which all pages have been built and until now without any problems. I am running v1.1, Build 960, CL768344 - AIR Runtime 3.2.0.2060. On my fron page I ha
-
Outlook 2013 display black background in datenavigator plane
Since a few days we has an outlook 2013 issue in the datenavigator. Outlook display a black background. Has anyone an idea how we can resolve these issue? Until my account is verified I don't can insert an image... Has anyone an idea how we can resol