Untitled UI logotext
Solutions
WebsitesEcommerceMobile AppsWeb AppsProduction Support & Maintenance
Our work
Company
About usBlogPodcastContact us
Book a free consultation

Conditional Stylesheets in FBML

Olivia Rhye

FBML doesn't allow the IE conditional stylesheet comments in Facebook Fan Pages. In order get similar functionality, we need to leverage the significantly more powerful user-agent tags. This allows you to post user-agent conditional code to your fan page for any browser type.


#submit-container { margin-top: 15px; }
#agree-container { position: relative; top: 10px; }
#submit-button { padding: 9px 20px; border: 1px solid green; color: black; }

What isn't clear in the FBML documentation at this point is how accurate the user-agent application is. If I'm spoofing my user-agent, does the effectiveness of this tag diminish? Most people don't spoof their user agent, but there are people who do so. Presumably if the user agent is the only test, they wouldn't be able to view your fan page.

Ready to start a project?

Book a free consultation
Untitled UI logotext
Our work
About us
Blog
Careers
Submit a ticket
Agency Partnerships
Contact
© 2024 fjorge. All rights reserved.
Privacy