SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jun 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry Cross browser functionality for CSS3

    In the recent post on "CSS3 and HTML5 for the Real World" I see this snippet:

    -webkit-transform: translate(45px,-45px);
    -moz-transform: translate(45px,-45px);
    -ms-transform: translate(45px,-45px);
    -o-transform: translate(45px,-45px);
    transform: translate(45px,-45px);

    I find it disappointing and sad that entries must be entered for each browser. Surely there is a better way.

    Rob

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,112
    Mentioned
    448 Post(s)
    Tagged
    8 Thread(s)
    Hi robtcallahan. Welcome to SitePoint.

    It's only a temporary situation. CSS3 is not a finished product yet (so to speak). That last line is expected to be the final version, but in the mean time, browser makers are allowed to experiment with these properties so that we can play with them before they are truly born. If you don't like all those lines, then don't use them, and wait until CSS3 is truly ready for use.

    [PS: I've moved this thread to the CSS forum.]
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."

  3. #3
    SitePoint Addict EarlyOut's Avatar
    Join Date
    Mar 2011
    Location
    Sector R
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Of course, even when (if?) CSS3 becomes final, nothing will retroactively fix older browser versions. FF3, for example, is never going to recognize border-radius. So, as long as you want to cater to the older browsers, you'll be stuck with the extra attributes.

  4. #4
    SitePoint Wizard
    Join Date
    Jan 2005
    Location
    blahblahblah
    Posts
    1,447
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  5. #5
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,606
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    I never like using JavaScript to address browser deficiencies because

    1) Performance.
    2) JavaScript can be turned off.
    3) The script might not play nice with all browsers and/or new browsers.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain


Tags for this Thread

Bookmarks

Posting Permissions

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