I am working on a dropdown menu and I would like to import my CSS code from a file. The menu works fine when my CSS is within my html code, but when I try to import the CSS from an outside file instead my menu items are tabbed over and have bullets next to them. Can anyone see what I may have done wrong?
Version with CSS within html code (works): <!-- m --><a class="postlink" href="http://shadowboards.info/menu_test.php">http://shadowboards.info/menu_test.php</a><!-- m -->
Version with CSS being imported from outside file (doesn't work): <!-- m --><a class="postlink" href="http://shadowboards.info/menu_test2.phpYour">http://shadowboards.info/menu_test2.phpYour</a><!-- m --> stylesheet should carry a ".css" file extension.Take the style tags out of the external file, type="text/css" tells the browser that the file contains CSS (giving it a .css suffix would help to remind you of what the contents are too).
While you are changing things you might also consider moving the Google ad from above your html tag into the body of your page.Besides making them .php files causes the server to process them and since there is nothing to process it is serving up a blank page for your css.Ok, I'll give that a shot, thanks.
EDIT:
That fixed the problem, thanks!
Version with CSS within html code (works): <!-- m --><a class="postlink" href="http://shadowboards.info/menu_test.php">http://shadowboards.info/menu_test.php</a><!-- m -->
Version with CSS being imported from outside file (doesn't work): <!-- m --><a class="postlink" href="http://shadowboards.info/menu_test2.phpYour">http://shadowboards.info/menu_test2.phpYour</a><!-- m --> stylesheet should carry a ".css" file extension.Take the style tags out of the external file, type="text/css" tells the browser that the file contains CSS (giving it a .css suffix would help to remind you of what the contents are too).
While you are changing things you might also consider moving the Google ad from above your html tag into the body of your page.Besides making them .php files causes the server to process them and since there is nothing to process it is serving up a blank page for your css.Ok, I'll give that a shot, thanks.
EDIT:
That fixed the problem, thanks!