|
| |
|
|
ritarun
Posts: 676 From: Upstate New York USA Status: offline
|
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.
_____________________________
Success often occurs in private, but failure usually in full view.
|
|
|
|
swoosh
Posts: 1436 Joined: 5/18/2002 From: Beaver Falls, PA Status: offline
|
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?
_____________________________
Swoooosh Just Do It!
|
|
|
|
Tailslide
Posts: 5972 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
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 -->
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
d a v e
Posts: 4057 Joined: 7/24/2002 From: England (but live in Finland now) Status: online
|
RE: Help - How can I find the error - 6/5/2008 10:38:41
have you tried the w3c validator? http://validator.w3.org/
_____________________________
David Prescott Gekko web design
|
|
|
|
ritarun
Posts: 676 From: Upstate New York USA Status: offline
|
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.
_____________________________
Success often occurs in private, but failure usually in full view.
|
|
|
|
Tailslide
Posts: 5972 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
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.
< Message edited by Tailslide -- 6/6/2008 7:10:27 >
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
ritarun
Posts: 676 From: Upstate New York USA Status: offline
|
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;
_____________________________
Success often occurs in private, but failure usually in full view.
|
|
|
|
Tailslide
Posts: 5972 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
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.
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
ritarun
Posts: 676 From: Upstate New York USA Status: offline
|
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.
_____________________________
Success often occurs in private, but failure usually in full view.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|