Hi there, I've got 2 anchor links on a page on my website, when I click either of the links it takes me down to the section of the page i've linked to, but it cuts off the top half of my website. It's hard to explain without linking to the page, so here it is (click the article titles): http://www.paid2review.co.uk/moneyarticles.html Thanks for any help offered. Matt
Try changing: <a name="earn money from betting" id="earn money from betting">Earn from "Matched Betting"</a> Code (markup): To <a name="earn money from betting" id="earn money from betting"></a>Earn from "Matched Betting" Code (markup): And the same idea for the other one.
Thanks for trying to help, I changed the code to what you suggested and have uploaded it again, still having the same problem though...
please try to change this code: <a href="#earn money from adverts">Earn from Website Adverts</a> to <a href="http://www.paid2review.co.uk/moneyarticles.html#earn money from adverts">Earn from Website Adverts</a> do the same thing to the other one... hope this one works.
A hint: If styles are turned off, the links work as expected. I would suspect an absolute position or a hidden overflow. The css is too much of a cluster-f*** to dig into. You should also validate your html. cheers, gary
Okay thanks for the help. I've tried validating my code before but it kept finding errors with the Google Adsense on my website, is this normal?
better try this one change the codes <a name="earn money from adverts" id="earn money from adverts"></a>Earn from Website Adverts into <a name="earn money from adverts" id="earn money from adverts">Earn from Website Adverts</a> do the same thing to the other code... hope this one finally works.
Thanks for trying, but this is what it was originally. Darkhodge suggested changing it, now you are suggesting changing it back I appreciate the help, I think its probably an error with my CSS or something, as kk5st suggested. Thanks
I knew something was nagging at me! Name, class and id tokens (names) may not contain spaces. I don't think this is related to your problem, but it is something to fix. What is the Google error? If it's the iframes, that's because iframe is not a part of any strict DTD. Switch the DTD to html4.01 or xhtml1.0 transitional. cheers, gary
I've download the complete html page and edit it, tried changing code in different ways, but in vain. I think its type of a CSS problem or something, don't know excatly what is is. Try coding complete page in <Html.tables>, don't use <divs> and see it works or not.
I've removed a load of errors from this page, now there are only 17 errors. One of these is to do with the bullet points marking the articles on my site, i'm not quite sure whats wrong with them though: Thanks for any help again
Instead of: <td><li><a href="#earn-money-from-betting">Earn from "Matched Betting"</a></li></td> Code (markup): USE: <td><ul><li><a href="#earn-money-from-betting">Earn from "Matched Betting"</a></li></ul></td> Code (markup): <li> tag should be used inside <ul> or <ol> tag understand?
Thanks a lot, understand and reputation has been given Next problem How can I use the anchor links when it says the "name" is causing an error? Thanks again for the help
Do not use <a name=earn-money-from-betting">Earn from "Matched Betting"</a> Code (markup): try using <a id=earn-money-from-betting">Earn from "Matched Betting"</a> Code (markup): Try use "ID" attribute instead of "NAME" attribute and see if it works
Thank you rep given again EDIT: sorry I can't so soon, will give rep later when it lets me. Next problem Again, thanks for any help
You haven't closed this <p> that I can see: <p><b><a id="earn-money-from-betting">Earn from "Matched Betting"</a></b> <i>Written by Matt Tutt</i><br/><br/> A <p> may only contain inline elements. The next error has the same cause. You're trying to open a <p> inside the last <p>. In html, this is allowed because the closing </p> tag is optional. It is required in xhtml. The various unknown attribute errors are due to them not being a part of any strict DTD, or not applicable to a particular element; deprecated in favor of css. The target attribute is deprecated in favor of javascript. The biggest error is the use of the xhtml 1.1 DTD. XHTML 1.1 should not be served as text/html. Use the xhtml 1.0 strict DTD. It may be served as text/html. cheers, gary
Thanks gary, rep has been left How do I edit all the Google code to prevent the errors? Do I need to edit each pieces of Google adverts to stop the individual errors? Thanks again