Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Multi Browser Design

  • 14-03-2013 10:05PM
    #1
    Registered Users, Registered Users 2 Posts: 1,298 ✭✭✭


    I'm trying to code a website and I am using some -webkit- features for the navigation however these don't seem to work in Firefox, how can i get around this problem? or how do i style seperately for multi browswers?


Comments

  • Registered Users, Registered Users 2 Posts: 2,485 ✭✭✭SweetCaliber


    replace -wekbit- with -moz-

    However most css3 browsers now you can remove the prefixes:

    Such as:

    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;

    Can now be:

    border-radius: 3px;


  • Registered Users, Registered Users 2 Posts: 1,298 ✭✭✭off.the.walls


    Say you want something to be moved with a webkit so you have webkit-transform: translate(x,y) and you want to fix it up so it works on firefox do you use moz for that?

    Sorry if its a basic question but need to be sure this site displays the same across everything!


  • Registered Users, Registered Users 2 Posts: 2,485 ✭✭✭SweetCaliber


    Yep :)

    -moz-transform: translate(x,y)

    Add in:

    transform: translate(x,y)

    Also, as for safari and so on (CSS3 Compatible browsers) will be able to take advantage of it also :)


  • Registered Users, Registered Users 2 Posts: 1,298 ✭✭✭off.the.walls


    Brilliant thank you :)


  • Registered Users, Registered Users 2 Posts: 2,559 ✭✭✭KonFusion




  • Advertisement
Advertisement