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
  • #151861

    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: "\\";


    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.

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