Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9228581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:21:35+00:00 2026-06-18T05:21:35+00:00

I have developed a switch board with two electronic switches and two lights, it

  • 0

I have developed a switch board with two electronic switches and two lights, it is producing different results in different browsers.

Chrome Output

In Chrome it is working good.

Click for Larger Image

enter image description here

Safari Output

The shiny labels of buttons are pushed to bottom

Click for Larger Image

enter image description here

Fire Fox Output

The radial gradient is DULL

Click for Larger Image

enter image description here

Is there any thing i am missing while doing cross browser platform support?

Any suggestions please! Any help will be highly appreciated

Please look for Present version Code Pen Link It is with comments

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:21:36+00:00Added an answer on June 18, 2026 at 5:21 am

    Fixed label position and gradient : Code Pen Demo

    To fix the position of the labels, use top instead of margin-top.

    .switch:before { /* Used for Inner Ligths of switch */
      content: "";/* Without this no layout positioning will work */
      background: rgb(53, 244, 252);/* Sandy white color */
      width: 36%;/* occupied 36% of switch (which is 50% of board frame */
      position: absolute;
      height: 4px;/* Light height */
      margin-top: 0%;/* 36% width + 32 % left border + 32% right border = 100% of switch width */
      top: 77%;
      margin-left: 32% ;
      margin-right: 32% ;
      marging-bottom :0px;
      border-radius: 12px;/* Light radius */
      box-shadow: inset 0 0 1px rgba(0,0,0,.2);/* Switch light shadow */
      border: 1px solid rgba(0,0,0,.1);/* Switch Light border */
    }
    
    .on.switch:before {/* Used to target light of switch */
      margin: 0% 32% 8%; /* Move light of switch up so it appears that light is actually on */
      top: 70%;
      background: rgba(255, 255, 255, 0.42);
    }
    

    The problem is not in Safari or Chrome, but rather Firefox doesn’t handle margin-top in percentage properly. I tried setting margin-top: 100% and only Safari and Chrome (Mac version) render the label below the switch. Firefox determines that 100% is less than the full height of the switch.

    As for the gradient in Firefox, simply move the line radial-gradient to the top and leave -moz-radial-gradient at the bottom. This would allow the browser specific CSS to take effect.

    .radial:before{
      content:"";
      position:absolute;
      top:-240px;
      /* width: 1200px;*/
      /*max-width: 100%;*/
      width:100%;
      height: 920px;
      background: radial-gradient(ellipse at center,  rgba(255,255,255,0.15) 1%,rgba(255,255,255,0.15) 2%,rgba(255,255,255,0) 56%,rgba(255,255,255,0) 100%);
      background: -webkit-radial-gradient(center, ellipse cover,  rgba(255,255,255,0.75) 1%,rgba(255,255,255,0.65) 2%,rgba(255,255,255,0.15) 56%,rgba(255,255,255,0.05  ) 60%,rgba(255,255,255,0.04) 70%,rgba(255,255,255,0.04) 80%,rgba(255,255,255,0) 100%);
      background: -o-radial-gradient(center, ellipse cover,  rgba(255,255,255,0.75) 1%,rgba(255,255,255,0.65) 2%,rgba(255,255,255,0.15) 56%,rgba(255,255,255,0.05   ) 60%,rgba(255,255,255,0.04) 70%,rgba(255,255,255,0.04) 80%,rgba(255,255,255,0) 100%);
      background: -moz-radial-gradient(center, ellipse cover,  rgba(255,255,255,0.75) 1%,rgba(255,255,255,0.65) 2%,rgba(255,255,255,0.15) 56%,rgba(255,255,255,0.05 ) 60%,rgba(255,255,255,0.04) 70%,rgba(255,255,255,0.04) 80%,rgba(255,255,255,0) 100%);
      z-index: -21;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed an application which allows the user to switch between themes. I'm
I have developed this application which uses an ActivityGroup to switch between Activity s
I have developed sample api as jar file. This jar file contains the code
I have developed a web site that requires user registration and authentication for some
I have developed a website using Razor (Microsoft WebMatrix) and now I want to
I have developed a small administration page for game servers which you can add/remove/edit
I have developed a Java server using Eclipse that accepts TCP socket connection from
i have developed an app which executes sql jobs. When I click on execute
I have developed several general purpose script functions, for Google Spreadsheet apps. Currently I
I have developed an app that in testing has worked fine but when it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.