HTML & CSS
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" />
<link ref="stylesheet" type="text/css" href="http://awebsite.com/css/main.css" />
<link href="http://www.awebsite.com/css/main.css" rel="stylesheet" type="text/css" />
<link href="http://awebsite.com/css/main.css" rel="stylesheet" type="text/css" />
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?
The last two links look fine, so the cache issue sounds more likely. Certainly worth ruling out.
rel="stylesheet" is the way to go.
Whether you use www in your urls or not is up to you, but it's best to decide to use one or the other always. Choose one, then rule out the other via .htaccess. Otherwise search engines will treat them as separate and divide ranking between them. (See half way down this page: http://www.sitepoint.com/forums/showthread.php?t=670928)
Thanks for your reply.
If it's a cache issue, as you suggested it might be "cache issue sounds more likely",
What's the solution?
Hmm, the obvious answer would be 'empty it', but are you asking about what to do on an ongoing basis? Are you sure it's a problem on an ongoing basis? I'm sure I've emptied the IE cache before, but I rarely use it so have to Google how to do it every time. (I'm normally on a Mac.)
I am having a similar problem. It sounds like facebook is caching your css file.
Just link the external css as you normally would on a web page.
At the end of the path write ?v=10.0
Each time you change the css you also change the 'version number' and force facebook to reload your css.
<link href="http://www.yoursite.co.nz/style.css?v=10.1" rel="stylesheet" type="text/css" />