Fixed cursor positioning in css snippets