Insert css files to localhost - css

For some reason, I could not get my files to load in my localhost. Trying different path solution but my error is still same. You can see from pictures my file-tree, where is index.file and css.folder with files. Any sugestions what to type in to get my css files load. Thanks

Related

Error: XML content doesn't seem XML

I have an .XML file in the same working directory with all the other files and I have correctly set the working directly where I want it to be.
When I try and run the R code, it returns the following error:
Error: XML content doesn't seem XML
I did go through other topics on here for similar issue, but they were all related to a URL. But I have an .XML file in the working directory. I know the file works perfectly fine, because it worked smoothly for my colleague. But it is returning this error for me.
I run this code on a terminal server and the file is located in a local shared drive.
Can someone provide any insight as to what might be causing it?

urls for images in meteor

I've recently switched from PHP to JS Meteor+ReactJS. I've started my first project and almost instantly got a bump in the road.
I cannot seem to get image in my scss file to work. Same with trying to get to it via url in my browser. In the browser I get flow-router error about missing path. Scss doesn't give me any errors just doesn't work.
I've tried every possible link variation I've found online.
absolute_path, relative_path, {}absolute_path, {}relative_path, even just putting the image in the same directory as the scss and linking to it in the same directory. Nothing seems to work.
I'd greatly appreciate any help.
Put images and other shared content for the client in your project's public directory. public gets mapped to / so you can refer to them with <img src='/images/mypicture.png'>
If you want an images directory then put them in public/images and refer to them as <img src='/images/mypicture.png'>

importing CSS <link> property is not working on server

I kept all my .css files in a folder . I am importing it on my aspx page
.
when I am running it on localhost it is working fine but when i am hosting it on server it is not working . When I am declaring on each aspx page and rewriting the same css file it working fine . Now the question why it is not importing the file on server on localhost it is working fine .
To solve problems like this, we should use relative paths while specifying the url. We have faced the similar issues and it was because of not having relative paths. This link may help you. Please post your code snippet to help me understand further.
To understand relative paths click here.
I had a problem with my hosting server not reaching the proper files even though they are imported successfully. What I did was backed up the files, deleted them and replaced them with the backup. I added ../ before all the folders in the links to get to the root folder, then I navigated to the css folder from there, and it worked. It may have something to do with the root dir being different. If it works great, if not oh well.
Its a mismatch of the url, somehow it's not getting the file in the place it should. Try Rewriting the code again, sometimes it helps.
If it doesn't work send the code.

external CSS sheet not loading to hosting

I'm having trouble making my CSS external stylesheet work in my actual hosting. It all works fine when I open the files from my Finder (I'm using a mac), but the stylesheet does not seem to load to my server properly. All other html files load fine and are visible when you visit my website in any browser,this is my website and the File Manager on my cPanel indicates that the CSS folder and external stylesheet file have been successfully uploaded for enough time that the style features should display. I tried clearing my browsing history and reopening my browser.
My link tag is and I have tried it using aswell as with just "css/socialpolarities.css". I've checked to make sure the spelling is right on the path and corresponds to the actual file.
Is the answer to just put all the style files in the public_html folder and then just change the path on all my html files? Or am I missing something?
I'm also using LiquidWeb if that means anything
The file css/socialpolarities.css seems to exist, but is void of content.
try looking at your local file to make sure it is indeed the one with the css code, then upload it to the same folder and override the original one.
You may have had an upload error.
I got it! The problem was actually that I needed to put the css file in the home directory, for some strange reason. My path from my html files definitely specified that the css files were in a css directory so I'm not sure if it's something I did wrong or whether the cPanel just sucks. Regardless, it works so I won't mess with it. Now time to copy all of my webfont files into my home directory...this is going to be messy lol.
Check your permission. They should be 755. You can search about permissions on internet. I changed the permissions and it worked fine.

How is MVC changing the paths to jqueryui images?

The graphics for my jQueryUI date picker were not showing up; when I looked in the network trace I saw that I was getting a 404, but the image exists in my project but the path to the image in the trace was incorrect.
The ui-bg_flat_75_ffffff_40x100.png file is in ~/Content/themes/base/images and the jquery.ui.datepicker.css file is loaded. Looking in the css file it references the graphic url(images/ui-bg_flat_75_ffffff_40x100.png). The images folder is in the same folder as the css so the path looks correct to me. So why is it trying to find the file at /Content/images?
I am getting same issue as you when I deploy to production server which has IIS 6. But if I deploy to my local IIS, it works fine.
I did quick fix by copying the "iquery > images" to "content > images", but this is not a good fix.
If you find any other solution, please kindly share me.
Thanks.
Alin

Resources