Results 1 to 2 of 2

Thread: Drop shadow not appearing in Firefox

  1. #1
    Join Date
    May 2009
    Location
    OH
    Posts
    6

    Drop shadow not appearing in Firefox

    I'm having trouble getting a drop shadow to appear when viewing my website in Firefox. When I view it in Safari, I have no issues. I'm pretty much just overlaying images, so I can't determine what the issue might be. I'm not familiar with the differences in Firefox and Safari (in regard to how they handle xhtml, css, etc.).

    You can see what I'm seeing here. Load it up in two different browsers and check out the navigation panel on the lefthand side. Also, why would Firefox place a border around that xhtml verification icon in the bottom left and not Safari?

    Here's the relevant CSS code.
    Code:
    /*--Menu--*/
    
    .menu-container{
    	margin-left: 30px;
    	margin-right: 20px;
    	width: 150px;
    	height: 150px;
    	
    	background: url(images/top-shadow-menu.png), repeat-y;
    }
    
    #menu{
    	float: left;
    	width: 120px;	
    	margin-top: -8px;
    	margin-left: 10px;
    	font-variant: small-caps;
    	font-size: 15px;
    	
    }
    Feel free to give constructive criticism regarding how I'm attempting to implement drop-shadows. I've Googled a lot, and I haven't been able to make really clear sense of a lot of the CSS drop-shadow tutorials I've come across...

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    The border around the verification icon is a link border (changes color on hover in IE) so add
    img { border: none; }
    into the stylesheet.

    The drop shadow code is wrong, but some browsers have guessed correctly, IE 7 and Firefox have not. It should be:-

    .menu-container{
    margin-left: 30px;
    margin-right: 20px;
    width: 150px;
    height: 150px;

    background: url(images/top-shadow-menu.png) repeat-y;
    }

    You had a comma before repeat-y which disabled that style.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. How do i add a drop shadow to this?
    By David9799 in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 12 Sep 2006, 02:57 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •