Forums

importing css

dwikristianto 06 Jun, 2007
hi,

how can i import css from a css file ?
i've tried to insert this codes, in the form header.


<?php
$url = $GLOBALS['mosConfig_live_site'] . '/dkforms/form_style.css';
echo "<style type=\"text/css\"> ";
echo "@import \"$url\";";
echo "</style>";
?>


Many thanks in advance,
dwi
GreyHead 06 Jun, 2007
Hi,

I did a similar thing in my template. Added
@import url("wufoo_forms.css"«»); /* Special formatting for wufoo forms */
near the head of the template_css.css file (or whatever file you have that is always loaded).

Bob
dwikristianto 06 Jun, 2007
hi greyhead,

thx for the response,

but i mean my code to import the css doesnt work. if i use "embedded css" it works smoothly.

any clue?

TIA,
dwi
dwikristianto 06 Jun, 2007
hi all,
sorry for wasting your time on this thread.

i've solved the problem. the error on the css itself.
after i fixup the css specs, it run well.

regards,
dwi
This topic is locked and no more replies can be posted.