Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Front slash browser glitch using content rule

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #151861
    modiophile
    Participant

    I’m adding a little flair to my menu by having a back slash “/” animate from the first two menu items and a front slash “\” animate out from the last two menu items.

    The quirk I noticed is that my Sublime Text and my browsers don’t recognize a single “\” but will render it just fine if I use two “\” What gives?

    content: "\\";
    

    http://cdpn.io/oLvHu

    #151862
    Alen
    Participant

    Backslash \ is a start of escape sequence. So using double backslash \\ means you are escaping the following character which turns out to be backslash. :)

    This is used when you want to append something other than literal string. So for example line break or special Unicode character.

    http://codepen.io/alenabdula/pen/rJgGn

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.