Hi there!
I run MAMP on my Mac and I want to check the websites I create in Internet Explorer. I can connect to the host by enter the local IP in IE, but when I am viewing a site, CSS seems to be disabled. What is that and how can I fix it?
CSS disabled when connecting to localhost
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: CSS disabled when connecting to localhost
You have to check if you can access the CSS file from your Guest by entering the URL to the CSS file in your browser. If you get a page not found or 403 forbidden, there is something wrong with the configuration. If you do see the CSS, check the source code of the page when opened in IE, maybe it's pointing to the wrong location for the CSS file. If it's IE6, it's possible that your whole CSS is ignored, but I doubt that would be the problem (even though IE6 doesn't fully support CSS, it should still load some items).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: CSS disabled when connecting to localhost
Check for literal references in the HTML. Like myhost.com/css
If you enter from the ip in the guest browser it will not translate.
You can get around that by adding the ip and the host name to the hosts file of the viewing machine
If you enter from the ip in the guest browser it will not translate.
You can get around that by adding the ip and the host name to the hosts file of the viewing machine
-
kaffin
- Posts: 2
- Joined: 27. Oct 2009, 21:55
- Primary OS: Mac OS X Leopard
- VBox Version: OSE self-compiled
- Guest OSses: Windows XP
Re: CSS disabled when connecting to localhost
Aha, Wordpress links the CSS to "localhost". Hmm, I can't come up with a solution to this right now, what do you thik?
Thanks for the answers!
Edit: Of course, I just change localhost to the actual local IP in the Wordpress Dashboard!
Thanks for the answers!
Edit: Of course, I just change localhost to the actual local IP in the Wordpress Dashboard!
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: CSS disabled when connecting to localhost
Or you can just change the setting in the admin settings console to the IP address instead of localhost. That way works as well and if you decide to port forward to it from the outside world it will still work.