CSS Menu / Posts /

Can I test the menu using a domain name that is mapped to 127.0.0.1 in hosts file?

400
I want to test the CSS menu in IE with a simulated domain name by mapping the domain to 127.0.0.1 in hosts file, but found the menu stop working in this scenario.  Can anybody tells me why?
Timothy  12 years ago   viewed: 15932    

1 Answer

1

Note: This post is outdated for current menucool css menu as the HTC file is not used anymore.

If you are using a domain that is mapped to 127.0.0.1 through the hosts file and it is not the default localhost, the HTC file will be blocked by IE for security reasons.  So you cannot do it in that way.

You'd better test it online, or at least from your localhost server as some users also claim using the local file system does not work.

Also, don't forget to declare the DOCTYPE before your <html> tag at the top of your page, for example:
<!DOCTYPE html>
<html>

If you miss the DOCTYPE declaration, the menu will not work in IE.


Milo   12 years ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question:
    • If your question is related to the CSS Menu, click:

      Ask new question: CSS Menu
    • Otherwise navigate to one of the following forum categories, and post your question there.

      ##