Page 1 of 1
css link tag
Posted: Sat Oct 01, 2005 12:22 am
by mickd
hi, i was wondering why when i use
<link rel="stylesheet" href="style1.css" type="test/css" />
the css doesnt load (as if there was no css at all)
while
include 'style1.css';
works.
thanks any help appriciated.
Posted: Sat Oct 01, 2005 5:19 am
by pilau
Because it should be type="text/css", not test.
Posted: Sat Oct 01, 2005 5:34 am
by n00b Saibot
pilau wrote:Because it should be type="text/css", not test.
he must've thought since it is a test of css it should be test/css, muahahahaha

Posted: Sat Oct 01, 2005 5:43 am
by mickd
oops it was text, mistyped it when i wrote it here because ive been using include instead of link as link doesnt appear to work so i didnt copy paste it.
Posted: Sat Oct 01, 2005 5:56 am
by n00b Saibot
are you testing it using IE, if yes this a very often found IE's CSS bug in which it doesn't recognise the first element of the CSS. put some bluff element on the top and then see if it works.