How to connect FBML and external css?

Discussion in 'HTML & Website Design' started by chrisj, Nov 18, 2010.

  1. #1
    If you know about FBML than you probably can help me.

    I've been attempting to create an FB page and I've added some FBML,
    but now I'm trying to link an external css to it.

    I've googled and read about it, but when I make a change on the css style sheet, the change doesn't seem to appear (in IE8) on the FB page.

    So my question is, which is correct:

     <link ref="stylesheet" type="text/css" href="http://www.awebsite.com/css/main.css" />
    Code (markup):
    or

    
    <link ref="stylesheet" type="text/css" href="http://awebsite.com/css/main.css" />
    Code (markup):
    or

    
    <link href="http://www.awebsite.com/css/main.css" rel="stylesheet" type="text/css" />
    Code (markup):
    or

    
    <link href="http://awebsite.com/css/main.css" rel="stylesheet" type="text/css" />
    Code (markup):
    or do I have a cache issue, or an IE8 issue?

    I put the url in the browser, to test that. I had the right url path, so I know that's correct.

    Is FBML the best way to create an FB page? Or is there a better/easier way?
     
    chrisj, Nov 18, 2010 IP
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
  3. chrisj

    chrisj Well-Known Member

    Messages:
    606
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    Thanks for that reply. However, I have been to that link before I posted and I see the guy says do this:

    <link ref="stylesheet" type="text/css" href="URL-TO-STYLESHEET" />  
    Code (markup):
    but on the next line he says do this:

    <link rel="stylesheet" type="text/css" href="URL-TO-STYLESHEET" />  
    Code (markup):
    So, I was hoping to get help from someone who actually has worked with FB fbml and fb caching, instead of just a referral to a link.
     
    chrisj, Nov 18, 2010 IP
  4. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #4
    I think, he says do this (have external css)
    
    <link rel="stylesheet" type="text/css" href="URL-TO-STYLESHEET" />
    
    Code (markup):
    don't do this (embedded style)

    
    <style>
    
    </style>
    
    Code (markup):
    Anyways this should work, link http://awebsite.com/css/main.css should be working one,
    
    <link href="http://awebsite.com/css/main.css" rel="stylesheet" type="text/css" />
    
    Code (markup):
     
    Last edited: Nov 18, 2010
    radiant_luv, Nov 18, 2010 IP