probably a simple question about routes |
[eluser]thetit4n[/eluser]
I am using code igniter to create a CMS and i am trying to link to a CSS file, but i think because of the way the urls work it is looking for a controller. Maybe not i know its the right url. The way i havethe filesystem set up is this: <trunk> --<fw_theme> ----<default_theme> -----<theme.css> --<system> ----<config> ----<controllers> ----<etc> and the code is this Code: <style type="text/css"> that is generated dynamically but thats what it turns out to be and i think it is probably looking for the controller fw_theme. FYI i have htaccess to "hide" the index.php
[eluser]thetit4n[/eluser]
Or is there any other way i can import a CSS file??? Something PLEASE! im begging you!
[eluser]wiredesignz[/eluser]
This is not a URL its a Path! Code: /var/www/fw/trunk/fw_theme/theme.css
[eluser]thetit4n[/eluser]
i understand that, but it dosent work even though it should and i thought because of the way the url works it might be taking it over. Like you can do a form action the same way, and it takes over. Why not a CSS import. SO can you answer my question, how can i import a CSS file?
[eluser]wiredesignz[/eluser]
Nothing takes over anything, your browser (client side) will try to prefix the domain to any incomplete URLs it finds on a page. @import is correct for CSS, just get the URL right and it will work.
[eluser]thetit4n[/eluser]
its not a url its a path, and i have done this before and it worked. I will try what you said and see if it works thank you
[eluser]thetit4n[/eluser]
No dice, i tried using a "URL" instead of a "path" and it still didn't import, i have used relative paths for CSS before, i don't know why it isn't working. But by using a direct URL i think that codeigniter is gonna take http://<domain>/fw_themes and look for a controller called fw_themes. Am i wrong?
[eluser]wiredesignz[/eluser]
You say relative path and I say relative URL. Paths to me are server side, for instance if `/var/...` is below the web root (server side path) it will not work in CSS, if `/www/` = web root then a relative URL works from there. You might need to check .htaccess is allowing access to your CSS directory. .htaccess will send any unknown RewriteCond to index.php
[eluser]thetit4n[/eluser]
but it does =/ i have done this before many many times. I'm not calling you a liar or trying to argue. but i got a friend trying to figure it out. It's probably something stupid right in fromt of my face. Thank you for your help
[eluser]wiredesignz[/eluser]
Quote:The '@import' rule allows users to import style rules from other style sheets. Any @import rules must precede all rule sets in a style sheet. The '@import' keyword must be followed by the URI of the style sheet to include. A string is also allowed; it will be interpreted as if it had url(...) around it.Does this help? |
Welcome Guest, Not a member yet? Register Sign In |