Help - How can I find the error (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


ritarun -> Help - How can I find the error (6/5/2008 8:45:51)

I am thinking there must be a easy way to find out a coding error that is better than what I am doing right now (reading line by line with a ruler between two printed out pages of HTML code). Can any one suggest a better way?

I am having a coding problem but I don't know what it is.

I have six pages (index1.htm, index2.htm, index3.htm and so on). There is a div Ul list for the left hand side navigation and a div for a footer. On some of the pages the footer shows up in the middle of the left hand navigation list and on some pages it is correct and stays at the bottom of the page.

For the life of me I can't figure out why it is correct on some pages and not on others.






swoosh -> RE: Help - How can I find the error (6/5/2008 9:08:15)

Do you have a URL or some coding between 2 pages where one of them isn't producing the correct results?




Tailslide -> RE: Help - How can I find the error (6/5/2008 10:15:20)

What I do is add a comment next to the closing div tag - that way I can see that I've got both an opening and a closing tag which is quite often the problem. E.g:

<div id="whatever">
  Stuff
</div> <!-- end of whatever -->




d a v e -> RE: Help - How can I find the error (6/5/2008 10:38:41)

have you tried the w3c validator?

http://validator.w3.org/




ritarun -> RE: Help - How can I find the error (6/6/2008 7:00:36)

The pages are in a protected section of a website so I am hesitant to post a URL and password.


quote:

ORIGINAL: d a v e

have you tried the w3c validator?

http://validator.w3.org/

I have checked both the working and non-working and they both pass as XHTML Strict as valid.

I have tried changing the height on the #nav and #nav ul rules and it doesn't fit it but only gives me a different problem.

It's very strange. Even when I copy a page that is correct, re-name it and make a "new" page I still get the same error on the new copy.





Tailslide -> RE: Help - How can I find the error (6/6/2008 7:04:43)

What's the new problem, having removed the height on the UL and #nav (which shouldn't have a height).

Edit: just checked - in fact it's not the #nav ul that's causing the problem - it's the #MainText-left ul that needs the height removed. Then it works fine locally for me.




ritarun -> RE: Help - How can I find the error (6/6/2008 7:27:03)

Still not working for me. This is the section that I changed the height on (from 25px to 0px) - did I change the right part?

/* Container Left Start*/
div#MainText-left {
width: 180px;
}
div#MainText-left ul {
height: 0px;
list-style: none;
width: 180px;
clear: left;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
padding-top: 5px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;




Tailslide -> RE: Help - How can I find the error (6/6/2008 9:00:19)

No remove the height all together - 0px means no height!

What problem are you having with it - it works fine for me now.




ritarun -> RE: Help - How can I find the error (6/6/2008 9:21:45)

Removing the height all together fixed it!
It works for me now!

Thanks so much.





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625