PDA

View Full Version : how to make external css files to be recognized ???



multimediamkt
July 20th, 2007, 12:54 AM
july 18 2007
On a website which I´ve worked , there will be more than one .css files associated with the html files;
In order to keep html as clear as possible I´ve tried to place the following ******* :
.................................................. .................................................. .................................................. .................................................. ..........................
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Anything goes</title>

******* ???????? <link rel="stylesheet" type="text/css" media="screen" href="files/css/redirect.css"> ???????
.................................................. .................................................. .................................................. .

Inside the file redirect.css I´ve written :
.............................................
@ import url ("main.css");
@ import url ("secondary.css");
@ import url ("etc.css");

...................(all the css files are into the files/css folder of course ).......................................


I´ve tested this method before with positive results but as I did this time I´ve noticed that it has not worked ;
Why not ?
RW

Jeff Wheeler
July 20th, 2007, 12:55 AM
You need to remove the space between the ‘@’ and the ‘import’.

multimediamkt
July 20th, 2007, 02:22 AM
@import url("css.css"); ..............Great , It made all the difference ;
thank you very much !