UsageNotes/CSS
From Facebook Developer Wiki
CSS, Design, and the DOM
Keep in mind the following pointers when styling your application:
-
styleattributes are allowed, thoughurl()tokens cannot reference JavaScript. - You can reference your own external stylesheets -- see Include files for details. Or you can use
styletags. Facebook will automatically rewrite CSS and prefix every rule with a selector so that the rules specified by the parsed FBML will only affect the application and not the overall appearance of Facebook. -
idattributes get prefixed with the string app followed by the application ID of the calling application, followed by an underscore. So, this FBML:
- <div id="mybox"></div>
- would become:
- <div id="app2235437893_mybox"></div>
Additional Information
- For tips and tricks regarding CSS usage, see CSS Tips and Tricks.
- To see some styles that Facebook uses, see Facebook Styles.
- This article or section needs expansion
