[RESOLVED] Why aren't my links working in Mozilla Firefox?
I just edited my links and they are working in IE but not Mozilla. I'm using CSS script to change the link's text color on mouseover. Might that be the problem? Please check the source IN MOZILLA: http://americanchic.net/BlankGrid3
I could point out alot here, but basically, you have 'closed' the body and the html, stated some TABLE stuff, some STYLE stuff, then re-opened "body" again... I am surprised that this even worked in IE.
In Firefox, the entire page is treated as 'blank' even though it shows 'visually' what you expected to see. "Outline current element" does not work in Firefox, meaning that there are 'no element to outline' due to body & html being 'closed'...
edit:
-I went over this with my validator and cleaned up the code a bit, -it now works but the links are WAY below the page, -seriously messed-up somehow.
There are some things that need to be fixed, -like the way you state inline-style values:
In CSS, a unit of any measure (except for "zero") required and expects a a unit... "px" or "cm" or "em" or "ex", -there's more but it cannot be 'just a numeral' like in HTML. (and conversely, in HTML, you cannot use "px" for width="760px" as this is invalid).
"0" ("zero") is exempt here, -because "zero px" is no bigger or no smaller than "zero cm" or "zero miles", -etc.
A browser will probably correctly default to assume "px", -but it needs to be stated because it you meant to use "em" or "ex" (etc), -then "px" will seriously mess-up your intentions.
Wow, thank you so much! I appreciate that. But here is the thing: I used a graphics interface program to create that page (as well as the rest of my site). It's part of Yahoo! Small Business Solutions and the program is called Yahoo! Sitebuilder. So that page right there is half input of my own HTML code and half input from the program. So the page didn't start out with one fresh HTML code. The program inserts it's own code (which is me inserting things like a table), but I also inserted my own HTML code (the program allows you to insert HTML "elements"). So, ontop of the program's code, I inserted my own BLOCK of HTML. That's why html is opened, then closed, then opened again within the source. You get what I'm saying? I, know - it's sooo jacked up. I do have the option of just creating the entire page in HTML FROM SCRATCH, but unfortunately, I am not advanced enough.
Don't use Sitebuilder. Any program that generates code for you will have problems and need to be edited. Many/most of us use simple text editors from Notepad to something more sophisticated.
A good HTML-editor, and create a 'default template' that works well for you so that when you open the HTML-editor and click "create a new document", you get a clean, validating starting point.
Here is one of my favorite (but not perfect) starting templates:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<link rel="shortcut icon" href="favicon.ico"><!-- path to your favicon -->
</head>
<body>
</body>
</html>
You could just make multiple copies of this or something similar, and re-use it for every page-build.
and yes, -I am not a big fan of 'site builder' assists but realize their usefulness. I started out using a 'site builder' on tripod-dot-com. It worked, -but wasn't very powerful or compliant.
Regardless of which HTML-editor you use, a good grounding in (X)HTML will save you hours of hassle. You will also learn to write good, compliant code which will help you later on when you move on to more advanced "stuff".
Wow, thank you so much! I appreciate that. But here is the thing: I used a graphics interface program to create that page (as well as the rest of my site). It's part of Yahoo! Small Business Solutions and the program is called Yahoo! Sitebuilder. So that page right there is half input of my own HTML code and half input from the program. So the page didn't start out with one fresh HTML code. The program inserts it's own code (which is me inserting things like a table), but I also inserted my own HTML code (the program allows you to insert HTML "elements"). So, ontop of the program's code, I inserted my own BLOCK of HTML. That's why html is opened, then closed, then opened again within the source. You get what I'm saying? I, know - it's sooo jacked up. I do have the option of just creating the entire page in HTML FROM SCRATCH, but unfortunately, I am not advanced enough.
Do you have any solutions for this?
What looks like happened here was that you input some of your own code, then the program put it's code in and they didn't mix well. Run your code through a validation tool after the pages are made and try to fix the problems that come up. If you're unsure what a tag does, use http://www.w3schools.com and look it up.
Originally Posted by foxbeefly
Regardless of which HTML-editor you use, a good grounding in (X)HTML will save you hours of hassle. You will also learn to write good, compliant code which will help you later on when you move on to more advanced "stuff".
Bookmarks