Solved

Is it possible to get a box shadow on a select tag dropdown menu?

Posted on 2012-03-10
2
316 Views
Last Modified: 2012-03-14
Is it possible to achieve a box shadow on a simple drop down menu without putting it in a div? I styled my drop down menu like this in my CSS file and I am able to get a blue border but no box shadow. Anyone know why?


select{margin-top: 1px; width: 200px; border: 2px solid #a4cbf9; box-shadow: 1px 1px 1px 1px #888888; color: #444444;}
0
Comment
Question by:shampouya
2 Comments
 
LVL 9

Accepted Solution

by:
alex_code earned 500 total points
ID: 37706400
No, you have to place it into a div... and even with a div you also need for the shadow in order to be cross browser the following.

Example:

-moz-box-shadow: 1px 1px 1px 1px #888888;
-webkit-box-shadow: 1px 1px 1px 1px #888888;

box-shadow: 1px 1px 1px 1px #888888;

Also look here http://css-tricks.com/snippets/css/css-box-shadow/
0
 

Author Closing Comment

by:shampouya
ID: 37723568
thanks
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now