CSS: target classes that contain a slashes on the class name The trick is to use 2F instead of the / in the class name:body class2Fetc{}Instead of:body class/etc{}