Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2010
    Posts
    43
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Firefox Mac - Rounded corners no longer appear

    Hi, I noticed today that my sites in Firefox mac no longer display rounded corners or shadows. They work on Firefox windows.

    From searching the web apparently Firefox no longer supports the "moz" prefix for styles, for example "-moz-border-radius" should just say "border-radius".

    The problem is my style sheet already HAS that line of code. This bit of code doesn't work at all on Firefox mac... what am I doing wrong? Thanks for any help.

    Code:
    <HTML>
    <head>
    <title>Firefox Mac</title>
    <style type="text/css">
    #box {
    width: 250px;
    height: 250px;
    background-color: gray;
    margin-left: 250px;
    margin-bottom: 5px;
    
    -border-radius: 10px;
    -webkit-border-radius: 10px;
    -khtml-border-radius: 10px;	
    -moz-border-radius: 10px;
    -moz-box-shadow: 3px 3px 3px lightgray;
    -webkit-box-shadow: 3px 3px 3px lightgray;
    -box-shadow: 3px 3px 3px lightgray;
    }
    </style>
    </head>
    <body>
    <h2>Firefox Mac - Rounded corners and shadows not working</h2>
    <div id="box"></div>
    </body>
    </HTML>
    Last edited by sterlingcooper; 08-06-2012 at 11:51 PM.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,479
    Thanks
    6
    Thanked 981 Times in 954 Posts
    It’s called border-radius not -border-radius. Same with box shadow.
    Do you actually know what these -moz etc. rules mean?

  • Users who have thanked VIPStephan for this post:

    sterlingcooper (08-06-2012)

  • #3
    New Coder
    Join Date
    Jun 2010
    Posts
    43
    Thanks
    12
    Thanked 0 Times in 0 Posts
    Thanks VIPStephan, sometimes having another pair of eyes is all it takes.

    No I don't know why it stopped working, I know that I need to leave them in there for older versions of Firefox, and the border-radius for the modern version, but I was clearly blind to that little dash.
    Last edited by sterlingcooper; 08-06-2012 at 11:52 PM.


  •  

    Posting Permissions

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