Jump to content

@import url("http:www.test.dk/style.css")


Recommended Posts

HelloI am trying to import a stylesheet from another server

<style type="text/css">	@import url("http://x.find.dk/default.css");</style>

I have found some examples around the web, so this shouldt be possible.http://htmlhelp.com/reference/css/style-html.htmlhttp://www.howtocreate.co.uk/tutorials/css/externalfilesThe styles in default.css is not taking effect on the site i am trying to import it to.Whats wrong ?/mads

Edited by madsovenielsen
Link to post
Share on other sites

Your exact code worked perfectly for me. Is your code box exactly what is in your document? If there is more CSS in the style sheet, make sure the @import rule is the first line, or it will not work.Have you tried loading the document into your browser from the address bar? If you cannot receive it that way, you cannot receive it at all. I don't know why this would happen, since it seems you are both in Denmark, not Egypt or somewhere with funny connections.

Link to post
Share on other sites
Your exact code worked perfectly for me. Is your code box exactly what is in your document? If there is more CSS in the style sheet, make sure the @import rule is the first line, or it will not work.Have you tried loading the document into your browser from the address bar? If you cannot receive it that way, you cannot receive it at all. I don't know why this would happen, since it seems you are both in Denmark, not Egypt or somewhere with funny connections.
I deleted the whole <style> section and added it again. it works now.Thansk
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...