Grow your CSS skills. Land your dream job.

Webkit and Variables?

  • # August 11, 2010 at 5:51 am

    I created a few variables and put them into an IF statement.

    It almost worked cross-browser.. It even worked in IE6, however, Chrome refused to see the variables properly. (I’m assuming I would have the same problem in Safari).
    I did a bit of debugging and finally realized that the variables were the problem. I managed to fix this, but now I have an IF statement that is illegible due to it’s length.

    Is there something simple that could take care of this problem and I’m not aware of?

    # August 11, 2010 at 6:27 pm

    You might want to check to see if you do actually have this problem in Safari. Chrome and Safari use different Javascript engines, which is the only major difference between the two browsers as far as I know.

    # August 12, 2010 at 2:38 pm

    I think I figured out what the problem was.

    Some of the variables began with a dollar sign, and chrome seems to dislike that.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".